@CompileStatic class DirtyCheckingSupport extends Object
Support methods for dirty checking
| Modifiers | Name | Description |
|---|---|---|
static Map |
DIRTY_CLASS_MARKER |
Used internally as a marker. |
| Constructor and description |
|---|
DirtyCheckingSupport() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static boolean |
areAssociationsDirty(Session session, PersistentEntity entity, Object instance)Checks whether associations are dirty |
|
static boolean |
areAssociationsDirty(PersistentEntity entity, Object instance)Checks whether associations are dirty |
|
static boolean |
areEmbeddedDirty(PersistentEntity entity, Object instance)Checks whether embedded associations are dirty |
|
static Collection |
wrap(Collection coll, DirtyCheckable parent, String property)Wraps a collection in dirty checking capability |
Used internally as a marker. Do not use in user code
Checks whether associations are dirty
session - The sessionentity - The entityinstance - The instanceChecks whether associations are dirty
session - The sessionentity - The entityinstance - The instanceChecks whether embedded associations are dirty
session - The sessionentity - The entityinstance - The instanceWraps a collection in dirty checking capability
coll - The collectionparent - The parentproperty - The property