| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.exolab.castor.jdo.engine.AbstractDatabaseImplorg.exolab.castor.jdo.engine.LocalDatabaseImplpublic class LocalDatabaseImplextends AbstractDatabaseImplDatabase interface supporting explicit local
transaction demarcation.
Field Summary |
Fields inherited from class org.exolab.castor.jdo.engine.AbstractDatabaseImpl | |
_autoStore, _callback, _classLoader, _ctx, _dbName, _instanceFactory, _lockTimeout, _scope | |
Fields inherited from interface org.exolab.castor.jdo.Database | |
DBLOCKED, DbLocked, EXCLUSIVE, Exclusive, READONLY, ReadOnly, SHARED, Shared | |
Constructor Summary | |
| |
Method Summary | |
void |
|
void |
|
void |
|
protected void |
|
Connection | |
void |
|
Methods inherited from class org.exolab.castor.jdo.engine.AbstractDatabaseImpl | |
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 | |
public LocalDatabaseImpl(String dbName,
int lockTimeout,
CallbackInterceptor callback,
InstanceFactory instanceFactory,
ClassLoader classLoader,
boolean autoStore)
throws DatabaseNotFoundExceptionCreates an instance of this class.
- Parameters:
dbName- database namelockTimeout- Lock timeoutcallback- Callback interceptorinstanceFactory- Instance factory.classLoader- Current class loaderautoStore- Indicates whetehr to use 'auto-storing'
- Throws:
DatabaseNotFoundException- If the specified database configuration cannot be found.
public void begin()
throws PersistenceException
- Overrides:
- begin in interface AbstractDatabaseImpl
public void close()
throws PersistenceException
- Overrides:
- close in interface AbstractDatabaseImpl
- See Also:
Database.close()
public void commit()
throws TransactionNotInProgressException,
TransactionAbortedException
- Overrides:
- commit in interface AbstractDatabaseImpl
protected void finalize()
throws ThrowableOverrides 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.
- See Also:
java.lang.Object.finalize()
public Connection getJdbcConnection()
throws PersistenceException
- Specified by:
- getJdbcConnection in interface Database
- Overrides:
- getJdbcConnection in interface AbstractDatabaseImpl
- See Also:
Database.getJdbcConnection()
public void rollback()
throws TransactionNotInProgressException
- Overrides:
- rollback in interface AbstractDatabaseImpl
- See Also:
Database.rollback()