|
EclipseLink 2.1.2, build 'v20101206-r8635' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ObjectChangeSet
Purpose: Provides API to the Class that holds all changes made to a particular Object.
Description: The ObjectChangeSet class represents a single Object registered in the UnitOfWork. It is owned by the larger UnitOfWorkChangeSet.
Method Summary | |
---|---|
boolean |
equals(java.lang.Object objectChange)
|
java.util.List<java.lang.String> |
getChangedAttributeNames()
ADVANCED: This method will return a collection of the names of attributes changed in an object. |
java.util.List<ChangeRecord> |
getChanges()
ADVANCED: This method returns a reference to the collection of changes within this changeSet. |
ChangeRecord |
getChangesForAttributeNamed(java.lang.String attributeName)
ADVANCED: Returns the change record for the specified attribute name. |
java.lang.String |
getClassName()
ADVANCE: This method returns the class Name that this changeSet Represents. |
java.lang.Class |
getClassType(Session session)
ADVANCE: This method returns the class type that this changeSet Represents. |
java.lang.Object |
getId()
ADVANCED: This method returns the primary key for the object that this change set represents. |
java.lang.Object |
getNewKey()
ADVANCED: This method returns the key value that this object will be stored under in it's respective Map. |
java.lang.Object |
getOldKey()
ADVANCED: This method returns the key value that this object was stored under in it's respective Map. |
java.util.Vector |
getPrimaryKeys()
Deprecated. |
UnitOfWorkChangeSet |
getUOWChangeSet()
ADVANCED: This method is used to return the parent ChangeSet. |
java.lang.Object |
getWriteLockValue()
ADVANCED: This method is used to return the lock value of the object this changeSet represents. |
boolean |
hasChangeFor(java.lang.String attributeName)
ADVANCED: This method will return true if the specified attribute has been changed. |
boolean |
hasChanges()
ADVANCED: Returns true if this particular changeSet has changes. |
boolean |
isNew()
ADVANCED: Returns true if this ObjectChangeSet represents a new object. |
void |
setShouldRecalculateAfterUpdateEvent(boolean shouldRecalculateAfterUpdateEvent)
ADVANCED Set whether this ObjectChangeSet should be recalculated after changes in event |
boolean |
shouldRecalculateAfterUpdateEvent()
ADVANCED Returns true if this ObjectChangeSet should be recalculated after changes in event |
Method Detail |
---|
boolean equals(java.lang.Object objectChange)
equals
in class java.lang.Object
java.util.List<java.lang.String> getChangedAttributeNames()
java.util.List<ChangeRecord> getChanges()
java.lang.Class getClassType(Session session)
java.lang.String getClassName()
java.lang.Object getOldKey()
java.lang.Object getNewKey()
@Deprecated java.util.Vector getPrimaryKeys()
getPrimaryKey()
java.lang.Object getId()
UnitOfWorkChangeSet getUOWChangeSet()
java.lang.Object getWriteLockValue()
ChangeRecord getChangesForAttributeNamed(java.lang.String attributeName)
boolean hasChangeFor(java.lang.String attributeName)
String
- the name of the attribute to search for.boolean hasChanges()
boolean isNew()
boolean shouldRecalculateAfterUpdateEvent()
void setShouldRecalculateAfterUpdateEvent(boolean shouldRecalculateAfterUpdateEvent)
|
EclipseLink 2.1.2, build 'v20101206-r8635' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |