Package org.hibernate.event.internal
Class DefaultReplicateEventListener
java.lang.Object
org.hibernate.event.internal.AbstractSaveEventListener<ReplicationMode>
org.hibernate.event.internal.DefaultReplicateEventListener
- All Implemented Interfaces:
ReplicateEventListener,CallbackRegistryConsumer
@Deprecated(since="6")
public class DefaultReplicateEventListener
extends AbstractSaveEventListener<ReplicationMode>
implements ReplicateEventListener
Deprecated.
Defines the default replicate event listener used by Hibernate to replicate
entities in response to generated replicate events.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CascadingAction<ReplicationMode> Deprecated.protected booleanDeprecated.After the persist, will the version number be incremented if the instance is modified?voidonReplicate(ReplicateEvent event) Deprecated.Handle the given replicate event.protected booleansubstituteValuesIfNecessary(Object entity, Object id, Object[] values, EntityPersister persister, SessionImplementor source) Deprecated.Perform any property value substitution that is necessary (interceptor callback, version initialization...)protected booleanvisitCollectionsBeforeSave(Object entity, Object id, Object[] values, Type[] types, EventSource source) Deprecated.Methods inherited from class org.hibernate.event.internal.AbstractSaveEventListener
cascadeAfterSave, cascadeBeforeSave, getMergeMap, injectCallbackRegistry, performSave, performSaveOrReplicate, saveWithGeneratedId, saveWithRequestedId
-
Constructor Details
-
DefaultReplicateEventListener
public DefaultReplicateEventListener()Deprecated.
-
-
Method Details
-
onReplicate
Deprecated.Handle the given replicate event.- Specified by:
onReplicatein interfaceReplicateEventListener- Parameters:
event- The replicate event to be handled.- Throws:
TransientObjectException- An invalid attempt to replicate a transient entity.
-
visitCollectionsBeforeSave
protected boolean visitCollectionsBeforeSave(Object entity, Object id, Object[] values, Type[] types, EventSource source) Deprecated.- Overrides:
visitCollectionsBeforeSavein classAbstractSaveEventListener<ReplicationMode>
-
substituteValuesIfNecessary
protected boolean substituteValuesIfNecessary(Object entity, Object id, Object[] values, EntityPersister persister, SessionImplementor source) Deprecated.Description copied from class:AbstractSaveEventListenerPerform any property value substitution that is necessary (interceptor callback, version initialization...)- Overrides:
substituteValuesIfNecessaryin classAbstractSaveEventListener<ReplicationMode>- Parameters:
entity- The entityid- The entity identifiervalues- The snapshot entity statepersister- The entity persistersource- The originating session- Returns:
- True if the snapshot state changed such that reinjection of the values into the entity is required.
-
isVersionIncrementDisabled
protected boolean isVersionIncrementDisabled()Deprecated.Description copied from class:AbstractSaveEventListenerAfter the persist, will the version number be incremented if the instance is modified?- Overrides:
isVersionIncrementDisabledin classAbstractSaveEventListener<ReplicationMode>- Returns:
- True if the version will be incremented on an entity change after persist; false otherwise.
-
getCascadeAction
Deprecated.- Specified by:
getCascadeActionin classAbstractSaveEventListener<ReplicationMode>
-
Session.replicate(java.lang.Object, org.hibernate.ReplicationMode)is deprecated