|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.AbstractPersistenceHandler
public abstract class AbstractPersistenceHandler
Abstract representation of a persistence handler, to be extended by datastores own variant.
| Constructor Summary | |
|---|---|
AbstractPersistenceHandler()
|
|
| Method Summary | |
|---|---|
void |
batchEnd(ExecutionContext ec)
Signal that a batch of operations are ending for the specified ExecutionContext. |
void |
batchStart(ExecutionContext ec)
Signal that a batch of operations are starting for the specified ExecutionContext. |
java.lang.Object[] |
findObjects(ExecutionContext ec,
java.lang.Object[] ids)
Simple implementation of find of multiple objects, relaying the find for each object to |
void |
locateObjects(ObjectProvider[] sms)
Simple implementation of location of multiple objects, relaying the locate check for each object to |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.datanucleus.store.StorePersistenceHandler |
|---|
close, deleteObject, fetchObject, findObject, insertObject, locateObject, updateObject |
| Constructor Detail |
|---|
public AbstractPersistenceHandler()
| Method Detail |
|---|
public void batchEnd(ExecutionContext ec)
StorePersistenceHandler
batchEnd in interface StorePersistenceHandlerec - The ExecutionContextpublic void batchStart(ExecutionContext ec)
StorePersistenceHandler
batchStart in interface StorePersistenceHandlerec - The ExecutionContextpublic void locateObjects(ObjectProvider[] sms)
locateObject. Should be overridden by the datastore implementation if it is possible to do bulk locates.
locateObjects in interface StorePersistenceHandlersms - StateManagers for the objects to locate
NucleusObjectNotFoundException - if an object doesn't exist
NucleusDataStoreException - when an error occurs in the datastore communication
public java.lang.Object[] findObjects(ExecutionContext ec,
java.lang.Object[] ids)
findObject. Should be overridden by the datastore implementation if it is possible to do bulk retrieval.
findObjects in interface StorePersistenceHandlerec - execution contextids - identities of the object(s) to retrieve
ids)
NucleusObjectNotFoundException - if an object doesn't exist
NucleusDataStoreException - when an error occurs in the datastore communication
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||