public class FederatedPersistenceHandler extends Object implements StorePersistenceHandler
| Constructor and Description |
|---|
FederatedPersistenceHandler(StoreManager storeMgr)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
batchEnd(ExecutionContext ec,
PersistenceBatchType type)
Signal that the current batch of operations are ending for the specified ExecutionContext.
|
void |
batchStart(ExecutionContext ec,
PersistenceBatchType batchType)
Signal that a batch of operations are starting for the specified ExecutionContext.
|
void |
close()
Method to close the persistence handler, and release any resources.
|
void |
deleteObject(ObjectProvider op)
Deletes a persistent object from the datastore.
|
void |
deleteObjects(ObjectProvider... ops)
Method to delete an array of objects from the datastore.
|
void |
fetchObject(ObjectProvider op,
int[] fieldNumbers)
Fetches a persistent object from the database.
|
Object |
findObject(ExecutionContext ec,
Object id)
Method to find a persistable object with the specified id from the datastore, if the StoreManager
supports this operation (optional).
|
Object[] |
findObjects(ExecutionContext ec,
Object[] ids)
Method to find an array of objects with the specified identities from the datastore.
|
void |
insertObject(ObjectProvider op)
Inserts a persistent object into the database.
|
void |
insertObjects(ObjectProvider... ops)
Method to insert an array of objects to the datastore.
|
void |
locateObject(ObjectProvider op)
Locates this object in the datastore.
|
void |
locateObjects(ObjectProvider[] ops)
Locates object(s) in the datastore.
|
void |
updateObject(ObjectProvider op,
int[] fieldNumbers)
Updates a persistent object in the datastore.
|
boolean |
useReferentialIntegrity() |
public FederatedPersistenceHandler(StoreManager storeMgr)
storeMgr - StoreManagerpublic void close()
StorePersistenceHandlerclose in interface StorePersistenceHandlerpublic boolean useReferentialIntegrity()
public void insertObjects(ObjectProvider... ops)
StorePersistenceHandlerinsertObjects in interface StorePersistenceHandlerops - ObjectProviders for the objects to insertpublic void deleteObjects(ObjectProvider... ops)
StorePersistenceHandlerdeleteObjects in interface StorePersistenceHandlerops - ObjectProviders for the objects to deletepublic void batchStart(ExecutionContext ec, PersistenceBatchType batchType)
StorePersistenceHandlerbatchStart in interface StorePersistenceHandlerec - The ExecutionContextbatchType - Type of this batch that is startingpublic void batchEnd(ExecutionContext ec, PersistenceBatchType type)
StorePersistenceHandlerbatchEnd in interface StorePersistenceHandlerec - The ExecutionContexttype - Type of batch that is endingpublic void insertObject(ObjectProvider op)
StorePersistenceHandlerinsertObject in interface StorePersistenceHandlerop - The ObjectProvider of the object to be inserted.public void updateObject(ObjectProvider op, int[] fieldNumbers)
StorePersistenceHandlerupdateObject in interface StorePersistenceHandlerop - The ObjectProvider of the object to be updated.fieldNumbers - The numbers of the fields to be updated.public void deleteObject(ObjectProvider op)
StorePersistenceHandlerdeleteObject in interface StorePersistenceHandlerop - The ObjectProvider of the object to be deleted.public void fetchObject(ObjectProvider op, int[] fieldNumbers)
StorePersistenceHandlerfetchObject in interface StorePersistenceHandlerop - The ObjectProvider of the object to be fetched.fieldNumbers - The numbers of the fields to be fetched.public void locateObject(ObjectProvider op)
StorePersistenceHandlerlocateObject in interface StorePersistenceHandlerop - The ObjectProvider for the object to be foundpublic void locateObjects(ObjectProvider[] ops)
StorePersistenceHandlerlocateObjects in interface StorePersistenceHandlerops - ObjectProvider(s) for the object(s) to be foundpublic Object findObject(ExecutionContext ec, Object id)
StorePersistenceHandlerfindObject in interface StorePersistenceHandlerec - The ExecutionContextid - the id of the object in question.public Object[] findObjects(ExecutionContext ec, Object[] ids)
StorePersistenceHandlerfindObjects in interface StorePersistenceHandlerec - The ExecutionContextids - identities of the object(s) to retrieveids)
Copyright © 2017. All rights reserved.