|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl
Concrete PersistenceManager for use with
this common runtime. The PersistenceManager handles JDO-specific
behavior, but leaves all interaction with the data store to
a StoreManager that must be supplied at initialization.
All options defined in the JDO 1.0 specification are supported, with the exception of non durable identity and changing primary keys.
| Constructor Summary | |
PersistenceManagerImpl()
|
|
| Method Summary | |
void |
afterCompletion(int status)
|
void |
beforeCompletion()
|
void |
begin()
|
void |
checkActiveTransaction()
|
void |
checkClosed()
|
void |
checkNontransactionalRead()
|
protected com.solarmetric.rd.kodo.runtime.StateManagerImpl |
checkValid(java.lang.Object pc)
|
void |
close()
|
void |
commit()
|
void |
commitAndResume()
API extension. |
javax.resource.cci.Interaction |
createInteraction()
|
javax.jdo.Transaction |
currentTransaction()
Obtain the PersistenceManager's current transaction. |
void |
deletePersistent(java.lang.Object pc)
|
void |
deletePersistentAll(java.util.Collection pcs)
|
void |
deletePersistentAll(java.lang.Object[] pcs)
|
protected void |
endTransaction(int status)
End the current transaction, making appropriate state transitions. |
void |
evict(java.lang.Object pc)
|
void |
evictAll()
|
void |
evictAll(java.lang.Class cls)
API Extension. |
void |
evictAll(java.util.Collection pcs)
|
void |
evictAll(javax.jdo.Extent extent)
API Extension. |
void |
evictAll(java.lang.Object[] pcs)
|
protected void |
finalize()
Close on finalize. |
protected void |
flush()
Flush the transactional state to the data store. |
protected void |
free()
Free the resources used by this persistence manager. |
java.lang.Object |
getCachedObjectById(java.lang.Object oid)
API extension. |
java.lang.ClassLoader |
getClassLoader()
Return the current thread's class loader at the time this persistence manager was obtained from the persistence manager factory. |
com.solarmetric.rd.kodo.conf.JDOConfiguration |
getConfiguration()
Return the configuration associated with this persistence manager. |
java.lang.String |
getConnectionPassword()
Return the connection password. |
java.lang.String |
getConnectionUserName()
Return the connection user name. |
com.solarmetric.rd.kodo.runtime.StoreManager |
getDelegatingStoreManager()
API Extension. |
java.lang.String |
getEISProductName()
|
java.lang.String |
getEISProductVersion()
|
javax.jdo.Extent |
getExtent(java.lang.Class type,
boolean subclasses)
|
boolean |
getIgnoreCache()
|
javax.resource.cci.LocalTransaction |
getLocalTransaction()
|
java.util.Collection |
getManagedObjects()
API Extension. |
com.solarmetric.rd.kodo.runtime.ManagedRuntime |
getManagedRuntime()
Return the managed runtime in use. |
javax.resource.cci.ConnectionMetaData |
getMetaData()
|
boolean |
getMultithreaded()
|
boolean |
getNontransactionalRead()
|
boolean |
getNontransactionalWrite()
|
java.lang.Object |
getObjectById(java.lang.Object oid,
boolean validate)
|
java.lang.Object |
getObjectById(java.lang.Object oid,
java.lang.Object connection)
API extension. |
protected java.lang.Object |
getObjectById(java.lang.Object oid,
java.lang.Object connection,
boolean validate,
boolean copyOid,
boolean allowNew)
|
java.lang.Object |
getObjectId(java.lang.Object pc)
|
java.lang.Class |
getObjectIdClass(java.lang.Class cls)
|
boolean |
getOptimistic()
|
javax.jdo.PersistenceManager |
getPersistenceManager()
|
javax.jdo.PersistenceManagerFactory |
getPersistenceManagerFactory()
|
boolean |
getRestoreValues()
|
javax.resource.cci.ResultSetInfo |
getResultSetInfo()
|
boolean |
getRetainValues()
|
com.solarmetric.rd.kodo.runtime.StateManagerImpl |
getState(java.lang.Object oid)
API extension. |
protected com.solarmetric.rd.kodo.runtime.StateManagerImpl |
getState(java.lang.Object oid,
boolean allowNew)
API extension. |
com.solarmetric.rd.kodo.runtime.StoreManager |
getStoreManager()
API Extension. |
javax.transaction.Synchronization |
getSynchronization()
|
java.lang.Object |
getTransactionalObjectId(java.lang.Object pc)
|
java.util.Collection |
getTransactionalObjects()
API Extension. |
java.lang.String |
getUserName()
|
java.lang.Object |
getUserObject()
|
void |
initialize(com.solarmetric.rd.kodo.runtime.PersistenceManagerFactoryImpl factory,
com.solarmetric.rd.kodo.runtime.StoreManager sm,
com.solarmetric.rd.kodo.runtime.ManagedRuntime runtime,
java.lang.String user,
java.lang.String pass)
Initialize the persistence manager. |
boolean |
isActive()
|
boolean |
isClosed()
|
protected void |
lock()
Synchronizes on an internal lock if the Multithreaded flag is set to true. |
com.solarmetric.rd.kodo.runtime.StateManagerImpl |
makeEmbedded(java.lang.Object pc,
com.solarmetric.rd.kodo.runtime.StateManagerImpl owner,
int ownerField)
For implementation use only. |
void |
makeNontransactional(java.lang.Object pc)
|
void |
makeNontransactionalAll(java.util.Collection pcs)
|
void |
makeNontransactionalAll(java.lang.Object[] pcs)
|
void |
makePersistent(java.lang.Object pc)
|
void |
makePersistentAll(java.util.Collection pcs)
|
void |
makePersistentAll(java.lang.Object[] pcs)
|
void |
makeTransactional(java.lang.Object pc)
|
void |
makeTransactionalAll(java.util.Collection pcs)
|
void |
makeTransactionalAll(java.lang.Object[] pcs)
|
void |
makeTransient(java.lang.Object pc)
|
void |
makeTransientAll(java.util.Collection pcs)
|
void |
makeTransientAll(java.lang.Object[] pcs)
|
protected java.util.Map |
newManagedObjectCache()
Create a Map to be used for the managed object cache. |
java.lang.Object |
newObjectIdInstance(java.lang.Class cls,
java.lang.String str)
|
javax.jdo.Query |
newQuery()
|
javax.jdo.Query |
newQuery(java.lang.Class cls)
|
javax.jdo.Query |
newQuery(java.lang.Class cls,
java.util.Collection cln)
|
javax.jdo.Query |
newQuery(java.lang.Class cls,
java.util.Collection cln,
java.lang.String filter)
|
javax.jdo.Query |
newQuery(java.lang.Class cls,
java.lang.String filter)
|
javax.jdo.Query |
newQuery(javax.jdo.Extent ext)
|
javax.jdo.Query |
newQuery(javax.jdo.Extent ext,
java.lang.String filter)
|
javax.jdo.Query |
newQuery(java.lang.Object compiled)
|
javax.jdo.Query |
newQuery(java.lang.String language,
java.lang.Object compiled)
|
void |
refresh(java.lang.Object pc)
|
void |
refreshAll()
|
void |
refreshAll(java.util.Collection pcs)
|
void |
refreshAll(java.lang.Object[] pcs)
|
void |
retrieve(java.lang.Object pc)
|
void |
retrieveAll(java.util.Collection pcs)
|
void |
retrieveAll(java.lang.Object[] pcs)
|
void |
rollback()
|
void |
setIgnoreCache(boolean val)
|
void |
setMultithreaded(boolean multithreaded)
|
void |
setNontransactionalRead(boolean val)
|
void |
setNontransactionalWrite(boolean val)
|
void |
setOptimistic(boolean val)
|
void |
setRestoreValues(boolean val)
|
void |
setRetainValues(boolean val)
|
void |
setSynchronization(javax.transaction.Synchronization synch)
|
void |
setUserObject(java.lang.Object o)
|
protected void |
unlock()
Releases the internal lock. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PersistenceManagerImpl()
| Method Detail |
public void initialize(com.solarmetric.rd.kodo.runtime.PersistenceManagerFactoryImpl factory,
com.solarmetric.rd.kodo.runtime.StoreManager sm,
com.solarmetric.rd.kodo.runtime.ManagedRuntime runtime,
java.lang.String user,
java.lang.String pass)
factory - the PersistenceManagerFactory used to create
this PersistenceManagerruntime - the managed runtime to use for transaction
controluser - the username this PersistenceManager represents;
used when pooling managers to make sure that
a request to the PersistenceManagerFactory for
a connection with an explicit user is
delegated to a suitable PersistenceManagerpass - the password for the above user
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwableprotected java.util.Map newManagedObjectCache()
Map to be used for the managed object cache. By
default, this creates a ReferenceMap with soft values.
public com.solarmetric.rd.kodo.conf.JDOConfiguration getConfiguration()
public com.solarmetric.rd.kodo.runtime.ManagedRuntime getManagedRuntime()
public java.lang.ClassLoader getClassLoader()
public java.lang.String getConnectionUserName()
public java.lang.String getConnectionPassword()
public javax.resource.cci.ConnectionMetaData getMetaData()
getMetaData in interface javax.resource.cci.Connection
public javax.resource.cci.Interaction createInteraction()
throws javax.resource.NotSupportedException
createInteraction in interface javax.resource.cci.Connectionjavax.resource.NotSupportedException
public javax.resource.cci.LocalTransaction getLocalTransaction()
throws javax.resource.NotSupportedException
getLocalTransaction in interface javax.resource.cci.Connectionjavax.resource.NotSupportedException
public javax.resource.cci.ResultSetInfo getResultSetInfo()
throws javax.resource.NotSupportedException
getResultSetInfo in interface javax.resource.cci.Connectionjavax.resource.NotSupportedExceptionpublic java.lang.String getEISProductName()
getEISProductName in interface javax.resource.cci.ConnectionMetaDatapublic java.lang.String getEISProductVersion()
getEISProductVersion in interface javax.resource.cci.ConnectionMetaDatapublic java.lang.String getUserName()
getUserName in interface javax.resource.cci.ConnectionMetaDatapublic javax.jdo.PersistenceManager getPersistenceManager()
getPersistenceManager in interface javax.jdo.Transactionpublic boolean getNontransactionalRead()
getNontransactionalRead in interface javax.jdo.Transactionpublic void setNontransactionalRead(boolean val)
setNontransactionalRead in interface javax.jdo.Transactionpublic boolean getNontransactionalWrite()
getNontransactionalWrite in interface javax.jdo.Transactionpublic void setNontransactionalWrite(boolean val)
setNontransactionalWrite in interface javax.jdo.Transactionpublic boolean getOptimistic()
getOptimistic in interface javax.jdo.Transactionpublic void setOptimistic(boolean val)
setOptimistic in interface javax.jdo.Transactionpublic boolean getRetainValues()
getRetainValues in interface javax.jdo.Transactionpublic void setRetainValues(boolean val)
setRetainValues in interface javax.jdo.Transactionpublic boolean getRestoreValues()
getRestoreValues in interface javax.jdo.Transactionpublic void setRestoreValues(boolean val)
setRestoreValues in interface javax.jdo.Transactionpublic boolean getIgnoreCache()
getIgnoreCache in interface javax.jdo.PersistenceManagerpublic void setIgnoreCache(boolean val)
setIgnoreCache in interface javax.jdo.PersistenceManagerpublic void begin()
begin in interface javax.jdo.Transactionpublic void commit()
commit in interface javax.jdo.Transactionpublic void rollback()
rollback in interface javax.jdo.Transactionpublic void commitAndResume()
pm.currentTransaction ().commit (); pm.currentTransaction ().begin ();except that the PersistenceManager's internal atomic lock is utilized, so this method can be safely executed from multiple threads.
Transaction.commit(),
Transaction.begin()public javax.transaction.Synchronization getSynchronization()
getSynchronization in interface javax.jdo.Transactionpublic void setSynchronization(javax.transaction.Synchronization synch)
setSynchronization in interface javax.jdo.Transactionpublic boolean isActive()
isActive in interface javax.jdo.Transactionpublic void beforeCompletion()
beforeCompletion in interface javax.transaction.Synchronizationpublic void afterCompletion(int status)
afterCompletion in interface javax.transaction.Synchronizationprotected void flush()
protected void endTransaction(int status)
public javax.jdo.PersistenceManagerFactory getPersistenceManagerFactory()
getPersistenceManagerFactory in interface javax.jdo.PersistenceManagerpublic java.lang.Object getUserObject()
getUserObject in interface javax.jdo.PersistenceManagerpublic void setUserObject(java.lang.Object o)
setUserObject in interface javax.jdo.PersistenceManagerpublic boolean getMultithreaded()
getMultithreaded in interface javax.jdo.PersistenceManagerpublic void setMultithreaded(boolean multithreaded)
setMultithreaded in interface javax.jdo.PersistenceManagerpublic boolean isClosed()
isClosed in interface javax.jdo.PersistenceManagerpublic void close()
close in interface javax.jdo.PersistenceManagerprotected void free()
public javax.jdo.Transaction currentTransaction()
currentTransaction in interface javax.jdo.PersistenceManagerpublic java.lang.Object getObjectId(java.lang.Object pc)
getObjectId in interface javax.jdo.PersistenceManagerpublic java.lang.Object getTransactionalObjectId(java.lang.Object pc)
getTransactionalObjectId in interface javax.jdo.PersistenceManagerpublic java.lang.Class getObjectIdClass(java.lang.Class cls)
getObjectIdClass in interface javax.jdo.PersistenceManager
public java.lang.Object newObjectIdInstance(java.lang.Class cls,
java.lang.String str)
newObjectIdInstance in interface javax.jdo.PersistenceManager
public java.lang.Object getObjectById(java.lang.Object oid,
boolean validate)
getObjectById in interface javax.jdo.PersistenceManager
public java.lang.Object getObjectById(java.lang.Object oid,
java.lang.Object connection)
protected java.lang.Object getObjectById(java.lang.Object oid,
java.lang.Object connection,
boolean validate,
boolean copyOid,
boolean allowNew)
public java.lang.Object getCachedObjectById(java.lang.Object oid)
oid - the object's id
public void makePersistentAll(java.util.Collection pcs)
makePersistentAll in interface javax.jdo.PersistenceManagerpublic void makePersistentAll(java.lang.Object[] pcs)
makePersistentAll in interface javax.jdo.PersistenceManagerpublic void makePersistent(java.lang.Object pc)
makePersistent in interface javax.jdo.PersistenceManagerpublic void deletePersistentAll(java.util.Collection pcs)
deletePersistentAll in interface javax.jdo.PersistenceManagerpublic void deletePersistentAll(java.lang.Object[] pcs)
deletePersistentAll in interface javax.jdo.PersistenceManagerpublic void deletePersistent(java.lang.Object pc)
deletePersistent in interface javax.jdo.PersistenceManagerpublic void makeNontransactionalAll(java.util.Collection pcs)
makeNontransactionalAll in interface javax.jdo.PersistenceManagerpublic void makeNontransactionalAll(java.lang.Object[] pcs)
makeNontransactionalAll in interface javax.jdo.PersistenceManagerpublic void makeNontransactional(java.lang.Object pc)
makeNontransactional in interface javax.jdo.PersistenceManagerpublic void makeTransactionalAll(java.util.Collection pcs)
makeTransactionalAll in interface javax.jdo.PersistenceManagerpublic void makeTransactionalAll(java.lang.Object[] pcs)
makeTransactionalAll in interface javax.jdo.PersistenceManagerpublic void makeTransactional(java.lang.Object pc)
makeTransactional in interface javax.jdo.PersistenceManagerpublic void makeTransientAll(java.util.Collection pcs)
makeTransientAll in interface javax.jdo.PersistenceManagerpublic void makeTransientAll(java.lang.Object[] pcs)
makeTransientAll in interface javax.jdo.PersistenceManagerpublic void makeTransient(java.lang.Object pc)
makeTransient in interface javax.jdo.PersistenceManager
public com.solarmetric.rd.kodo.runtime.StateManagerImpl makeEmbedded(java.lang.Object pc,
com.solarmetric.rd.kodo.runtime.StateManagerImpl owner,
int ownerField)
pc - the instance to embed, or null to embed a
newly-created instance that will be loaded with
datastore dataowner - the owning state managerownerField - the field number of the owning object
public void refreshAll()
refreshAll in interface javax.jdo.PersistenceManagerpublic void refreshAll(java.util.Collection pcs)
refreshAll in interface javax.jdo.PersistenceManagerpublic void refreshAll(java.lang.Object[] pcs)
refreshAll in interface javax.jdo.PersistenceManagerpublic void refresh(java.lang.Object pc)
refresh in interface javax.jdo.PersistenceManagerpublic void retrieveAll(java.util.Collection pcs)
retrieveAll in interface javax.jdo.PersistenceManagerpublic void retrieveAll(java.lang.Object[] pcs)
retrieveAll in interface javax.jdo.PersistenceManagerpublic void retrieve(java.lang.Object pc)
retrieve in interface javax.jdo.PersistenceManagerpublic void evictAll()
evictAll in interface javax.jdo.PersistenceManagerpublic void evictAll(java.util.Collection pcs)
evictAll in interface javax.jdo.PersistenceManagerpublic void evictAll(java.lang.Object[] pcs)
evictAll in interface javax.jdo.PersistenceManagerpublic void evictAll(java.lang.Class cls)
public void evictAll(javax.jdo.Extent extent)
Exent.
public void evict(java.lang.Object pc)
evict in interface javax.jdo.PersistenceManager
public javax.jdo.Extent getExtent(java.lang.Class type,
boolean subclasses)
getExtent in interface javax.jdo.PersistenceManagerpublic javax.jdo.Query newQuery()
newQuery in interface javax.jdo.PersistenceManagerpublic javax.jdo.Query newQuery(java.lang.Class cls)
newQuery in interface javax.jdo.PersistenceManager
public javax.jdo.Query newQuery(java.lang.Class cls,
java.util.Collection cln)
newQuery in interface javax.jdo.PersistenceManagerpublic javax.jdo.Query newQuery(javax.jdo.Extent ext)
newQuery in interface javax.jdo.PersistenceManager
public javax.jdo.Query newQuery(java.lang.Class cls,
java.util.Collection cln,
java.lang.String filter)
newQuery in interface javax.jdo.PersistenceManager
public javax.jdo.Query newQuery(javax.jdo.Extent ext,
java.lang.String filter)
newQuery in interface javax.jdo.PersistenceManager
public javax.jdo.Query newQuery(java.lang.Class cls,
java.lang.String filter)
newQuery in interface javax.jdo.PersistenceManagerpublic javax.jdo.Query newQuery(java.lang.Object compiled)
newQuery in interface javax.jdo.PersistenceManager
public javax.jdo.Query newQuery(java.lang.String language,
java.lang.Object compiled)
newQuery in interface javax.jdo.PersistenceManagerprotected void lock()
Multithreaded flag is set to true. Make sure to call
unlock() in a finally clause of the same method.
protected void unlock()
public com.solarmetric.rd.kodo.runtime.StoreManager getDelegatingStoreManager()
DelegatingStoreManager around the native store manager.
public com.solarmetric.rd.kodo.runtime.StoreManager getStoreManager()
public com.solarmetric.rd.kodo.runtime.StateManagerImpl getState(java.lang.Object oid)
protected com.solarmetric.rd.kodo.runtime.StateManagerImpl getState(java.lang.Object oid,
boolean allowNew)
allowNew - if true, objects made persistent in the current
transaction will be included in the search;
if multiple new objects match the given oid, it
is undetermined which will be returnedpublic java.util.Collection getManagedObjects()
public java.util.Collection getTransactionalObjects()
public void checkClosed()
public void checkActiveTransaction()
public void checkNontransactionalRead()
protected com.solarmetric.rd.kodo.runtime.StateManagerImpl checkValid(java.lang.Object pc)
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||