public class DefaultReplicateEventListener extends AbstractSaveEventListener implements ReplicateEventListener
AbstractSaveEventListener.EntityState
Constructor and Description |
---|
DefaultReplicateEventListener() |
Modifier and Type | Method and Description |
---|---|
protected CascadingAction |
getCascadeAction() |
protected boolean |
isVersionIncrementDisabled()
After the save, will te version number be incremented
if the instance is modified?
|
void |
onReplicate(ReplicateEvent event)
Handle the given replicate event.
|
protected boolean |
substituteValuesIfNecessary(Object entity,
Serializable id,
Object[] values,
EntityPersister persister,
SessionImplementor source)
Perform any property value substitution that is necessary
(interceptor callback, version initialization...)
|
protected boolean |
visitCollectionsBeforeSave(Object entity,
Serializable id,
Object[] values,
Type[] types,
EventSource source) |
cascadeAfterSave, cascadeBeforeSave, getAssumedUnsaved, getEntityState, getLoggableName, getMergeMap, invokeSaveLifecycle, performSave, performSaveOrReplicate, saveWithGeneratedId, saveWithRequestedId
reassociate
public void onReplicate(ReplicateEvent event)
onReplicate
in interface ReplicateEventListener
event
- The replicate event to be handled.TransientObjectException
- An invalid attempt to replicate a transient entity.protected boolean visitCollectionsBeforeSave(Object entity, Serializable id, Object[] values, Type[] types, EventSource source)
visitCollectionsBeforeSave
in class AbstractSaveEventListener
protected boolean substituteValuesIfNecessary(Object entity, Serializable id, Object[] values, EntityPersister persister, SessionImplementor source)
AbstractSaveEventListener
substituteValuesIfNecessary
in class AbstractSaveEventListener
entity
- The entityid
- The entity identifiervalues
- The snapshot entity statepersister
- The entity persistersource
- The originating sessionprotected boolean isVersionIncrementDisabled()
AbstractSaveEventListener
isVersionIncrementDisabled
in class AbstractSaveEventListener
protected CascadingAction getCascadeAction()
getCascadeAction
in class AbstractSaveEventListener
Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.