| Modifier and Type | Field and Description |
|---|---|
| protected boolean | isDeferred
Defines if this change should be calculated at commit time using the two collections. |
| protected transient Object | latestCollection
Used for change tracking when user sets entire collection. |
| protected transient Object | originalCollection
Used for change tracking when user sets entire collection. |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | |
| public Object | |
| public Object | getOldValue()
Implements org. |
| public Object | |
| public Object | |
| public abstract void | internalRecreateOriginalCollection(Object currentCollection, AbstractSession session)
Recreates the original state of currentCollection. |
| public boolean | |
| public void | recreateOriginalCollection(Object currentCollection, AbstractSession session)
Recreates the original state of the collection. |
| public void | setIsDeferred(boolean isDeferred)
Sets if this change should be calculated at commit time using the two collections. |
| public void | setLatestCollection(Object latestCollection)
Used for change tracking when user sets entire collection. |
| public void | setOriginalCollection(Object originalCollection)
Used for change tracking when user sets entire collection. |
| isDeferred | back to summary |
|---|---|
| protected boolean isDeferred Defines if this change should be calculated at commit time using the two collections. This is used to handle collection replacement. | |
| latestCollection | back to summary |
|---|---|
| protected transient Object latestCollection Used for change tracking when user sets entire collection. | |
| originalCollection | back to summary |
|---|---|
| protected transient Object originalCollection Used for change tracking when user sets entire collection. | |
| DeferrableChangeRecord | back to summary |
|---|---|
| protected DeferrableChangeRecord() | |
| DeferrableChangeRecord | back to summary |
|---|---|
| protected DeferrableChangeRecord(ObjectChangeSet owner) | |
| clearChanges | back to summary |
|---|---|
| public abstract void clearChanges() Clears info about added / removed objects set by change tracker. Called after the change info has been already used for creation of originalCollection. Also called to make sure there is no change info before comparison for change is performed (change info is still in the record after comparison for change is performed and may cause wrong results when the second comparison for change performed on the same change record). | |
| getLatestCollection | back to summary |
|---|---|
| public Object getLatestCollection() Used for change tracking when user sets entire collection. This is the last collection that was set on the object. | |
| getOldValue | back to summary |
|---|---|
| public Object getOldValue() Implements org. ADVANCED: If the owning UnitOfWork has shouldChangeRecordKeepOldValue set to true, then return the old value of the attribute represented by this ChangeRecord.
| |
| getOldValue | back to summary |
|---|---|
| public Object getOldValue(Object currentCollection, AbstractSession session) | |
| getOriginalCollection | back to summary |
|---|---|
| public Object getOriginalCollection() Used for change tracking when user sets entire collection. This is the original collection that was set on the object when it was cloned. | |
| internalRecreateOriginalCollection | back to summary |
|---|---|
| public abstract void internalRecreateOriginalCollection(Object currentCollection, AbstractSession session) Recreates the original state of currentCollection. | |
| isDeferred | back to summary |
|---|---|
| public boolean isDeferred() Returns if this change should be calculated at commit time using the two collections. This is used to handle collection replacement. | |
| recreateOriginalCollection | back to summary |
|---|---|
| public void recreateOriginalCollection(Object currentCollection, AbstractSession session) Recreates the original state of the collection. | |
| setIsDeferred | back to summary |
|---|---|
| public void setIsDeferred(boolean isDeferred) Sets if this change should be calculated at commit time using the two collections. This is used to handle collection replacement. | |
| setLatestCollection | back to summary |
|---|---|
| public void setLatestCollection(Object latestCollection) Used for change tracking when user sets entire collection. This is the last collection that was set on the object. | |
| setOriginalCollection | back to summary |
|---|---|
| public void setOriginalCollection(Object originalCollection) Used for change tracking when user sets entire collection. This is the original collection that was set on the object when it was cloned. | |