Class ChangeRecord

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String attribute
      This is the attribute name that this change record represents
      protected DatabaseMapping mapping
      This attribute stores the mapping along with the attribute so that the mapping does not need to be looked up
      protected ObjectChangeSet owner
      This is the object change set that holds this record
    • Constructor Summary

      Constructors 
      Constructor Description
      ChangeRecord()  
    • Field Detail

      • attribute

        protected java.lang.String attribute
        This is the attribute name that this change record represents
      • mapping

        protected transient DatabaseMapping mapping
        This attribute stores the mapping along with the attribute so that the mapping does not need to be looked up
      • owner

        protected ObjectChangeSet owner
        This is the object change set that holds this record
    • Constructor Detail

      • ChangeRecord

        public ChangeRecord()
    • Method Detail

      • getAttribute

        public java.lang.String getAttribute()
        ADVANCED: Returns the name of the attribute this ChangeRecord Represents
        Specified by:
        getAttribute in interface ChangeRecord
        Returns:
        String
      • getMapping

        public DatabaseMapping getMapping()
        ADVANCED: Returns the mapping for the attribute this ChangeRecord Represents
      • getOwner

        public ObjectChangeSet getOwner()
        Description copied from interface: ChangeRecord
        ADVANCED: This method returns the ObjectChangeSet that references this ChangeRecord
        Specified by:
        getOwner in interface ChangeRecord
        Returns:
        org.eclipse.persistence.sessions.changesets.ObjectChangeSet
      • prepareForSynchronization

        public void prepareForSynchronization​(AbstractSession session)
        INTERNAL: Ensure this change record is ready to by sent remotely for cache synchronization In general, this means setting the CacheSynchronizationType on any ObjectChangeSets associated with this ChangeRecord
      • setAttribute

        public void setAttribute​(java.lang.String newValue)
        Sets the name of the attribute that this Record represents.
      • setMapping

        public void setMapping​(DatabaseMapping mapping)
        Sets the mapping for the attribute that this Record represents
      • setOwner

        public void setOwner​(ObjectChangeSet newOwner)
        INTERNAL: This method is used to set the ObjectChangeSet that uses this Record in that Record.
        Parameters:
        ObjectChangeSet - The changeSet that uses this record.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • updateChangeRecordWithNewValue

        public void updateChangeRecordWithNewValue​(java.lang.Object newValue)
        INTERNAL: used by the record to update the new value ignores the value in the default implementation
      • updateReferences

        public abstract void updateReferences​(UnitOfWorkChangeSet mergeToChangeSet,
                                              UnitOfWorkChangeSet mergeFromChangeSet)
        INTERNAL: This method will be used to update the objectsChangeSets references