public class LDAPPersistenceHandler
extends org.datanucleus.store.AbstractPersistenceHandler
Constructor and Description |
---|
LDAPPersistenceHandler(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 LDAP 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 LDAP datastore.
|
void |
locateObject(org.datanucleus.state.ObjectProvider op)
Locates the object managed by the passed ObjectProvider into the LDAP datastore.
|
void |
updateObject(org.datanucleus.state.ObjectProvider op,
int[] fieldNumbers)
Updates the specified fields of the object managed by the passed ObjectProvider in the LDAP datastore.
|
assertReadOnlyForUpdateOfObject, findObjectForUnique
public LDAPPersistenceHandler(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
- ExecutionContext in useid
- Identity of the objectpublic void locateObject(org.datanucleus.state.ObjectProvider op)
op
- ObjectProviderorg.datanucleus.exceptions.NucleusObjectNotFoundException
- if the object cannot be locatedCopyright © 2020. All rights reserved.