Class UnitOfWorkQueryValueHolder<T>

All Implemented Interfaces:
Serializable, Cloneable, ValueHolderInterface<T>, WeavedAttributeValueHolderInterface<T>, WrappingValueHolder<T>

public class UnitOfWorkQueryValueHolder<T> extends UnitOfWorkValueHolder<T>
UnitOfWorkQueryValueHolder wraps a database-stored object and implements behavior to access it. The object is read from the database by invoking a user-specified query. This value holder is used only in the unit of work.
See Also:
  • Constructor Details

  • Method Details

    • buildBackupCloneFor

      protected Object buildBackupCloneFor(Object cloneAttributeValue)
      Backup the clone attribute value.
      Specified by:
      buildBackupCloneFor in class UnitOfWorkValueHolder<T>
    • buildCloneFor

      public T buildCloneFor(Object originalAttributeValue)
      Clone the original attribute value.
      Specified by:
      buildCloneFor in class UnitOfWorkValueHolder<T>
    • setValue

      public void setValue(T theValue)
      Ensure that the backup value holder is populated.
      Specified by:
      setValue in interface ValueHolderInterface<T>
      Overrides:
      setValue in class DatabaseValueHolder<T>
    • updateForeignReferenceRemove

      public void updateForeignReferenceRemove(Object value)
      INTERNAL: Here we now must check for bi-directional relationship. If the mapping has a relationship partner then we must maintain the original relationship. We only worry about ObjectReferenceMappings as the collections mappings will be handled by transparentIndirection
    • updateForeignReferenceSet

      public void updateForeignReferenceSet(Object value, Object oldValue)
      INTERNAL: Here we now must check for bi-directional relationship. If the mapping has a relationship partner then we must maintain the original relationship. We only worry about ObjectReferenceMappings as the collections mappings will be handled by transparentIndirection