public abstract class EntityMergeHooker extends java.lang.Object implements EntityMergeHook
Constructor and Description |
---|
EntityMergeHooker(java.lang.Class<?> targetClazz,
<any> cloneService) |
Modifier and Type | Method and Description |
---|---|
boolean |
consumes(java.lang.Object oldInstance,
java.lang.Object newInstance)
Evaluates if the hook should apply to the supplied objects.
|
void |
mergeEntity(java.lang.Object oldInstance,
java.lang.Object newInstance)
Performs the merge of two entities
|
public EntityMergeHooker(java.lang.Class<?> targetClazz, <any> cloneService)
public boolean consumes(java.lang.Object oldInstance, java.lang.Object newInstance)
consumes
in interface EntityMergeHook
oldInstance
- the object to be mergednewInstance
- the object with the target valuespublic void mergeEntity(java.lang.Object oldInstance, java.lang.Object newInstance) throws java.lang.IllegalAccessException
EntityMergeHook
mergeEntity
in interface EntityMergeHook
oldInstance
- the object to be mergednewInstance
- the object with the target valuesjava.lang.IllegalAccessException
- if the merging of fields failed