Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.exolab.castor.jdo.engine.DatabaseImpl
Field Summary | |
protected TransactionContext |
|
protected PersistenceInfoGroup |
|
Constructor Summary | |
|
Method Summary | |
void |
|
void | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
protected void |
|
ClassLoader |
|
Object |
|
String |
|
Object |
|
(package private) LockEngine | |
OQLQuery | |
OQLQuery |
|
Query |
|
PersistenceInfoGroup |
|
protected TransactionContext | |
boolean |
|
boolean | |
boolean |
|
boolean |
|
Object |
|
Object |
|
Object |
|
Object | |
Object | |
void |
|
void |
|
void |
|
void |
|
void |
|
(package private) void |
|
String |
|
void |
|
protected TransactionContext _ctx
The transaction context is this database was accessed with anjavax.transaction.xa.XAResource
.
protected PersistenceInfoGroup _scope
The database engine used to access the underlying SQL database.
public DatabaseImpl(String dbName, int lockTimeout, LogInterceptor logInterceptor, CallbackInterceptor callback, InstanceFactory instanceFactory, Transaction transaction, ClassLoader classLoader, boolean autoStore) throws DatabaseNotFoundException
public void afterCompletion(int status)
public void beforeCompletion()
public void checkpoint() throws TransactionNotInProgressException, TransactionAbortedException
Deprecated. Use
commit()
androllback()
instead
- Specified by:
- checkpoint in interface Database
public void create(Object object) throws ClassNotPersistenceCapableException, DuplicateIdentityException, TransactionNotInProgressException, PersistenceException
public void deletePersistent(Object object) throws ObjectNotPersistentException, LockNotGrantedException, PersistenceException
Deprecated.
- Specified by:
- deletePersistent in interface Database
protected void finalize() throws Throwable
public ClassLoader getClassLoader()
Gets the current application ClassLoader's instance. For use in OQLQueryImpl and TransactionContext.
- Specified by:
- getClassLoader in interface Database
- Returns:
- the current ClassLoader's instance, or
null
if not provided
public Object getConnection() throws PersistenceException
Get the underlying JDBC Connection. Only for internal / advanced use ! Never try to close it (is done by castor).
public String getDatabaseName()
} Return the name of the database
- Specified by:
- getDatabaseName in interface Database
public OQLQuery getOQLQuery(String oql) throws QueryException
- Specified by:
- getOQLQuery in interface Database
protected TransactionContext getTransaction() throws TransactionNotInProgressException
public boolean isPersistent(Object object)
- Specified by:
- isPersistent in interface Database
public Object load(Class type, Object identity) throws ObjectNotFoundException, LockNotGrantedException, TransactionNotInProgressException, PersistenceException
public Object load(Class type, Object identity, Object object) throws TransactionNotInProgressException, ObjectNotFoundException, LockNotGrantedException, PersistenceException
public Object load(Class type, Object identity, short accessMode) throws ObjectNotFoundException, LockNotGrantedException, TransactionNotInProgressException, PersistenceException
public Object load(Class type, Complex identity) throws TransactionNotInProgressException, ObjectNotFoundException, LockNotGrantedException, PersistenceException
public Object load(Class type, Complex identity, short accessMode) throws TransactionNotInProgressException, ObjectNotFoundException, LockNotGrantedException, PersistenceException
public void lock(Object object) throws LockNotGrantedException, ObjectNotPersistentException, TransactionNotInProgressException, PersistenceException
public void makePersistent(Object object) throws ClassNotPersistenceCapableException, DuplicateIdentityException, TransactionNotInProgressException, PersistenceException
Deprecated.
- Specified by:
- makePersistent in interface Database
public void remove(Object object) throws ObjectNotPersistentException, LockNotGrantedException, TransactionNotInProgressException, PersistenceException
public void setAutoStore(boolean autoStore)
- Specified by:
- setAutoStore in interface Database
public String toString()
public void update(Object object) throws ClassNotPersistenceCapableException, ObjectModifiedException, TransactionNotInProgressException, PersistenceException