public class NeoDatisPersistenceHandler
extends org.datanucleus.store.AbstractPersistenceHandler
Modifier and Type | Field and Description |
---|---|
static boolean |
neodatisDebug |
Constructor and Description |
---|
NeoDatisPersistenceHandler(org.datanucleus.store.StoreManager storeMgr)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Method to close the handler and release any resources.
|
void |
deleteObject(org.datanucleus.state.ObjectProvider sm)
Deletes a persistent object from the database.
|
void |
fetchObject(org.datanucleus.state.ObjectProvider sm,
int[] fieldNumbers)
Fetches fields of a persistent object from the database.
|
Object |
findObject(org.datanucleus.ExecutionContext ec,
Object id)
Accessor for an (at least) hollow persistable object matching the given id.
|
void |
insertObject(org.datanucleus.state.ObjectProvider op)
Inserts a persistent object into the database.
|
void |
locateObject(org.datanucleus.state.ObjectProvider sm)
Locates this object in the datastore.
|
void |
updateObject(org.datanucleus.state.ObjectProvider op,
int[] fieldNumbers)
Updates a persistent object in the database.
|
public NeoDatisPersistenceHandler(org.datanucleus.store.StoreManager storeMgr)
storeMgr
- Manager for the datastorepublic void close()
public void insertObject(org.datanucleus.state.ObjectProvider op)
op
- ObjectProvider of the object to be inserted.org.datanucleus.exceptions.NucleusDataStoreException
- when an error occurs in the datastore communicationpublic void updateObject(org.datanucleus.state.ObjectProvider op, int[] fieldNumbers)
op
- ObjectProvider 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 communicationorg.datanucleus.exceptions.NucleusOptimisticException
- thrown if version checking failspublic void deleteObject(org.datanucleus.state.ObjectProvider sm)
sm
- The state manager of the object to be deleted.org.datanucleus.exceptions.NucleusDataStoreException
- when an error occurs in the datastore communicationorg.datanucleus.exceptions.NucleusOptimisticException
- thrown if version checking fails on an optimistic transaction for this objectpublic void fetchObject(org.datanucleus.state.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 communicationpublic Object findObject(org.datanucleus.ExecutionContext ec, Object id)
ec
- execution contextid
- the id of the object in question.public void locateObject(org.datanucleus.state.ObjectProvider sm)
sm
- The ObjectProvider for the object to be foundorg.datanucleus.exceptions.NucleusObjectNotFoundException
- if the object doesnt existorg.datanucleus.exceptions.NucleusDataStoreException
- when an error occurs in the datastore communicationCopyright © 2016. All rights reserved.