|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.AbstractPersistenceHandler
com.force.sdk.jpa.ForcePersistenceHandler
public class ForcePersistenceHandler
Persistence handler that handles all CRUD operations and translates them into SOQL calls.
| Field Summary | |
|---|---|
protected ForceStoreManager |
storeManager
|
| Constructor Summary | |
|---|---|
ForcePersistenceHandler(org.datanucleus.store.StoreManager storeManager)
create the persistence handler that will be used for all API operations. |
|
| Method Summary | |
|---|---|
static void |
checkForErrors(com.sforce.soap.partner.DeleteResult[] results)
checks for errors in a delete call and handles the results properly. |
static void |
checkForRecycleBinErrors(com.sforce.soap.partner.EmptyRecycleBinResult[] results)
checks for errors in an empty recycle bin call. |
void |
close()
|
void |
createObjects(Collection<com.sforce.soap.partner.sobject.SObject> objects,
Collection<org.datanucleus.store.ObjectProvider> objectProviders,
org.datanucleus.store.ExecutionContext ec)
This method is used for AllOrNothing operations. |
void |
deleteObject(org.datanucleus.store.ObjectProvider op)
Deletes a persistent object from the datastore. |
void |
deleteObjects(String[] objects,
org.datanucleus.store.ExecutionContext ec)
This method is used for AllOrNothing operations. |
void |
fetchObject(org.datanucleus.store.ObjectProvider op,
int[] fieldNumbers)
Fetches a persistent object from the database. |
Object |
findObject(org.datanucleus.store.ExecutionContext ectx,
Object id)
|
void |
insertObject(org.datanucleus.store.ObjectProvider op)
Inserts a persistent object into the database. |
void |
locateObject(org.datanucleus.store.ObjectProvider op)
Locates this object in the datastore. |
void |
updateObject(org.datanucleus.store.ObjectProvider op,
int[] fieldNumbers)
Updates a persistent object in the datastore. |
void |
updateObjects(com.sforce.soap.partner.sobject.SObject[] objects,
Calendar[] versions,
org.datanucleus.store.ExecutionContext ec)
This method is used for AllOrNothing operations. |
| Methods inherited from class org.datanucleus.store.AbstractPersistenceHandler |
|---|
batchEnd, batchStart, findObjects, locateObjects |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final ForceStoreManager storeManager
| Constructor Detail |
|---|
public ForcePersistenceHandler(org.datanucleus.store.StoreManager storeManager)
storeManager - the store manager| Method Detail |
|---|
public void close()
public void deleteObject(org.datanucleus.store.ObjectProvider op)
op - The ObjectProvider of the object to be deleted.
public void fetchObject(org.datanucleus.store.ObjectProvider op,
int[] fieldNumbers)
op - The ObjectProvider of the object to be fetched.fieldNumbers - The numbers of the fields to be fetched.
public Object findObject(org.datanucleus.store.ExecutionContext ectx,
Object id)
public void insertObject(org.datanucleus.store.ObjectProvider op)
op - The ObjectProvider of the object to be inserted.
org.datanucleus.exceptions.NucleusDataStoreException - when an error occurs in the datastore communicationpublic void locateObject(org.datanucleus.store.ObjectProvider op)
op - The ObjectProvider for the object to be found
public void updateObject(org.datanucleus.store.ObjectProvider op,
int[] fieldNumbers)
op - The ObjectProvider of the object to be updated.fieldNumbers - The numbers of the fields to be updated.
public void createObjects(Collection<com.sforce.soap.partner.sobject.SObject> objects,
Collection<org.datanucleus.store.ObjectProvider> objectProviders,
org.datanucleus.store.ExecutionContext ec)
objects - the objects to be createdobjectProviders - the object providers for each objectec - the execution context for this transaction
public void updateObjects(com.sforce.soap.partner.sobject.SObject[] objects,
Calendar[] versions,
org.datanucleus.store.ExecutionContext ec)
objects - the objects to be updatedversions - the versions corresponding with each object for if-modified-before checksec - the execution context of this transaction
public void deleteObjects(String[] objects,
org.datanucleus.store.ExecutionContext ec)
objects - the objects to be deletedec - the execution context for this transactionpublic static void checkForErrors(com.sforce.soap.partner.DeleteResult[] results)
results - the results from the delete API callpublic static void checkForRecycleBinErrors(com.sforce.soap.partner.EmptyRecycleBinResult[] results)
results - the results from the empty recycle bin API call
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||