org.exolab.castor.jdo.engine

Class GlobalDatabaseImpl

public class GlobalDatabaseImpl extends AbstractDatabaseImpl implements Synchronization

An implementation of the JDO database supporting explicit transaction demarcation.

Version: $Revision: 5951 $ $Date: 2006-04-10 16:39:24 -0600 (Mon, 10 Apr 2006) $

Author: Werner Guttmann

Field Summary
boolean_isPoolInUseForGlobalTransactions
Flag to indicate whether Database instances should be cached on a per transaction base.
Constructor Summary
GlobalDatabaseImpl(String dbName, int lockTimeout, CallbackInterceptor callback, InstanceFactory instanceFactory, Transaction transaction, ClassLoader classLoader, boolean autoStore, boolean isPoolInUseForGlobalTransactions)
Creates an instance of this class.
Method Summary
voidafterCompletion(int status)
voidbeforeCompletion()
voidbegin()
voidclose()
voidcommit()
protected voidfinalize()
Overrides Object.finalize().
ConnectiongetJdbcConnection()
voidrollback()
voidsetTxMap(TxDatabaseMap txMap)

Field Detail

_isPoolInUseForGlobalTransactions

boolean _isPoolInUseForGlobalTransactions
Flag to indicate whether Database instances should be cached on a per transaction base.

Constructor Detail

GlobalDatabaseImpl

public GlobalDatabaseImpl(String dbName, int lockTimeout, CallbackInterceptor callback, InstanceFactory instanceFactory, Transaction transaction, ClassLoader classLoader, boolean autoStore, boolean isPoolInUseForGlobalTransactions)
Creates an instance of this class.

Parameters: 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.

Throws: DatabaseNotFoundException If the specified database cannot be found.

Method Detail

afterCompletion

public void afterCompletion(int status)

See Also: javax.transaction.Synchronization#afterCompletion(int)

UNKNOWN:

beforeCompletion

public void beforeCompletion()

See Also: javax.transaction.Synchronization#beforeCompletion()

UNKNOWN:

begin

public void begin()

See Also: begin

UNKNOWN:

close

public void close()

See Also: close

UNKNOWN:

commit

public void commit()

See Also: commit

UNKNOWN:

finalize

protected void finalize()
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.

See Also: java.lang.Object#finalize()

getJdbcConnection

public Connection getJdbcConnection()

See Also: getJdbcConnection

UNKNOWN:

rollback

public void rollback()

See Also: rollback

UNKNOWN:

setTxMap

void setTxMap(TxDatabaseMap txMap)
Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com