FileDocCategorySizeDatePackage
DirectToFieldChangeRecord.javaAPI DocGlassfish v2 API4056Tue May 22 16:54:42 BST 2007oracle.toplink.essentials.internal.sessions

DirectToFieldChangeRecord

public class DirectToFieldChangeRecord extends ChangeRecord implements oracle.toplink.essentials.changesets.DirectToFieldChangeRecord

Purpose: To record the changes for attributes that can be represented as DirectToField

see
RelatedClasses prototype.changeset.CollectionChangeRecord,prototype.changeset.SingleObjectChangeRecord

Fields Summary
protected Object
newValue
Constructors Summary
public DirectToFieldChangeRecord()
This default constructor is reference internally by SDK XML project to mapp this class

        super();
    
public DirectToFieldChangeRecord(ObjectChangeSet owner)
This constructor returns a changeRecord representing the DirectToField mapping

param
owner prototype.changeset.ObjectChangeSet that ObjectChangeSet that uses this record

        this.owner = owner;
    
Methods Summary
public java.lang.ObjectgetNewValue()
ADVANCED: Returns the new value assigned during the change

return
java.lang.Object

        return newValue;
    
public voidmergeRecord(ChangeRecord mergeFromRecord, UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)
INTERNAL: This method will be used to merge one record into another

        this.newValue = ((DirectToFieldChangeRecord)mergeFromRecord).getNewValue();
    
public voidsetNewValue(java.lang.Object newValue)
ADVANCED: Sets the new value assigned during the change

param
newValue java.lang.Object

        this.newValue = newValue;
    
public voidupdateChangeRecordWithNewValue(java.lang.Object newValue)
INTERNAL: used by the record to update the new value ignores the value in the default implementation

        setNewValue(newValue);
    
public voidupdateReferences(UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)
INTERNAL: This method will be used to update the objectsChangeSets references