public interface SelfDirtinessTracker
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. <p/> 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 there own dirtiness.
| Modifier and Type | Method and Description |
|---|---|
void |
$$_hibernate_clearDirtyAttributes()
Clear the stored dirty attributes
|
CollectionTracker |
$$_hibernate_getCollectionTracker()
Get access to the CollectionTracker
|
String[] |
$$_hibernate_getDirtyAttributes()
Retrieve the names of all the persistent attributes whose values have changed.
|
boolean |
$$_hibernate_hasDirtyAttributes()
Have any of the entity’s persistent attributes changed?
|
void |
$$_hibernate_suspendDirtyTracking(boolean suspend)
Temporarily enable / disable dirty tracking
|
void |
$$_hibernate_trackChange(String attributes)
Adds persistent attribute to the set of values that have changed
|
boolean $$_hibernate_hasDirtyAttributes()
Have any of the entity’s persistent attributes changed?
true indicates one or more persistent attributes have changed; false
indicates none have changed.String[] $$_hibernate_getDirtyAttributes()
Retrieve the names of all the persistent attributes whose values have changed.
void $$_hibernate_trackChange(String attributes)
Adds persistent attribute to the set of values that have changed
void $$_hibernate_clearDirtyAttributes()
Clear the stored dirty attributes
void $$_hibernate_suspendDirtyTracking(boolean suspend)
Temporarily enable / disable dirty tracking
CollectionTracker $$_hibernate_getCollectionTracker()
Get access to the CollectionTracker
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.