org.jpox
Class PersistenceManagerImpl

java.lang.Object
  extended byorg.jpox.AbstractPersistenceManager
      extended byorg.jpox.PersistenceManagerImpl
All Implemented Interfaces:
PersistenceManager, javax.jdo.PersistenceManager

public class PersistenceManagerImpl
extends AbstractPersistenceManager
implements PersistenceManager

Implementation of the JDO PersistenceManager.

Version:
$Revision: 1.3 $

Field Summary
 
Fields inherited from class org.jpox.AbstractPersistenceManager
apmf, clr, lifecycleListeners, LOCALISER, tx
 
Constructor Summary
PersistenceManagerImpl(AbstractPersistenceManagerFactory pmf, java.lang.String userName, java.lang.String password)
          Constructor.
 
Method Summary
 javax.jdo.datastore.JDOConnection getDataStoreConnection()
          Accessor for a connection on the datastore.
 javax.jdo.PersistenceManagerFactory getPersistenceManagerFactory()
          Accessor for the Persistence Manager Factory.
 PersistenceManager getPMHandle()
          Accessor for a handle to the Persistence Manager
 
Methods inherited from class org.jpox.AbstractPersistenceManager
addInstanceLifecycleListener, addQueryResult, addQueryRun, addStateManager, attachCopy, checkConsistency, clearDirty, clearDirty, close, currentTransaction, deletePersistent, deletePersistentAll, deletePersistentAll, detachCopy, detachCopyAll, detachCopyAll, detachCopyInternal, detachInternal, disconnectLifecycleListener, disconnectQueryCache, disconnectSMCache, dump, enlistInTransaction, evict, evictAll, evictAll, evictAll, evictFromTransaction, findStateManager, flush, getAbstractPersistenceManagerFactory, getClassLoaderResolver, getConnection, getConnection, getDetachAllOnCommit, getDetachOnClose, getExtent, getExtent, getFetchPlan, getIgnoreCache, getMetaDataManager, getMultithreaded, getObjectByAID, getObjectById, getObjectById, getObjectById, getObjectById, getObjectById, getObjectById, getObjectFromCache, getObjectId, getObjectIdClass, getObjectsById, getObjectsById, getObjectsById, getObjectsById, getPMFContext, getSequence, getStateManagerById, getStoreManager, getTransactionalObjectId, getUserObject, getUserObject, hasQueryRun, hereIsStateManager, internalRetrieve, isClosed, isConnectionOpen, isDelayDatastoreOperationsEnabled, isInserting, makeNontransactional, makeNontransactionalAll, makeNontransactionalAll, makePersistent, makePersistentAll, makePersistentAll, makePersistentInternal, makeTransactional, makeTransactionalAll, makeTransactionalAll, makeTransient, makeTransient, makeTransientAll, makeTransientAll, makeTransientAll, makeTransientAll, makeTransientInternal, markDirty, newInstance, newNamedQuery, newObjectIdInstance, newQuery, newQuery, newQuery, newQuery, newQuery, newQuery, newQuery, newQuery, newQuery, newQuery, notifyLifecycleListenersForEvent, postCommit, preCommit, preRollback, putObjectIntoCache, putUserObject, refresh, refreshAll, refreshAll, refreshAll, refreshAll, releaseConnection, removeAllInstanceLifecycleListeners, removeInstanceLifecycleListener, removeObjectFromCache, removeQueryResult, removeQueryRun, removeStateManager, removeUserObject, replaceObjectId, reset, retrieve, retrieve, retrieve, retrieveAll, retrieveAll, retrieveAll, retrieveAll, setDetachAllOnCommit, setDetachOnClose, setIgnoreCache, setMultithreaded, setUserObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jpox.PersistenceManager
addQueryResult, addQueryRun, addStateManager, attachCopy, clearDirty, detachCopyInternal, detachInternal, dump, enlistInTransaction, evictFromTransaction, findStateManager, getClassLoaderResolver, getConnection, getConnection, getMetaDataManager, getObjectByAID, getObjectById, getObjectById, getObjectById, getPMFContext, getStateManagerById, getStoreManager, hasQueryRun, hereIsStateManager, isConnectionOpen, isDelayDatastoreOperationsEnabled, isInserting, makePersistentInternal, makeTransientInternal, markDirty, notifyLifecycleListenersForEvent, putObjectIntoCache, releaseConnection, removeObjectFromCache, removeQueryResult, removeQueryRun, removeStateManager, replaceObjectId
 
Methods inherited from interface javax.jdo.PersistenceManager
addInstanceLifecycleListener, checkConsistency, close, currentTransaction, deletePersistent, deletePersistentAll, deletePersistentAll, detachCopy, detachCopyAll, detachCopyAll, evict, evictAll, evictAll, evictAll, flush, getDetachAllOnCommit, getExtent, getExtent, getFetchPlan, getIgnoreCache, getMultithreaded, getObjectById, getObjectById, getObjectById, getObjectId, getObjectIdClass, getObjectsById, getObjectsById, getObjectsById, getObjectsById, getSequence, getTransactionalObjectId, getUserObject, getUserObject, isClosed, makeNontransactional, makeNontransactionalAll, makeNontransactionalAll, makePersistent, makePersistentAll, makePersistentAll, makeTransactional, makeTransactionalAll, makeTransactionalAll, makeTransient, makeTransient, makeTransientAll, makeTransientAll, makeTransientAll, makeTransientAll, newInstance, newNamedQuery, newObjectIdInstance, newQuery, newQuery, newQuery, newQuery, newQuery, newQuery, newQuery, newQuery, newQuery, newQuery, putUserObject, refresh, refreshAll, refreshAll, refreshAll, refreshAll, removeInstanceLifecycleListener, removeUserObject, retrieve, retrieve, retrieveAll, retrieveAll, retrieveAll, retrieveAll, setDetachAllOnCommit, setIgnoreCache, setMultithreaded, setUserObject
 

Constructor Detail

PersistenceManagerImpl

public PersistenceManagerImpl(AbstractPersistenceManagerFactory pmf,
                              java.lang.String userName,
                              java.lang.String password)
Constructor.

Parameters:
pmf - The Persistence Manager Factory
userName - The user login
password - The password for the supplied login
Method Detail

getPersistenceManagerFactory

public javax.jdo.PersistenceManagerFactory getPersistenceManagerFactory()
Accessor for the Persistence Manager Factory.

Specified by:
getPersistenceManagerFactory in interface javax.jdo.PersistenceManager
Overrides:
getPersistenceManagerFactory in class AbstractPersistenceManager
Returns:
The Persistence Manager factory

getPMHandle

public PersistenceManager getPMHandle()
Accessor for a handle to the Persistence Manager

Specified by:
getPMHandle in interface PersistenceManager
Specified by:
getPMHandle in class AbstractPersistenceManager
Returns:
The PM handle.

getDataStoreConnection

public javax.jdo.datastore.JDOConnection getDataStoreConnection()
Accessor for a connection on the datastore. See JDO 2.0 spec section 12.16

Specified by:
getDataStoreConnection in interface javax.jdo.PersistenceManager
Returns:
The JDO connection to the datastore
Since:
1.1
See Also:
PersistenceManager.getDataStoreConnection()


Copyright © -2007 . All Rights Reserved.