|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.AbstractPersistenceHandler
org.datanucleus.store.db4o.DB4OPersistenceHandler
public class DB4OPersistenceHandler
Persistence handler for persisting to DB4O datastores.
| Field Summary | |
|---|---|
protected static org.datanucleus.util.Localiser |
LOCALISER
Localiser for messages. |
protected DB4OStoreManager |
storeMgr
Manager for the store. |
| Constructor Summary | |
|---|---|
DB4OPersistenceHandler(org.datanucleus.store.StoreManager storeMgr)
Constructor. |
|
| Method Summary | |
|---|---|
void |
close()
Method to close the handler and release any resources. |
void |
deleteObject(org.datanucleus.store.ObjectProvider sm)
Deletes a persistent object from the database. |
void |
fetchObject(org.datanucleus.store.ObjectProvider sm,
int[] fieldNumbers)
Fetches fields of a persistent object from the database. |
java.lang.Object |
findObject(org.datanucleus.store.ExecutionContext ec,
java.lang.Object id)
Accessor for an (at least) hollow PersistenceCapable object matching the given id. |
void |
insertObject(org.datanucleus.store.ObjectProvider sm)
Inserts a persistent object into the database. |
void |
locateObject(org.datanucleus.store.ObjectProvider sm)
Locates this object in the datastore. |
void |
updateObject(org.datanucleus.store.ObjectProvider sm,
int[] fieldNumbers)
Updates a persistent object in the database. |
boolean |
useReferentialIntegrity()
|
| Methods inherited from class org.datanucleus.store.AbstractPersistenceHandler |
|---|
batchEnd, batchStart, deleteObjects, findObjects, insertObjects, locateObjects |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.datanucleus.util.Localiser LOCALISER
protected final DB4OStoreManager storeMgr
| Constructor Detail |
|---|
public DB4OPersistenceHandler(org.datanucleus.store.StoreManager storeMgr)
storeMgr - Manager for the datastore| Method Detail |
|---|
public void close()
public boolean useReferentialIntegrity()
useReferentialIntegrity in interface org.datanucleus.store.StorePersistenceHandleruseReferentialIntegrity in class org.datanucleus.store.AbstractPersistenceHandlerpublic void insertObject(org.datanucleus.store.ObjectProvider sm)
sm - The state manager of the object to be inserted.
org.datanucleus.exceptions.NucleusDataStoreException - when an error occurs in the datastore communication
public void updateObject(org.datanucleus.store.ObjectProvider sm,
int[] fieldNumbers)
sm - The state manager of the object to be updated.fieldNumbers - The numbers of the fields to be updated.
org.datanucleus.exceptions.NucleusDataStoreException - when an error occurs in the datastore communication
org.datanucleus.exceptions.NucleusOptimisticException - thrown if version checking failspublic void deleteObject(org.datanucleus.store.ObjectProvider sm)
sm - The state manager of the object to be deleted.
org.datanucleus.exceptions.NucleusDataStoreException - when an error occurs in the datastore communication
org.datanucleus.exceptions.NucleusOptimisticException - thrown if version checking fails on an optimistic transaction for this object
public void fetchObject(org.datanucleus.store.ObjectProvider sm,
int[] fieldNumbers)
sm - The state manager of the object to be fetched.fieldNumbers - The numbers of the fields to be fetched.
org.datanucleus.exceptions.NucleusDataStoreException - when an error occurs in the datastore communication
public java.lang.Object findObject(org.datanucleus.store.ExecutionContext ec,
java.lang.Object id)
ec - the ObjectManager which will manage the objectid - the id of the object in question.
public void locateObject(org.datanucleus.store.ObjectProvider sm)
sm - The StateManager for the object to be found
org.datanucleus.exceptions.NucleusObjectNotFoundException - if the object doesnt exist
org.datanucleus.exceptions.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 | |||||||||