| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.exolab.castor.jdo.engine.DatabaseImplField 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 DatabaseNotFoundExceptionpublic void afterCompletion(int status)
public void beforeCompletion()
public void checkpoint()
throws TransactionNotInProgressException,
TransactionAbortedExceptionDeprecated. Use
commit()androllback()instead
- Specified by:
- checkpoint in interface Database
public void create(Object object)
throws ClassNotPersistenceCapableException,
DuplicateIdentityException,
TransactionNotInProgressException,
PersistenceExceptionpublic void deletePersistent(Object object)
throws ObjectNotPersistentException,
LockNotGrantedException,
PersistenceExceptionDeprecated.
- Specified by:
- deletePersistent in interface Database
protected void finalize()
throws Throwablepublic 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
nullif not provided
public Object getConnection()
throws PersistenceExceptionGet 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,
PersistenceExceptionpublic Object load(Class type,
Object identity,
Object object)
throws TransactionNotInProgressException,
ObjectNotFoundException,
LockNotGrantedException,
PersistenceExceptionpublic Object load(Class type,
Object identity,
short accessMode)
throws ObjectNotFoundException,
LockNotGrantedException,
TransactionNotInProgressException,
PersistenceExceptionpublic Object load(Class type,
Complex identity)
throws TransactionNotInProgressException,
ObjectNotFoundException,
LockNotGrantedException,
PersistenceExceptionpublic Object load(Class type,
Complex identity,
short accessMode)
throws TransactionNotInProgressException,
ObjectNotFoundException,
LockNotGrantedException,
PersistenceExceptionpublic void lock(Object object)
throws LockNotGrantedException,
ObjectNotPersistentException,
TransactionNotInProgressException,
PersistenceExceptionpublic void makePersistent(Object object)
throws ClassNotPersistenceCapableException,
DuplicateIdentityException,
TransactionNotInProgressException,
PersistenceExceptionDeprecated.
- Specified by:
- makePersistent in interface Database
public void remove(Object object)
throws ObjectNotPersistentException,
LockNotGrantedException,
TransactionNotInProgressException,
PersistenceExceptionpublic void setAutoStore(boolean autoStore)
- Specified by:
- setAutoStore in interface Database
public String toString()
public void update(Object object)
throws ClassNotPersistenceCapableException,
ObjectModifiedException,
TransactionNotInProgressException,
PersistenceException