org.exolab.castor.jdo.engine
Class GlobalDatabaseImpl
- Synchronization, Database
public class GlobalDatabaseImpl
implements Synchronization
An implementation of the JDO database supporting explicit transaction
demarcation.
$Revision: 7127 $ $Date: 2006-04-10 16:39:24 -0600 (Mon, 10 Apr 2006) $
begin , close , commit , create , getCacheManager , getClassLoader , getCurrentTransaction , getDatabaseName , getIdentity , getJdbcConnection , getLockEngine , getNamedQuery , getOQLQuery , getOQLQuery , getQuery , getScope , getTransaction , isActive , isAutoStore , isClosed , isLocked , isPersistent , load , load , load , loadSynchronizables , lock , registerSynchronizables , remove , rollback , setAutoStore , toString , unregisterSynchronizables , update |
GlobalDatabaseImpl
public GlobalDatabaseImpl(String dbName,
int lockTimeout,
CallbackInterceptor callback,
InstanceFactory instanceFactory,
Transaction transaction,
ClassLoader classLoader,
boolean autoStore,
boolean isPoolInUseForGlobalTransactions)
throws DatabaseNotFoundException
Creates an instance of this class.
dbName
- Database name.lockTimeout
- Lock timeout.callback
- Callback interceptors.instanceFactory
- Instance factory to use.transaction
- Current XA transaction.classLoader
- Current class loader.autoStore
- True if auto-storing is enabled.isPoolInUseForGlobalTransactions
- True if Database instanced should be cached.
afterCompletion
public void afterCompletion(int status)
javax.transaction.Synchronization.afterCompletion(int)
beforeCompletion
public void beforeCompletion()
finalize
protected void finalize()
throws Throwable
Overrides Object.finalize().
Outputs a warning message to the logs if the current DatabaseImpl
instance still has valid scope. In this condition - a condition that
ideally should not occur at all - we close the instance as well to
free up resources.
java.lang.Object.finalize()
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com