Top Description Methods
org.eclipse.persistence.sessions.changesets

public Interface ObjectChangeSet

Known Direct Implementers
org.eclipse.persistence.internal.sessions.ObjectChangeSet
Imports
java.util.List, org.eclipse.persistence.sessions.Session

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

Modifier and TypeMethod and Description
public boolean
equals(Object objectChange)

public List<String>
getChangedAttributeNames()

ADVANCED: This method will return a collection of the names of attributes changed in an object.

public List<ChangeRecord>
getChanges()

ADVANCED: This method returns a reference to the collection of changes within this changeSet.

public ChangeRecord
getChangesForAttributeNamed(String attributeName)

ADVANCED: Returns the change record for the specified attribute name.

public String
getClassName()

ADVANCE: This method returns the class Name that this changeSet Represents.

public Class<?>
getClassType(Session session)

ADVANCE: This method returns the class type that this changeSet Represents.

public Object
getId()

ADVANCED: This method returns the primary key for the object that this change set represents.

public Object
getNewKey()

ADVANCED: This method returns the key value that this object will be stored under in it's respective Map.

public Object
getOldKey()

ADVANCED: This method returns the key value that this object was stored under in it's respective Map.

public UnitOfWorkChangeSet
getUOWChangeSet()

ADVANCED: This method is used to return the parent ChangeSet.

public Object
getWriteLockValue()

ADVANCED: This method is used to return the lock value of the object this changeSet represents.

public boolean
hasChangeFor(String
the name of the attribute to search for.
attributeName
)

ADVANCED: This method will return true if the specified attribute has been changed.

public boolean
hasChanges()

ADVANCED: Returns true if this particular changeSet has changes.

public boolean
isNew()

ADVANCED: Returns true if this ObjectChangeSet represents a new object.

public void
setShouldRecalculateAfterUpdateEvent(boolean shouldRecalculateAfterUpdateEvent)

ADVANCED Set whether this ObjectChangeSet should be recalculated after changes in event

public boolean
shouldRecalculateAfterUpdateEvent()

ADVANCED Returns true if this ObjectChangeSet should be recalculated after changes in event

Method Detail

equalsback to summary
public boolean equals(Object objectChange)
Annotations
@Override
getChangedAttributeNamesback to summary
public List<String> getChangedAttributeNames()

ADVANCED: This method will return a collection of the names of attributes changed in an object.

getChangesback to summary
public List<ChangeRecord> getChanges()

ADVANCED: This method returns a reference to the collection of changes within this changeSet.

getChangesForAttributeNamedback to summary
public ChangeRecord getChangesForAttributeNamed(String attributeName)

ADVANCED: Returns the change record for the specified attribute name.

getClassNameback to summary
public String getClassName()

ADVANCE: This method returns the class Name that this changeSet Represents.

getClassTypeback to summary
public Class<?> getClassType(Session session)

ADVANCE: This method returns the class type that this changeSet Represents.

getIdback to summary
public Object getId()

ADVANCED: This method returns the primary key for the object that this change set represents.

getNewKeyback to summary
public Object getNewKey()

ADVANCED: This method returns the key value that this object will be stored under in it's respective Map. This is old relevant for collection mappings that use a Map.

getOldKeyback to summary
public Object getOldKey()

ADVANCED: This method returns the key value that this object was stored under in it's respective Map. This is old relevant for collection mappings that use a Map.

getUOWChangeSetback to summary
public UnitOfWorkChangeSet getUOWChangeSet()

ADVANCED: This method is used to return the parent ChangeSet.

getWriteLockValueback to summary
public Object getWriteLockValue()

ADVANCED: This method is used to return the lock value of the object this changeSet represents.

hasChangeForback to summary
public boolean hasChangeFor(String attributeName)

ADVANCED: This method will return true if the specified attribute has been changed.

Parameters
attributeName:String

the name of the attribute to search for.

hasChangesback to summary
public boolean hasChanges()

ADVANCED: Returns true if this particular changeSet has changes.

isNewback to summary
public boolean isNew()

ADVANCED: Returns true if this ObjectChangeSet represents a new object.

setShouldRecalculateAfterUpdateEventback to summary
public void setShouldRecalculateAfterUpdateEvent(boolean shouldRecalculateAfterUpdateEvent)

ADVANCED Set whether this ObjectChangeSet should be recalculated after changes in event

shouldRecalculateAfterUpdateEventback to summary
public boolean shouldRecalculateAfterUpdateEvent()

ADVANCED Returns true if this ObjectChangeSet should be recalculated after changes in event