Class AbstractPersistenceHandler

java.lang.Object
org.datanucleus.store.AbstractPersistenceHandler
All Implemented Interfaces:
StorePersistenceHandler

public abstract class AbstractPersistenceHandler extends Object implements StorePersistenceHandler
Abstract representation of a persistence handler, to be extended by datastores own variant.
  • Field Details

  • Constructor Details

    • AbstractPersistenceHandler

      public AbstractPersistenceHandler(StoreManager storeMgr)
  • Method Details

    • findObjectForUnique

      public Object findObjectForUnique(ExecutionContext ec, AbstractClassMetaData cmd, String[] memberNames, Object[] values)
      Description copied from interface: StorePersistenceHandler
      Method to find the object with the specified value(s) for the member(s) of the specified type.
      Specified by:
      findObjectForUnique in interface StorePersistenceHandler
      Parameters:
      ec - ExecutionContext
      cmd - Metadata for the class in question
      memberNames - Member(s) that define the object
      values - Value(s) for the member(s)
      Returns:
      The object with these member value(s)
    • assertReadOnlyForUpdateOfObject

      public void assertReadOnlyForUpdateOfObject(DNStateManager sm)
      Convenience method to assert when this StoreManager is read-only and the specified object is attempting to be updated.
      Parameters:
      sm - StateManager for the object