Oracle Application Server TopLink API Reference
10g (9.0.4)

B10491-01

oracle.toplink.changesets
Interface ObjectChangeSet


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(ObjectChangeSet objectChange)
           
 java.util.Vector getChangedAttributeNames()
          ADVANCED: This method will return a collection of the fieldnames of attributes changed in an object
 java.util.Vector getChanges()
          ADVANCED: This method returns a reference to the collection of changes within this changeSet
 java.lang.String getClassName()
          ADVANCE: This method returns the class Name that this changeSet Represents
 java.lang.Class getClassType()
          Deprecated.  
 java.lang.Object getNewKey()
          ADVANCED: This method returns the key value that this object will be stored under in it's Respective hashmap.
 java.lang.Object getOldKey()
          ADVANCED: This method returns the key value that this object was stored under in it's Respective hashmap.
 java.util.Vector getPrimaryKeys()
          ADVANCED: This method returns the primary keys for the object that this change set represents
 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 attributue 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

 

Method Detail

equals

public boolean equals(ObjectChangeSet objectChange)

getChangedAttributeNames

public java.util.Vector getChangedAttributeNames()
ADVANCED: This method will return a collection of the fieldnames of attributes changed in an object
Returns:
java.util.Vector

getChanges

public java.util.Vector getChanges()
ADVANCED: This method returns a reference to the collection of changes within this changeSet
Returns:
java.util.Vector

getClassType

public java.lang.Class getClassType()
Deprecated.  
ADVANCE: This method returns the class type that this changeSet Represents
Returns:
java.lang.Class

getClassName

public java.lang.String getClassName()
ADVANCE: This method returns the class Name that this changeSet Represents
Returns:
java.lang.String

getOldKey

public java.lang.Object getOldKey()
ADVANCED: This method returns the key value that this object was stored under in it's Respective hashmap.
Returns:
java.lang.Object

getNewKey

public java.lang.Object getNewKey()
ADVANCED: This method returns the key value that this object will be stored under in it's Respective hashmap.
Returns:
java.lang.Object

getPrimaryKeys

public java.util.Vector getPrimaryKeys()
ADVANCED: This method returns the primary keys for the object that this change set represents
Returns:
java.util.Vector

getUOWChangeSet

public UnitOfWorkChangeSet getUOWChangeSet()
ADVANCED: This method is used to return the parent ChangeSet
Returns:
oracle.toplink.changesets.UnitOfWorkChangeSet

getWriteLockValue

public java.lang.Object getWriteLockValue()
ADVANCED: This method is used to return the lock value of the object this changeSet represents
Returns:
java.lang.Object

hasChangeFor

public boolean hasChangeFor(java.lang.String attributeName)
ADVANCED: This method will return true if the specified attributue has been changed

hasChanges

public boolean hasChanges()
ADVANCED: Returns true if this particular changeSet has changes.
Returns:
boolean

isNew

public boolean isNew()
ADVANCED: Returns true if this ObjectChangeSet represents a new object
Returns:
boolean

Copyright © 2003 Oracle Corporation. All Rights Reserved.