Class OnCommitChangePropagatingUnitOfWork

All Implemented Interfaces:
ConfigurationHolder, MetamodelProvider, UnitOfWork, Wrapper

public class OnCommitChangePropagatingUnitOfWork extends AbstractUnitOfWork
  • Constructor Details

  • Method Details

    • removeObject

      public void removeObject(Object entity)
      Description copied from interface: UnitOfWork
      Remove the given object from the repository.
      Parameters:
      entity - Object to remove
    • unregisterObject

      public void unregisterObject(Object object)
      Description copied from interface: UnitOfWork
      Detaches the specified registered object from this Unit of Work.
      Specified by:
      unregisterObject in interface UnitOfWork
      Overrides:
      unregisterObject in class AbstractUnitOfWork
      Parameters:
      object - Clone to detach
    • attributeChanged

      public void attributeChanged(Object entity, Field f)
      Description copied from interface: UnitOfWork
      Persists changed value of the specified field.
      Parameters:
      entity - Entity with changes (the clone)
      f - The field whose value has changed
      See Also:
    • attributeChanged

      public void attributeChanged(Object entity, FieldSpecification<?,?> fieldSpec)
      Description copied from interface: UnitOfWork
      Persists changed value of the specified field.
      Parameters:
      entity - Entity with changes (the clone)
      fieldSpec - Metamodel element representing the attribute that changed
    • createIndirectCollection

      public Object createIndirectCollection(Object collection, Object owner, Field field)
      Description copied from interface: UnitOfWork
      Creates an indirect collection that wraps the specified collection instance and propagates changes to this persistence context.
      Parameters:
      collection - Collection to be proxied
      owner - Collection owner instance
      field - Field filled with the collection
      Returns:
      Indirect collection