public class XMLPersistenceHandler
extends org.datanucleus.store.AbstractPersistenceHandler
| Constructor and Description |
|---|
XMLPersistenceHandler(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 op)
Deletes the object managed by the passed ObjectProvider from the XML datastore.
|
void |
fetchObject(org.datanucleus.state.ObjectProvider op,
int[] fieldNumbers)
Method to retrieve the specified fields of the object managed by the ObjectProvider.
|
Object |
findObject(org.datanucleus.ExecutionContext ec,
Object id)
Accessor for the object with the specified identity (if present).
|
void |
insertObject(org.datanucleus.state.ObjectProvider op)
Insert the object managed by the passed ObjectProvider into the XML datastore.
|
void |
locateObject(org.datanucleus.state.ObjectProvider op)
Locates the object managed by the passed ObjectProvider into the XML datastore.
|
void |
updateObject(org.datanucleus.state.ObjectProvider op,
int[] fieldNumbers)
Updates the specified fields of the object managed by the passed ObjectProvider in the XML datastore.
|
public XMLPersistenceHandler(org.datanucleus.store.StoreManager storeMgr)
storeMgr - Manager for the datastorepublic void close()
public void insertObject(org.datanucleus.state.ObjectProvider op)
op - ObjectProviderorg.datanucleus.exceptions.NucleusDataStoreException - when an error occurs in the datastore communicationpublic void updateObject(org.datanucleus.state.ObjectProvider op,
int[] fieldNumbers)
op - ObjectProviderorg.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 op)
op - ObjectProviderorg.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 op,
int[] fieldNumbers)
op - ObjectProviderfieldNumbers - Absolute field numbers to retrieveorg.datanucleus.exceptions.NucleusDataStoreException - when an error occurs in the datastore communicationpublic Object findObject(org.datanucleus.ExecutionContext ec, Object id)
ec - execution contextid - Identity of the objectpublic void locateObject(org.datanucleus.state.ObjectProvider op)
op - ObjectProviderorg.datanucleus.exceptions.NucleusDataStoreException - if an error occurs in locating the objectCopyright © 2016. All rights reserved.