public class DefaultCustomEntityDirtinessStrategy extends Object implements CustomEntityDirtinessStrategy
CustomEntityDirtinessStrategy which does nada.CustomEntityDirtinessStrategy.AttributeChecker, CustomEntityDirtinessStrategy.AttributeInformation, CustomEntityDirtinessStrategy.DirtyCheckContext| Modifier and Type | Field and Description |
|---|---|
static DefaultCustomEntityDirtinessStrategy |
INSTANCE |
| Constructor and Description |
|---|
DefaultCustomEntityDirtinessStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDirtyCheck(Object entity,
EntityPersister persister,
Session session)
Is this strategy capable of telling whether the given entity is dirty? A return of
true means that
CustomEntityDirtinessStrategy.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. |
void |
findDirty(Object entity,
EntityPersister persister,
Session session,
CustomEntityDirtinessStrategy.DirtyCheckContext dirtyCheckContext)
Callback used to hook into Hibernate algorithm for determination of which attributes have changed.
|
boolean |
isDirty(Object entity,
EntityPersister persister,
Session session)
The callback used by Hibernate to determine if the given entity is dirty.
|
void |
resetDirty(Object entity,
EntityPersister persister,
Session session)
Callback used by Hibernate to signal that the entity dirty flag should be cleared.
|
public static final DefaultCustomEntityDirtinessStrategy INSTANCE
public DefaultCustomEntityDirtinessStrategy()
public boolean canDirtyCheck(Object entity, EntityPersister persister, Session session)
CustomEntityDirtinessStrategytrue means that
CustomEntityDirtinessStrategy.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 in interface CustomEntityDirtinessStrategyentity - The entity to be check.persister - The persister corresponding to the given entitysession - The session from which this check originates.true indicates the dirty check can be done; false indicates it cannot.public boolean isDirty(Object entity, EntityPersister persister, Session session)
CustomEntityDirtinessStrategyCustomEntityDirtinessStrategy.canDirtyCheck(java.lang.Object, org.hibernate.persister.entity.EntityPersister, org.hibernate.Session) returned trueisDirty in interface CustomEntityDirtinessStrategyentity - The entity to check.persister - The persister corresponding to the given entitysession - The session from which this check originates.true indicates the entity is dirty; false indicates the entity is not dirty.public void resetDirty(Object entity, EntityPersister persister, Session session)
CustomEntityDirtinessStrategyresetDirty in interface CustomEntityDirtinessStrategyentity - The entity to resetpersister - The persister corresponding to the given entitysession - The session from which this call originates.public void findDirty(Object entity, EntityPersister persister, Session session, CustomEntityDirtinessStrategy.DirtyCheckContext dirtyCheckContext)
CustomEntityDirtinessStrategyCustomEntityDirtinessStrategy.DirtyCheckContext.doDirtyChecking(org.hibernate.CustomEntityDirtinessStrategy.AttributeChecker)
method passing along an appropriate CustomEntityDirtinessStrategy.AttributeChecker implementation.findDirty in interface CustomEntityDirtinessStrategyentity - The entity being checkedpersister - The persister corresponding to the given entitysession - The session from which this call originates.dirtyCheckContext - The callback contextCopyright © 2017 JBoss by Red Hat. All rights reserved.