Top Description Fields Constructors Methods
org.hibernate.boot.internal

public Class DefaultCustomEntityDirtinessStrategy

extends Object
implements CustomEntityDirtinessStrategy
Class Inheritance
All Implemented Interfaces
org.hibernate.CustomEntityDirtinessStrategy
Imports
org.hibernate.CustomEntityDirtinessStrategy, .Session, org.hibernate.persister.entity.EntityPersister

The default implementation of org.hibernate.CustomEntityDirtinessStrategy which does nada.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final DefaultCustomEntityDirtinessStrategy

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
canDirtyCheck(Object
The entity to be check.
entity
,
EntityPersister
The persister corresponding to the given entity
persister
,
Session
The session from which this check originates.
session
)

Implements org.hibernate.CustomEntityDirtinessStrategy.canDirtyCheck.

Deprecated as a consequence of Session being deprecated.
Is this strategy capable of telling whether the given entity is dirty?
public void
findDirty(Object
The entity being checked
entity
,
EntityPersister
The persister corresponding to the given entity
persister
,
Session
The session from which this call originates.
session
,
CustomEntityDirtinessStrategy.DirtyCheckContext
The callback context
dirtyCheckContext
)

Implements org.hibernate.CustomEntityDirtinessStrategy.findDirty.

Deprecated as a consequence of Session being deprecated.
Callback used to hook into Hibernate algorithm for determination of which attributes have changed.
public boolean
isDirty(Object
The entity to check.
entity
,
EntityPersister
The persister corresponding to the given entity
persister
,
Session
The session from which this check originates.
session
)

Implements org.hibernate.CustomEntityDirtinessStrategy.isDirty.

Deprecated as a consequence of Session being deprecated.
The callback used by Hibernate to determine if the given entity is dirty.
public void
resetDirty(Object
The entity to reset
entity
,
EntityPersister
The persister corresponding to the given entity
persister
,
Session
The session from which this call originates.
session
)

Implements org.hibernate.CustomEntityDirtinessStrategy.resetDirty.

Deprecated as a consequence of Session being deprecated.
Callback used by Hibernate to signal that the entity dirty flag should be cleared.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final DefaultCustomEntityDirtinessStrategy INSTANCE

Constructor Detail

DefaultCustomEntityDirtinessStrategyback to summary
public DefaultCustomEntityDirtinessStrategy()

Method Detail

canDirtyCheckback to summary
public boolean canDirtyCheck(Object entity, EntityPersister persister, Session session)

Implements org.hibernate.CustomEntityDirtinessStrategy.canDirtyCheck.

Doc from org.hibernate.CustomEntityDirtinessStrategy.canDirtyCheck.

Deprecated

as a consequence of Session being deprecated. See corresponding docs for further information.

Is this strategy capable of telling whether the given entity is dirty? A return of true means that isDirty will be called next as the definitive means to determine whether the entity is dirty.

Parameters
entity:Object

The entity to be check.

persister:EntityPersister

The persister corresponding to the given entity

session:Session

The session from which this check originates.

Returns:boolean

true indicates the dirty check can be done; false indicates it cannot.

Annotations
@Override
findDirtyback to summary
public void findDirty(Object entity, EntityPersister persister, Session session, CustomEntityDirtinessStrategy.DirtyCheckContext dirtyCheckContext)

Implements org.hibernate.CustomEntityDirtinessStrategy.findDirty.

Doc from org.hibernate.CustomEntityDirtinessStrategy.findDirty.

Deprecated

as a consequence of Session being deprecated. See corresponding docs for further information.

Callback 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 given DirtyCheckContext#doDirtyChecking method passing along an appropriate AttributeChecker implementation.

Parameters
entity:Object

The entity being checked

persister:EntityPersister

The persister corresponding to the given entity

session:Session

The session from which this call originates.

dirtyCheckContext:CustomEntityDirtinessStrategy.DirtyCheckContext

The callback context

Annotations
@Override
isDirtyback to summary
public boolean isDirty(Object entity, EntityPersister persister, Session session)

Implements org.hibernate.CustomEntityDirtinessStrategy.isDirty.

Doc from org.hibernate.CustomEntityDirtinessStrategy.isDirty.

Deprecated

as a consequence of Session being deprecated. See corresponding docs for further information.

The callback used by Hibernate to determine if the given entity is dirty. Only called if the previous canDirtyCheck returned true

Parameters
entity:Object

The entity to check.

persister:EntityPersister

The persister corresponding to the given entity

session:Session

The session from which this check originates.

Returns:boolean

true indicates the entity is dirty; false indicates the entity is not dirty.

Annotations
@Override
resetDirtyback to summary
public void resetDirty(Object entity, EntityPersister persister, Session session)

Implements org.hibernate.CustomEntityDirtinessStrategy.resetDirty.

Doc from org.hibernate.CustomEntityDirtinessStrategy.resetDirty.

Deprecated

as a consequence of Session being deprecated. See corresponding docs for further information.

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

Parameters
entity:Object

The entity to reset

persister:EntityPersister

The persister corresponding to the given entity

session:Session

The session from which this call originates.

Annotations
@Override