类 DefaultReplicateEventListener
- java.lang.Object
-
- org.hibernate.event.internal.AbstractReassociateEventListener
-
- org.hibernate.event.internal.AbstractSaveEventListener
-
- org.hibernate.event.internal.DefaultReplicateEventListener
-
public class DefaultReplicateEventListener extends AbstractSaveEventListener implements ReplicateEventListener
Defines the default replicate event listener used by Hibernate to replicate entities in response to generated replicate events.- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 DefaultReplicateEventListener()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected CascadingActiongetCascadeAction()protected booleanisVersionIncrementDisabled()After the save, will te version number be incremented if the instance is modified?voidonReplicate(ReplicateEvent event)Handle the given replicate event.protected booleansubstituteValuesIfNecessary(Object entity, Serializable id, Object[] values, EntityPersister persister, SessionImplementor source)Perform any property value substitution that is necessary (interceptor callback, version initialization...)protected booleanvisitCollectionsBeforeSave(Object entity, Serializable id, Object[] values, Type[] types, EventSource source)-
从类继承的方法 org.hibernate.event.internal.AbstractSaveEventListener
cascadeAfterSave, cascadeBeforeSave, getMergeMap, injectCallbackRegistry, invokeSaveLifecycle, performSave, performSaveOrReplicate, saveWithGeneratedId, saveWithRequestedId
-
从类继承的方法 org.hibernate.event.internal.AbstractReassociateEventListener
reassociate
-
-
-
-
方法详细资料
-
onReplicate
public void onReplicate(ReplicateEvent event)
Handle the given replicate event.- 指定者:
onReplicate在接口中ReplicateEventListener- 参数:
event- The replicate event to be handled.- 抛出:
TransientObjectException- An invalid attempt to replicate a transient entity.
-
visitCollectionsBeforeSave
protected boolean visitCollectionsBeforeSave(Object entity, Serializable id, Object[] values, Type[] types, EventSource source)
-
substituteValuesIfNecessary
protected boolean substituteValuesIfNecessary(Object entity, Serializable id, Object[] values, EntityPersister persister, SessionImplementor source)
从类复制的说明:AbstractSaveEventListenerPerform any property value substitution that is necessary (interceptor callback, version initialization...)- 覆盖:
substituteValuesIfNecessary在类中AbstractSaveEventListener- 参数:
entity- The entityid- The entity identifiervalues- The snapshot entity statepersister- The entity persistersource- The originating session- 返回:
- True if the snapshot state changed such that reinjection of the values into the entity is required.
-
isVersionIncrementDisabled
protected boolean isVersionIncrementDisabled()
从类复制的说明:AbstractSaveEventListenerAfter the save, will te version number be incremented if the instance is modified?- 覆盖:
isVersionIncrementDisabled在类中AbstractSaveEventListener- 返回:
- True if the version will be incremented on an entity change after save; false otherwise.
-
getCascadeAction
protected CascadingAction getCascadeAction()
-
-