类 DefaultCustomEntityDirtinessStrategy
- java.lang.Object
-
- org.hibernate.boot.internal.DefaultCustomEntityDirtinessStrategy
-
- 所有已实现的接口:
CustomEntityDirtinessStrategy
public class DefaultCustomEntityDirtinessStrategy extends Object implements CustomEntityDirtinessStrategy
The default implementation ofCustomEntityDirtinessStrategywhich does nada.- 作者:
- Steve Ebersole
-
-
字段概要
字段 修饰符和类型 字段 说明 static DefaultCustomEntityDirtinessStrategyINSTANCE
-
构造器概要
构造器 构造器 说明 DefaultCustomEntityDirtinessStrategy()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleancanDirtyCheck(Object entity, EntityPersister persister, Session session)Is this strategy capable of telling whether the given entity is dirty?voidfindDirty(Object entity, EntityPersister persister, Session session, CustomEntityDirtinessStrategy.DirtyCheckContext dirtyCheckContext)Callback used to hook into Hibernate algorithm for determination of which attributes have changed.booleanisDirty(Object entity, EntityPersister persister, Session session)The callback used by Hibernate to determine if the given entity is dirty.voidresetDirty(Object entity, EntityPersister persister, Session session)Callback used by Hibernate to signal that the entity dirty flag should be cleared.
-
-
-
字段详细资料
-
INSTANCE
public static final DefaultCustomEntityDirtinessStrategy INSTANCE
-
-
方法详细资料
-
canDirtyCheck
public boolean canDirtyCheck(Object entity, EntityPersister persister, Session session)
从接口复制的说明:CustomEntityDirtinessStrategyIs this strategy capable of telling whether the given entity is dirty? A return oftruemeans thatCustomEntityDirtinessStrategy.isDirty(java.lang.Object, org.hibernate.persister.entity.EntityPersister, org.hibernate.Session)will be called next as the definitive means to determine whether the entity is dirty.- 指定者:
canDirtyCheck在接口中CustomEntityDirtinessStrategy- 参数:
entity- The entity to be check.persister- The persister corresponding to the given entitysession- The session from which this check originates.- 返回:
trueindicates the dirty check can be done;falseindicates it cannot.
-
isDirty
public boolean isDirty(Object entity, EntityPersister persister, Session session)
从接口复制的说明:CustomEntityDirtinessStrategyThe callback used by Hibernate to determine if the given entity is dirty. Only called if the previousCustomEntityDirtinessStrategy.canDirtyCheck(java.lang.Object, org.hibernate.persister.entity.EntityPersister, org.hibernate.Session)returnedtrue- 指定者:
isDirty在接口中CustomEntityDirtinessStrategy- 参数:
entity- The entity to check.persister- The persister corresponding to the given entitysession- The session from which this check originates.- 返回:
trueindicates the entity is dirty;falseindicates the entity is not dirty.
-
resetDirty
public void resetDirty(Object entity, EntityPersister persister, Session session)
从接口复制的说明:CustomEntityDirtinessStrategyCallback used by Hibernate to signal that the entity dirty flag should be cleared. Generally this happens after previous dirty changes were written to the database.- 指定者:
resetDirty在接口中CustomEntityDirtinessStrategy- 参数:
entity- The entity to resetpersister- The persister corresponding to the given entitysession- The session from which this call originates.
-
findDirty
public void findDirty(Object entity, EntityPersister persister, Session session, CustomEntityDirtinessStrategy.DirtyCheckContext dirtyCheckContext)
从接口复制的说明:CustomEntityDirtinessStrategyCallback used to hook into Hibernate algorithm for determination of which attributes have changed. Applications wanting to hook in to this would call back into the givenCustomEntityDirtinessStrategy.DirtyCheckContext.doDirtyChecking(org.hibernate.CustomEntityDirtinessStrategy.AttributeChecker)method passing along an appropriateCustomEntityDirtinessStrategy.AttributeCheckerimplementation.- 指定者:
findDirty在接口中CustomEntityDirtinessStrategy- 参数:
entity- The entity being checkedpersister- The persister corresponding to the given entitysession- The session from which this call originates.dirtyCheckContext- The callback context
-
-