public class

DefaultReplicateEventListener

extends AbstractSaveEventListener
implements ReplicateEventListener
java.lang.Object
   ↳ org.hibernate.event.def.AbstractReassociateEventListener
     ↳ org.hibernate.event.def.AbstractSaveEventListener
       ↳ org.hibernate.event.def.DefaultReplicateEventListener

Class Overview

Defines the default replicate event listener used by Hibernate to replicate entities in response to generated replicate events.

Summary

[Expand]
Inherited Constants
From class org.hibernate.event.def.AbstractSaveEventListener
Public Constructors
DefaultReplicateEventListener()
Public Methods
void onReplicate(ReplicateEvent event)
Handle the given replicate event.
Protected Methods
CascadingAction getCascadeAction()
boolean isVersionIncrementDisabled()
After the save, will te version number be incremented if the instance is modified?
boolean substituteValuesIfNecessary(Object entity, Serializable id, Object[] values, EntityPersister persister, SessionImplementor source)
Perform any property value substitution that is necessary (interceptor callback, version initialization...)
boolean visitCollectionsBeforeSave(Object entity, Serializable id, Object[] values, Type[] types, EventSource source)
[Expand]
Inherited Methods
From class org.hibernate.event.def.AbstractSaveEventListener
From class org.hibernate.event.def.AbstractReassociateEventListener
From class java.lang.Object
From interface org.hibernate.event.ReplicateEventListener

Public Constructors

public DefaultReplicateEventListener ()

Public Methods

public void onReplicate (ReplicateEvent event)

Handle the given replicate event.

Parameters
event The replicate event to be handled.
Throws
TransientObjectException An invalid attempt to replicate a transient entity.

Protected Methods

protected CascadingAction getCascadeAction ()

protected boolean isVersionIncrementDisabled ()

After the save, will te version number be incremented if the instance is modified?

Returns
  • True if the version will be incremented on an entity change after save; false otherwise.

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...)

Parameters
entity The entity
id The entity identifier
values The snapshot entity state
persister The entity persister
source The originating session
Returns
  • True if the snapshot state changed such that reinjection of the values into the entity is required.

protected boolean visitCollectionsBeforeSave (Object entity, Serializable id, Object[] values, Type[] types, EventSource source)