com.metamatrix.common.id.dbid.spi.jdbc
Class DBIDResourceTransaction
java.lang.Object
com.metamatrix.common.connection.BaseTransaction
com.metamatrix.common.id.dbid.spi.jdbc.DBIDResourceTransaction
- All Implemented Interfaces:
- TransactionInterface, DBIDSourceTransaction
public class DBIDResourceTransaction
- extends BaseTransaction
- implements DBIDSourceTransaction
TransactionSourceTransaction implementation.
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DBIDResourceTransaction
public DBIDResourceTransaction(ManagedConnection connection,
boolean readonly)
throws ManagedConnectionException
- Create a new instance of a transaction for a managed connection.
- Parameters:
connectionPool
- the pool to which the transaction should return the connection when completedconnection
- the connection that should be used and that was created using this
factory's createConnection
method (thus the transaction subclass may cast to the
type created by the createConnection
method.readonly
- true if the transaction is to be readonly, or false otherwise
- Throws:
ManagedConnectionException
- if there is an error creating the transaction.
createIDBlock
public void createIDBlock(long blockSize,
java.lang.String context,
ReservedIDBlock block)
throws java.lang.Exception
- Specified by:
createIDBlock
in interface DBIDSourceTransaction
- Throws:
java.lang.Exception
getMaxValue
public long getMaxValue()
Copyright © 2009. All Rights Reserved.