Top Description Methods
org.hibernate.engine.spi

public Interface SelfDirtinessTracker

extends PrimeAmongSecondarySupertypes
Known Direct Subinterfaces
org.hibernate.engine.spi.ExtendedSelfDirtinessTracker
Imports
org.hibernate.bytecode.enhance.spi.CollectionTracker

Contract for an entity to report that it tracks the dirtiness of its own state, as opposed to needing Hibernate to perform state-diff dirty calculations.

Entity classes are free to implement this contract themselves. This contract is also introduced into the entity when using bytecode enhancement and requesting that entities track their own dirtiness.

Author
Ståle W. Pedersen

Method Summary

Modifier and TypeMethod and Description
public void
$$_hibernate_clearDirtyAttributes()

Clear the stored dirty attributes

public CollectionTracker
$$_hibernate_getCollectionTracker()

Get access to the CollectionTracker

public String[]

Returns:

An array of changed persistent attribute names
$$_hibernate_getDirtyAttributes
()

Retrieve the names of all the persistent attributes whose values have changed.

public boolean

Returns:

true indicates one or more persistent attributes have changed; false indicates none have changed.
$$_hibernate_hasDirtyAttributes
()

Have any of the entity's persistent attributes changed?

public void
$$_hibernate_suspendDirtyTracking(boolean suspend)

Temporarily enable / disable dirty tracking

public void
$$_hibernate_trackChange(String attributes)

Adds persistent attribute to the set of values that have changed

public default SelfDirtinessTracker

Returns:

this same instance
asSelfDirtinessTracker
()

Overrides default org.hibernate.engine.spi.PrimeAmongSecondarySupertypes.asSelfDirtinessTracker.

Special internal contract to optimize type checking
Inherited from org.hibernate.engine.spi.PrimeAmongSecondarySupertypes:
asCompositeOwnerasCompositeTrackerasHibernateProxyasManagedasManagedCompositeasManagedEntityasManagedMappedSuperclassasPersistentAttributeInterceptableasProxyConfiguration

Method Detail

$$_hibernate_clearDirtyAttributesback to summary
public void $$_hibernate_clearDirtyAttributes()

Clear the stored dirty attributes

$$_hibernate_getCollectionTrackerback to summary
public CollectionTracker $$_hibernate_getCollectionTracker()

Get access to the CollectionTracker

$$_hibernate_getDirtyAttributesback to summary
public String[] $$_hibernate_getDirtyAttributes()

Retrieve the names of all the persistent attributes whose values have changed.

Returns:String[]

An array of changed persistent attribute names

$$_hibernate_hasDirtyAttributesback to summary
public boolean $$_hibernate_hasDirtyAttributes()

Have any of the entity's persistent attributes changed?

Returns:boolean

true indicates one or more persistent attributes have changed; false indicates none have changed.

$$_hibernate_suspendDirtyTrackingback to summary
public void $$_hibernate_suspendDirtyTracking(boolean suspend)

Temporarily enable / disable dirty tracking

$$_hibernate_trackChangeback to summary
public void $$_hibernate_trackChange(String attributes)

Adds persistent attribute to the set of values that have changed

asSelfDirtinessTrackerback to summary
public default SelfDirtinessTracker asSelfDirtinessTracker()

Overrides default org.hibernate.engine.spi.PrimeAmongSecondarySupertypes.asSelfDirtinessTracker.

Special internal contract to optimize type checking

Returns:SelfDirtinessTracker

this same instance

Annotations
@Override
See Also
PrimeAmongSecondarySupertypes