Class AbstractPersistenceHandler

  • All Implemented Interfaces:
    StorePersistenceHandler

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

      • AbstractPersistenceHandler

        public AbstractPersistenceHandler​(StoreManager storeMgr)
    • Method Detail

      • findObjectForUnique

        public java.lang.Object findObjectForUnique​(ExecutionContext ec,
                                                    AbstractClassMetaData cmd,
                                                    java.lang.String[] memberNames,
                                                    java.lang.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