org.exolab.castor.jdo.engine

Class LocalDatabaseImpl

public class LocalDatabaseImpl extends AbstractDatabaseImpl

An implementation of the JDO Database interface supporting explicit local transaction demarcation.

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

Author: Assaf Arkin Bruce Snyder Werner Guttmann

Constructor Summary
LocalDatabaseImpl(String dbName, int lockTimeout, CallbackInterceptor callback, InstanceFactory instanceFactory, ClassLoader classLoader, boolean autoStore)
Creates an instance of this class.
Method Summary
voidbegin()
voidclose()
voidcommit()
protected voidfinalize()
Overrides Object.finalize().
ConnectiongetJdbcConnection()
voidrollback()

Constructor Detail

LocalDatabaseImpl

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

Parameters: dbName database name lockTimeout Lock timeout callback Callback interceptor instanceFactory Instance factory. classLoader Current class loader autoStore Indicates whetehr to use 'auto-storing'

Throws: DatabaseNotFoundException If the specified database configuration cannot be found.

Method Detail

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:

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