Method Summary |
|
public void | addInstanceLifecycleListener(InstanceLifecycleListener l, Class[] classes) |
public void | checkConsistency() |
public void | close() This method closes the PersistenceManager. |
public void | closePOManager() |
public Query | createQuery(Object o) |
public javax.jdo.Transaction | currentTransaction() Return the JDOTransactionItf instance associated with a PersistenceManager. |
public void | deleteByQuery(QueryDefinition qd) |
public void | deletePersistent(Object o) Delete the persistent instance from the data store. |
public void | deletePersistentAll(Object[] pcs) Delete an array of instances from the data store. |
public void | deletePersistentAll(Collection pcs) Delete a Set of instances from the data store. |
public Object | detachCopy(Object o) Make a detached copy of the persitent object o and return it. |
public Collection | detachCopyAll(Collection collection) Create a detached copy for each element of collection (assuming each element is persistent). |
public Object[] | detachCopyAll(Object[] objects) |
public void | evict(Object o) Mark an instance as no longer needed in the cache. |
public void | evictAll(Object[] pcs) Mark an array of instances as no longer needed in the cache. |
public void | evictAll(Collection pcs) Mark a Set of instances as no longer needed in the cache. |
public void | evictAll() Mark all persistent-nontransactional instances as no longer needed
in the cache. |
public void | flush() |
public JDOConnection | getDataStoreConnection() |
public boolean | getDetachAllOnCommit() |
public Object | getEncodedPName(PersistentObjectItf po) |
public Extent | getExtent(Class persistenceCapableClass, boolean subclasses) Not implemented. |
public Extent | getExtent(Class arg0) |
public FetchPlan | getFetchPlan() |
public boolean | getIgnoreCache() Get the ignoreCache setting for queries. |
public boolean | getMultithreaded() Get the current Multithreaded flag for this PersistenceManager. |
public Object | getNativeConnection() |
public Object | getObjectById(Object oid, boolean validate) This method locates a persistent instance in the cache of instances
managed by this PersistenceManager. |
public Object | getObjectById(Class arg0, Object oid) |
public Object | getObjectById(Object oid) |
public Object | getObjectId(Object pc) The ObjectId returned by this method represents the JDO identity of
the instance. |
public java.lang.Class | getObjectIdClass(Class cls) |
public Collection | getObjectsById(Collection arg0, boolean validate) |
public Collection | getObjectsById(Collection arg0) |
public Object[] | getObjectsById(Object[] arg0, boolean arg1) |
public Object[] | getObjectsById(Object[] arg0) |
public PersistenceManagerFactory | getPersistenceManagerFactory() |
public Sequence | getSequence(String name) |
public Object | getTransactionalObjectId(Object o) Not implemented. |
public Object | getUserObject() The application can manage the PersistenceManager instances
more easily by having an application object associated with each
PersistenceManager instance. |
public Object | getUserObject(Object arg0) |
public boolean | isClosed() |
public void | makeNontransactional(Object o) |
public void | makeNontransactionalAll(Object[] pcs) |
public void | makeNontransactionalAll(Collection pcs) |
public Object | makePersistent(Object o) Make the transient instance persistent in this PersistenceManager.
This method must be called in an active transaction.
The PersistenceManager assigns an ObjectId to the instance and
transitions it to persistent-new.
The instance will be managed in the Extent associated with its Class.
The instance will be put into the data store at commit.
The closure of instances of PersistenceCapable classes
reachable from persistent
fields will be made persistent at commit. |
public Object[] | makePersistentAll(Object[] pcs) Make an array of instances persistent. |
public Collection | makePersistentAll(Collection pcs) Make a Set of instances persistent. |
public void | makeTransactional(Object o) Make an instance subject to transactional boundaries. |
public void | makeTransactionalAll(Object[] pcs) Make an array of instances subject to transactional boundaries. |
public void | makeTransactionalAll(Collection pcs) Make a Set of instances subject to transactional boundaries. |
public void | makeTransient(Object o) Make an instance transient, removing it from management by this
PersistenceManager.
The instance loses its JDO identity and it is no longer associated
with any PersistenceManager. |
public void | makeTransient(Object o, boolean useFetchPlan) |
public void | makeTransientAll(Object[] pcs) Make an array of instances transient, removing them from management by
this PersistenceManager. |
public void | makeTransientAll(Collection pcs) Make a Set of instances transient, removing them from management
by this PersistenceManager.
The instances lose their JDO identity and they are no longer
associated with any PersistenceManager. |
public void | makeTransientAll(Object[] os, boolean useFetchPlan) |
public void | makeTransientAll(Collection os, boolean useFetchPlan) |
public Object | newInstance(Class arg0) |
public Query | newNamedQuery(Class klass, String name) |
public Object | newObjectIdInstance(Class aClass, Object s) |
public Query | newQuery() Create a new Query with no elements. |
public Query | newQuery(String query) |
public Query | newQuery(Object compiled) Create a new Query using elements from another Query. |
public Query | newQuery(String language, Object query) Create a new Query using the specified language. |
public Query | newQuery(Class cls) Create a new Query specifying the Class of the candidate instances. |
public Query | newQuery(Extent extent) |
public Query | newQuery(Extent extent, String filter) |
public Query | newQuery(Class cls, Collection cln) Create a new Query with the Class of the candidate instances and
candidate Set. |
public Query | newQuery(Class cls, String filter) Create a new Query with the Class of the candidate instances and filter. |
public Query | newQuery(Class cls, Collection cln, String filter) Create a new Query with the Class of the candidate instances,
candidate Set, and filter. |
public Object | putUserObject(Object arg0, Object arg1) |
public void | refresh(Object o) Refresh the state of the instance from the data store.
In an optimistic transaction, the state of instances in the cache
might not match the state in the data store. |
public void | refreshAll(Object[] pcs) Refresh the state of an array of instances from the data store. |
public void | refreshAll(Collection pcs) Refresh the state of a Set of instances from the data store. |
public void | refreshAll() Refresh the state of all applicable instances from the data store.
If called with an active transaction, all transactional instances
will be refreshed. |
public void | refreshAll(JDOException arg0) |
public void | removeInstanceLifecycleListener(InstanceLifecycleListener classes) |
public Object | removeUserObject(Object arg0) |
protected void | resetPMOnOpen(Object connectionspec) |
public void | retrieve(Object o) |
public void | retrieve(Object o, boolean FGOnly) |
public void | retrieveAll(Collection pcs) |
public void | retrieveAll(Object[] pcs) |
public void | retrieveAll(Collection collection, boolean b) |
public void | retrieveAll(Object[] objects, boolean b) |
public void | setDetachAllOnCommit(boolean arg0) |
public void | setIgnoreCache(boolean flag) Set the ignoreCache parameter for queries. |
public void | setMultithreaded(boolean flag) Set the Multithreaded flag for this PersistenceManager. |
public void | setUserObject(Object o) |
public Object | speedoAttachCopy(Object detached, Map map) Apply the changes contained in the detached object to the corresponding persistent instance in the cache. |
public void | speedoDeletePersistent(Object o) |
public void | speedoDeletePersistent(Object oid, Class pc) |
public Object | speedoDetachCopy(PersistentObjectItf po, Map map, Collection fgHints) |
public FetchPlanItf | speedoGetFetchPlan() |
public Object | speedoGetObjectById(Object oid, boolean validate) |
public Object | speedoMakePersistent(PersistentObjectItf po, Map map) |
public void | speedoRefresh(PersistentObjectItf sp, Map map, Collection fgHints) |
public void | speedoRetrieve(PersistentObjectItf sp, Map map, Collection fgHints) |