public class PersistenceManagerImpl extends Object implements javax.resource.cci.Connection, javax.jdo.PersistenceManager
ManagedConnectionImpl
.Modifier and Type | Field and Description |
---|---|
static org.datanucleus.util.NucleusLogger |
LOGGER
Logger for JCA.
|
Constructor and Description |
---|
PersistenceManagerImpl(ManagedConnectionImpl mc)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addInstanceLifecycleListener(javax.jdo.listener.InstanceLifecycleListener listener,
Class... classes)
JDO 2.0 spec 12.15 "LifecycleListeners".
|
void |
checkConsistency()
Method to check the consistency of the cache.
|
void |
close()
Method to close the Persistence Manager.
|
javax.resource.cci.Interaction |
createInteraction() |
javax.jdo.Transaction |
currentTransaction()
Accessor for the current transaction
|
void |
deletePersistent(Object pc)
JDO method to delete a Persistence Capable object
|
void |
deletePersistentAll(Collection pcs)
JDO method to delete a Collection of Persistence Capable objects
|
void |
deletePersistentAll(Object... pcs)
JDO method to delete an array of Persistence Capable objects
|
Object |
detachCopy(Object pc)
Detach the specified object from the
PersistenceManager . |
Collection |
detachCopyAll(Collection pcs)
Detach the specified objects from the
PersistenceManager . |
Object[] |
detachCopyAll(Object... pcs)
Detach the specified objects from the
PersistenceManager . |
void |
evict(Object o)
Method to evict an object
|
void |
evictAll()
Method to evict all objects from the PM.
|
void |
evictAll(boolean subclasses,
Class cls)
Method to evict all objects of the specified type (and optionally its subclasses).
|
void |
evictAll(Class cls,
boolean subclasses)
Method to evict all objects of the specified type (and optionally its subclasses).
|
void |
evictAll(Collection os)
Method to evict all of the specified objects from the PM.
|
void |
evictAll(Object... os)
Method to evict an array of objects
|
void |
flush()
This method flushes all dirty, new, and deleted instances to the datastore.
|
boolean |
getCopyOnAttach() |
javax.jdo.datastore.JDOConnection |
getDataStoreConnection()
(non-Javadoc)
|
Integer |
getDatastoreReadTimeoutMillis() |
Integer |
getDatastoreWriteTimeoutMillis() |
boolean |
getDetachAllOnCommit()
Accessor for whether to detach objects on commit of the txn.
|
javax.jdo.Extent |
getExtent(Class cls)
Accessor for the extent of a candidate class.
|
javax.jdo.Extent |
getExtent(Class cls,
boolean subclasses)
Accessor for the extent of a candidate class.
|
javax.jdo.FetchGroup |
getFetchGroup(Class cls,
String name) |
javax.jdo.FetchPlan |
getFetchPlan()
Accessor for the current FetchPlan
|
boolean |
getIgnoreCache()
Accessor for whether to ignore the cache or not
|
org.datanucleus.api.jdo.JDOPersistenceManager |
getJDOPersistenceManager() |
javax.resource.cci.LocalTransaction |
getLocalTransaction() |
Set |
getManagedObjects() |
Set |
getManagedObjects(Class... classes) |
Set |
getManagedObjects(EnumSet states) |
Set |
getManagedObjects(EnumSet states,
Class... classes) |
javax.resource.cci.ConnectionMetaData |
getMetaData() |
boolean |
getMultithreaded()
Accessor for the multithreaded capability of the manager
|
Object |
getObjectById(Class cls,
Object key) |
Object |
getObjectById(Object id)
Accessor for an object given its id.
|
Object |
getObjectById(Object id,
boolean validate)
Accessor for an object given its id.
|
Object |
getObjectId(Object pc)
Accessor for the id of an object.
|
Class |
getObjectIdClass(Class clazz)
Retrieve the class for the objectid
|
Object[] |
getObjectsById(boolean validate,
Object... oids) |
Collection |
getObjectsById(Collection oids) |
Collection |
getObjectsById(Collection oids,
boolean validate) |
Object[] |
getObjectsById(Object... oids) |
Object[] |
getObjectsById(Object[] oids,
boolean validate) |
javax.jdo.PersistenceManagerFactory |
getPersistenceManagerFactory()
Retrieve the PersistenceManagerFactory for this manager
|
Map<String,Object> |
getProperties() |
javax.resource.cci.ResultSetInfo |
getResultSetInfo() |
javax.jdo.datastore.Sequence |
getSequence(String sequenceName)
Accessor for a Sequence.
|
Date |
getServerDate()
Accessor for the server date/time.
|
Set<String> |
getSupportedProperties() |
Object |
getTransactionalObjectId(Object pc) |
Object |
getUserObject()
The application might manage PersistenceManager instances by using an
associated object for bookkeeping purposes.
|
Object |
getUserObject(Object key)
Method to get a user object from the PersistenceManager.
|
boolean |
isClosed()
Accessor for whether the Persistence Manager is closed.
|
void |
makeNontransactional(Object pc)
Make a Persistence-Capable object non-transactional
|
void |
makeNontransactionalAll(Collection pcs)
Make a Collection of Persistence-Capable objects non-transactional
|
void |
makeNontransactionalAll(Object... pcs)
Make an array of Persistence-Capable objects non-transactional
|
Object |
makePersistent(Object pc)
Method to make an object persistent.
|
Collection |
makePersistentAll(Collection pcs)
Make a Collection of Persistence Capable objects persistent
|
Object[] |
makePersistentAll(Object... pcs)
Make an array of Persistent Capable objects persistent
|
void |
makeTransactional(Object pc)
Make a Persistence-Capable object transient
|
void |
makeTransactionalAll(Collection pcs)
Make a collection of persistable objects transactional
|
void |
makeTransactionalAll(Object... pcs)
Make an array of Persistence-Capable objects transactional
|
void |
makeTransient(Object pc)
Make a Persistence-Capable object transient
|
void |
makeTransient(Object pc,
boolean useFetchPlan)
Make a Persistence-Capable object transient , optionally using the fetch plan.
|
void |
makeTransientAll(boolean useFetchPlan,
Object... pcs)
Make an array of Persistence-Capable objects transient
|
void |
makeTransientAll(Collection pcs)
Make a Collection of Persistence-Capable objects transient
|
void |
makeTransientAll(Collection pcs,
boolean useFetchPlan)
Make a Collection of Persistence-Capable objects transient
|
void |
makeTransientAll(Object... pcs)
Make an array of Persistence-Capable objects transient
|
void |
makeTransientAll(Object[] pcs,
boolean useFetchPlan)
Make an array of Persistence-Capable objects transient
|
Object |
newInstance(Class pc)
Method to create an instance of an interface or abstract class
|
javax.jdo.Query |
newNamedQuery(Class cls,
String queryName)
Accessor for a new named query.
|
Object |
newObjectIdInstance(Class pcClass,
Object key) |
Object |
newObjectIdInstance(Class clazz,
String str) |
javax.jdo.Query |
newQuery()
Accessor for a new query.
|
javax.jdo.Query |
newQuery(Class cls)
Accessor for a new query using this candidate class.
|
javax.jdo.Query |
newQuery(Class cls,
Collection cln)
Accessor for a new query.
|
javax.jdo.Query |
newQuery(Class cls,
Collection cln,
String filter)
Accessor for a new query.
|
javax.jdo.Query |
newQuery(Class cls,
String filter)
Accessor for a new query.
|
javax.jdo.Query |
newQuery(javax.jdo.Extent ext)
Accessor for a new query based on the provided extent.
|
javax.jdo.Query |
newQuery(javax.jdo.Extent cln,
String filter)
Accessor for a new query.
|
javax.jdo.Query |
newQuery(Object obj)
Accessor for a new query.
|
javax.jdo.Query |
newQuery(String query)
Accessor for a single-string query.
|
javax.jdo.Query |
newQuery(String language,
Object query)
Accessor for a new query in the specified query language etc.
|
Object |
putUserObject(Object key,
Object value)
Method to put a user object into the PersistenceManager.
|
void |
refresh(Object o)
Method to refresh an object
|
void |
refreshAll()
Method to refresh all objects in the Persistence Manager.
|
void |
refreshAll(Collection os)
Method to refresh a collection of objects.
|
void |
refreshAll(javax.jdo.JDOException exc)
Method to refresh objects that failed verification in a JDOException
|
void |
refreshAll(Object... os)
Method to refresh an array of objects.
|
void |
removeInstanceLifecycleListener(javax.jdo.listener.InstanceLifecycleListener listener)
JDO 2.0 spec 12.15 "LifecycleListeners".
|
Object |
removeUserObject(Object key)
Method to remove a user object from the PersistenceManager.
|
void |
retrieve(Object o)
Method to retrieve an object
|
void |
retrieve(Object o,
boolean fgOnly)
Method to retrieve an object
|
void |
retrieveAll(boolean fgOnly,
Object... pcs)
Retrieve field values of instances from the store.
|
void |
retrieveAll(Collection pcs)
Retrieve a Collection of Persistence-Capable objects
|
void |
retrieveAll(Collection pcs,
boolean fgOnly)
Retrieve field values of instances from the store.
|
void |
retrieveAll(Object... pcs)
Retrieve an array of Persistence-Capable objects
|
void |
retrieveAll(Object[] pcs,
boolean fgOnly)
Retrieve field values of instances from the store.
|
void |
setCopyOnAttach(boolean flag) |
void |
setDatastoreReadTimeoutMillis(Integer intvl) |
void |
setDatastoreWriteTimeoutMillis(Integer intvl) |
void |
setDetachAllOnCommit(boolean detach)
Mutator for whether to detach all objects on commit of the txn.
|
void |
setIgnoreCache(boolean ignore)
Mutator for whether to ignore the cache or not
|
void |
setMultithreaded(boolean multithreaded)
Mutator for the multithreaded capability of the manager
|
void |
setProperty(String propertyName,
Object value) |
void |
setUserObject(Object obj)
The application might manage PersistenceManager instances by using an
associated object for bookkeeping purposes.
|
public PersistenceManagerImpl(ManagedConnectionImpl mc)
mc
- The connection implementation.public org.datanucleus.api.jdo.JDOPersistenceManager getJDOPersistenceManager()
public javax.resource.cci.LocalTransaction getLocalTransaction() throws javax.resource.ResourceException
getLocalTransaction
in interface javax.resource.cci.Connection
javax.resource.ResourceException
public javax.resource.cci.ConnectionMetaData getMetaData() throws javax.resource.ResourceException
getMetaData
in interface javax.resource.cci.Connection
javax.resource.ResourceException
public javax.resource.cci.Interaction createInteraction() throws javax.resource.ResourceException
createInteraction
in interface javax.resource.cci.Connection
javax.resource.ResourceException
public javax.resource.cci.ResultSetInfo getResultSetInfo() throws javax.resource.ResourceException
getResultSetInfo
in interface javax.resource.cci.Connection
javax.resource.ResourceException
public void close()
close
in interface javax.jdo.PersistenceManager
close
in interface javax.resource.cci.Connection
public boolean isClosed()
isClosed
in interface javax.jdo.PersistenceManager
public void setDetachAllOnCommit(boolean detach)
setDetachAllOnCommit
in interface javax.jdo.PersistenceManager
detach
- Whether to detach objects on commit of the txn.public boolean getDetachAllOnCommit()
getDetachAllOnCommit
in interface javax.jdo.PersistenceManager
public void refresh(Object o)
refresh
in interface javax.jdo.PersistenceManager
o
- Object to refreshpublic void retrieve(Object o, boolean fgOnly)
retrieve
in interface javax.jdo.PersistenceManager
o
- Object to retrievefgOnly
- Whether to include only fields in current fetch grouppublic void retrieve(Object o)
retrieve
in interface javax.jdo.PersistenceManager
o
- Object to retrievepublic void retrieveAll(Collection pcs)
retrieveAll
in interface javax.jdo.PersistenceManager
pcs
- Collection of Persistence-Capable objectspublic void retrieveAll(Object... pcs)
retrieveAll
in interface javax.jdo.PersistenceManager
pcs
- Array of Persistence-Capable objectspublic void retrieveAll(Object[] pcs, boolean fgOnly)
PersistenceManager
that the application intends to use
the instances, and their field values should be retrieved. The fields
in the current fetch group must be retrieved, and the implementation
might retrieve more fields than the current fetch-group.
The PersistenceManager
might use policy information
about the class to retrieve associated instances.
retrieveAll
in interface javax.jdo.PersistenceManager
pcs
- the instancesfgOnly
- whether to retrieve only the current fetch-group fieldspublic void retrieveAll(boolean fgOnly, Object... pcs)
retrieveAll
in interface javax.jdo.PersistenceManager
fgOnly
- whether to retrieve only the current fetch-group fieldspcs
- the instancespublic void retrieveAll(Collection pcs, boolean fgOnly)
PersistenceManager
that the application intends to use
the instances, and their field values should be retrieved. The fields
in the current fetch group must be retrieved, and the implementation
might retrieve more fields than the current fetch-group.
The PersistenceManager
might use policy information
about the class to retrieve associated instances.
retrieveAll
in interface javax.jdo.PersistenceManager
pcs
- the instancesfgOnly
- whether to retrieve only the current fetch group fieldspublic javax.jdo.Transaction currentTransaction()
currentTransaction
in interface javax.jdo.PersistenceManager
public void evict(Object o)
evict
in interface javax.jdo.PersistenceManager
o
- Object to evictpublic void evictAll(Object... os)
evictAll
in interface javax.jdo.PersistenceManager
os
- Array of objects to evictpublic void evictAll(Collection os)
evictAll
in interface javax.jdo.PersistenceManager
os
- Collection of objects to evictpublic void evictAll(Class cls, boolean subclasses)
cls
- Type of persistable objectsubclasses
- Whether to include subclassespublic void evictAll(boolean subclasses, Class cls)
evictAll
in interface javax.jdo.PersistenceManager
subclasses
- Whether to include subclassescls
- Type of persistable objectpublic void evictAll()
evictAll
in interface javax.jdo.PersistenceManager
public void refreshAll(Object... os)
refreshAll
in interface javax.jdo.PersistenceManager
os
- Array of objects to refreshpublic void refreshAll(Collection os)
refreshAll
in interface javax.jdo.PersistenceManager
os
- Collection of objects to refreshpublic void refreshAll(javax.jdo.JDOException exc)
refreshAll
in interface javax.jdo.PersistenceManager
exc
- Exception containing objects that failed verificationpublic void refreshAll()
refreshAll
in interface javax.jdo.PersistenceManager
public javax.jdo.Query newQuery()
newQuery
in interface javax.jdo.PersistenceManager
public javax.jdo.Query newQuery(Object obj)
newQuery
in interface javax.jdo.PersistenceManager
obj
- objectpublic javax.jdo.Query newQuery(String query)
newQuery
in interface javax.jdo.PersistenceManager
query
- The single-string querypublic javax.jdo.Query newQuery(String language, Object query)
newQuery
in interface javax.jdo.PersistenceManager
language
- The query languagequery
- The query definitionpublic javax.jdo.Query newQuery(Class cls)
newQuery
in interface javax.jdo.PersistenceManager
cls
- The candidate class to use.public javax.jdo.Query newQuery(javax.jdo.Extent ext)
newQuery
in interface javax.jdo.PersistenceManager
ext
- The extent to usepublic javax.jdo.Query newQuery(Class cls, Collection cln)
newQuery
in interface javax.jdo.PersistenceManager
cls
- The candidate class.cln
- The collection to use.public javax.jdo.Query newQuery(Class cls, String filter)
newQuery
in interface javax.jdo.PersistenceManager
cls
- The candidate classfilter
- The filter to usepublic javax.jdo.Query newQuery(Class cls, Collection cln, String filter)
newQuery
in interface javax.jdo.PersistenceManager
cls
- The candidate classcln
- The collectionfilter
- The filter to usepublic javax.jdo.Query newQuery(javax.jdo.Extent cln, String filter)
newQuery
in interface javax.jdo.PersistenceManager
cln
- The collectionfilter
- The filter to usepublic javax.jdo.Query newNamedQuery(Class cls, String queryName)
newNamedQuery
in interface javax.jdo.PersistenceManager
cls
- The candidate classqueryName
- The name of the querypublic javax.jdo.Extent getExtent(Class cls, boolean subclasses)
getExtent
in interface javax.jdo.PersistenceManager
cls
- The candidate classsubclasses
- Whether to include subclassespublic javax.jdo.Extent getExtent(Class cls)
getExtent
in interface javax.jdo.PersistenceManager
cls
- The candidate classpublic javax.jdo.FetchPlan getFetchPlan()
getFetchPlan
in interface javax.jdo.PersistenceManager
public Object getObjectById(Object id)
getObjectById
in interface javax.jdo.PersistenceManager
id
- Id of the object.public Object getObjectById(Object id, boolean validate)
getObjectById
in interface javax.jdo.PersistenceManager
id
- Id of the object.validate
- Whether to validate the object before returning itpublic Collection getObjectsById(Collection oids)
getObjectsById
in interface javax.jdo.PersistenceManager
public Object[] getObjectsById(Object... oids)
getObjectsById
in interface javax.jdo.PersistenceManager
public Collection getObjectsById(Collection oids, boolean validate)
getObjectsById
in interface javax.jdo.PersistenceManager
public Object[] getObjectsById(Object[] oids, boolean validate)
getObjectsById
in interface javax.jdo.PersistenceManager
public Object[] getObjectsById(boolean validate, Object... oids)
getObjectsById
in interface javax.jdo.PersistenceManager
public Object getObjectById(Class cls, Object key)
getObjectById
in interface javax.jdo.PersistenceManager
public Object newObjectIdInstance(Class pcClass, Object key)
newObjectIdInstance
in interface javax.jdo.PersistenceManager
public Object getObjectId(Object pc)
getObjectId
in interface javax.jdo.PersistenceManager
pc
- The objectpublic Object getTransactionalObjectId(Object pc)
getTransactionalObjectId
in interface javax.jdo.PersistenceManager
public Object newInstance(Class pc)
newInstance
in interface javax.jdo.PersistenceManager
pc
- interface/abstract class declared in metadatapublic Object makePersistent(Object pc)
makePersistent
in interface javax.jdo.PersistenceManager
pc
- The object to persistpublic Object[] makePersistentAll(Object... pcs)
makePersistentAll
in interface javax.jdo.PersistenceManager
pcs
- Array of Persistent Capable objectspublic Collection makePersistentAll(Collection pcs)
makePersistentAll
in interface javax.jdo.PersistenceManager
pcs
- Collection of Persistence Capable objectspublic void deletePersistent(Object pc)
deletePersistent
in interface javax.jdo.PersistenceManager
pc
- Persistence Capable objectpublic void deletePersistentAll(Object... pcs)
deletePersistentAll
in interface javax.jdo.PersistenceManager
pcs
- Array of Persistence Capable objectspublic void deletePersistentAll(Collection pcs)
deletePersistentAll
in interface javax.jdo.PersistenceManager
pcs
- Collection of Persistence Capable objectspublic void makeTransient(Object pc, boolean useFetchPlan)
makeTransient
in interface javax.jdo.PersistenceManager
pc
- Persistence-Capable objectuseFetchPlan
- Whether to use the fetch planpublic void makeTransientAll(Object[] pcs, boolean useFetchPlan)
makeTransientAll
in interface javax.jdo.PersistenceManager
pcs
- Array of Persistence-Capable objectsuseFetchPlan
- Whether to use the fetch planpublic void makeTransientAll(boolean useFetchPlan, Object... pcs)
makeTransientAll
in interface javax.jdo.PersistenceManager
useFetchPlan
- Whether to use the fetch planpcs
- Array of Persistence-Capable objectspublic void makeTransientAll(Collection pcs, boolean useFetchPlan)
makeTransientAll
in interface javax.jdo.PersistenceManager
pcs
- Collection of Persistence-Capable objectsuseFetchPlan
- Whether to use the fetch planpublic void makeTransient(Object pc)
makeTransient
in interface javax.jdo.PersistenceManager
pc
- Persistence-Capable objectpublic void makeTransientAll(Object... pcs)
makeTransientAll
in interface javax.jdo.PersistenceManager
pcs
- Array of Persistence-Capable objectspublic void makeTransientAll(Collection pcs)
makeTransientAll
in interface javax.jdo.PersistenceManager
pcs
- Collection of Persistence-Capable objectspublic void makeTransactional(Object pc)
makeTransactional
in interface javax.jdo.PersistenceManager
pc
- Persistence-Capable objectpublic void makeTransactionalAll(Object... pcs)
makeTransactionalAll
in interface javax.jdo.PersistenceManager
pcs
- Array of Persistence-Capable objectspublic void makeTransactionalAll(Collection pcs)
makeTransactionalAll
in interface javax.jdo.PersistenceManager
pcs
- Collection of persistable objectspublic void makeNontransactional(Object pc)
makeNontransactional
in interface javax.jdo.PersistenceManager
pc
- Persistence-Capable objectpublic void makeNontransactionalAll(Object... pcs)
makeNontransactionalAll
in interface javax.jdo.PersistenceManager
pcs
- Array of Persistence-Capable objectspublic void makeNontransactionalAll(Collection pcs)
makeNontransactionalAll
in interface javax.jdo.PersistenceManager
pcs
- Collection of Persistence-Capable objectspublic Object detachCopy(Object pc)
PersistenceManager
.detachCopy
in interface javax.jdo.PersistenceManager
pc
- the instance to detachdetachCopyAll(Object[])
public Object[] detachCopyAll(Object... pcs)
PersistenceManager
. The objects returned can be
manipulated and re-attached with
makePersistentAll(Object[])
.
The detached instances will be
unmanaged copies of the specified parameters, and are suitable
for serialization and manipulation outside of a JDO
environment. When detaching instances, only fields in the
current FetchPlan
will be traversed. Thus, to detach a
graph of objects, relations to other persistent instances must
either be in the default-fetch-group
, or in the
current custom FetchPlan
.detachCopyAll
in interface javax.jdo.PersistenceManager
pcs
- the instances to detachjavax.jdo.JDOUserException
- if any of the instances do notmakePersistentAll(Object[])
,
getFetchPlan()
public Collection detachCopyAll(Collection pcs)
PersistenceManager
.detachCopyAll
in interface javax.jdo.PersistenceManager
pcs
- the instances to detachdetachCopyAll(Object[])
public Object putUserObject(Object key, Object value)
putUserObject
in interface javax.jdo.PersistenceManager
key
- The key to store the user object undervalue
- The object to storepublic Object getUserObject(Object key)
getUserObject
in interface javax.jdo.PersistenceManager
key
- The key to store the user object underpublic Object removeUserObject(Object key)
removeUserObject
in interface javax.jdo.PersistenceManager
key
- The key whose user object is to be removed.public void setUserObject(Object obj)
setUserObject
in interface javax.jdo.PersistenceManager
obj
- User Objectpublic Object getUserObject()
getUserObject
in interface javax.jdo.PersistenceManager
public javax.jdo.PersistenceManagerFactory getPersistenceManagerFactory()
getPersistenceManagerFactory
in interface javax.jdo.PersistenceManager
public Class getObjectIdClass(Class clazz)
getObjectIdClass
in interface javax.jdo.PersistenceManager
clazz
- The class to retrievepublic void setMultithreaded(boolean multithreaded)
setMultithreaded
in interface javax.jdo.PersistenceManager
multithreaded
- Whether to run multithreaded or notpublic boolean getMultithreaded()
getMultithreaded
in interface javax.jdo.PersistenceManager
public void setIgnoreCache(boolean ignore)
setIgnoreCache
in interface javax.jdo.PersistenceManager
ignore
- Whether to ignore the cache or notpublic boolean getIgnoreCache()
getIgnoreCache
in interface javax.jdo.PersistenceManager
public void flush()
flush
in interface javax.jdo.PersistenceManager
public void checkConsistency()
checkConsistency
in interface javax.jdo.PersistenceManager
public javax.jdo.datastore.JDOConnection getDataStoreConnection()
getDataStoreConnection
in interface javax.jdo.PersistenceManager
PersistenceManager.getDataStoreConnection()
public javax.jdo.datastore.Sequence getSequence(String sequenceName)
getSequence
in interface javax.jdo.PersistenceManager
sequenceName
- Name of the sequencepublic void addInstanceLifecycleListener(javax.jdo.listener.InstanceLifecycleListener listener, Class... classes)
addInstanceLifecycleListener
in interface javax.jdo.PersistenceManager
listener
- The instance lifecycle listener to sends events toclasses
- The classes that it is interested inpublic void removeInstanceLifecycleListener(javax.jdo.listener.InstanceLifecycleListener listener)
removeInstanceLifecycleListener
in interface javax.jdo.PersistenceManager
listener
- The instance lifecycle listener to remove.public Date getServerDate()
getServerDate
in interface javax.jdo.PersistenceManager
public boolean getCopyOnAttach()
getCopyOnAttach
in interface javax.jdo.PersistenceManager
public void setCopyOnAttach(boolean flag)
setCopyOnAttach
in interface javax.jdo.PersistenceManager
public Set getManagedObjects()
getManagedObjects
in interface javax.jdo.PersistenceManager
public Set getManagedObjects(Class... classes)
getManagedObjects
in interface javax.jdo.PersistenceManager
public Set getManagedObjects(EnumSet states)
getManagedObjects
in interface javax.jdo.PersistenceManager
public Set getManagedObjects(EnumSet states, Class... classes)
getManagedObjects
in interface javax.jdo.PersistenceManager
public javax.jdo.FetchGroup getFetchGroup(Class cls, String name)
getFetchGroup
in interface javax.jdo.PersistenceManager
public Integer getDatastoreReadTimeoutMillis()
getDatastoreReadTimeoutMillis
in interface javax.jdo.PersistenceManager
public void setDatastoreReadTimeoutMillis(Integer intvl)
setDatastoreReadTimeoutMillis
in interface javax.jdo.PersistenceManager
public Integer getDatastoreWriteTimeoutMillis()
getDatastoreWriteTimeoutMillis
in interface javax.jdo.PersistenceManager
public void setDatastoreWriteTimeoutMillis(Integer intvl)
setDatastoreWriteTimeoutMillis
in interface javax.jdo.PersistenceManager
public Map<String,Object> getProperties()
getProperties
in interface javax.jdo.PersistenceManager
public Set<String> getSupportedProperties()
getSupportedProperties
in interface javax.jdo.PersistenceManager
Copyright © 2015. All rights reserved.