Class AbstractPersistenceHandler
java.lang.Object
org.datanucleus.store.AbstractPersistenceHandler
- All Implemented Interfaces:
StorePersistenceHandler
Abstract representation of a persistence handler, to be extended by datastores own variant.
-
Nested Class Summary
Nested classes/interfaces inherited from interface StorePersistenceHandler
StorePersistenceHandler.PersistenceBatchType -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConvenience method to assert when this StoreManager is read-only and the specified object is attempting to be updated.findObjectForUnique(ExecutionContext ec, AbstractClassMetaData cmd, String[] memberNames, Object[] values) Method to find the object with the specified value(s) for the member(s) of the specified type.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface StorePersistenceHandler
batchEnd, batchStart, close, deleteObject, deleteObjects, fetchObject, fetchObjects, findObject, findObjects, insertObject, insertObjects, locateObject, locateObjects, updateObject
-
Field Details
-
storeMgr
-
-
Constructor Details
-
AbstractPersistenceHandler
-
-
Method Details
-
findObjectForUnique
public Object findObjectForUnique(ExecutionContext ec, AbstractClassMetaData cmd, String[] memberNames, Object[] values) Description copied from interface:StorePersistenceHandlerMethod to find the object with the specified value(s) for the member(s) of the specified type.- Specified by:
findObjectForUniquein interfaceStorePersistenceHandler- Parameters:
ec- ExecutionContextcmd- Metadata for the class in questionmemberNames- Member(s) that define the objectvalues- Value(s) for the member(s)- Returns:
- The object with these member value(s)
-
assertReadOnlyForUpdateOfObject
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
-