com.arjuna.ats.arjuna.objectstore.jdbc
Interface JDBCAccess


public interface JDBCAccess

Do not return a connection which participates within the transaction 2-phase commit protocol! All connections will have auto-commit set to true, or we will not be able to use them. So don't return an Arjuna JDBC 1.0 or 2.x connection.

Since:
JTS 2.1.

Field Summary
static int DROP_TABLE
           
static int TABLE_NAME
           
static int URL
           
 
Method Summary
 boolean dropTable()
           
 Connection getConnection()
           
 void initialise(Object[] objName)
          This method can be used to pass additional information to the implementation.
 void putConnection(Connection conn)
          Called from the object store when a connection is no longer used.
 String tableName()
           
 

Field Detail

URL

static final int URL
See Also:
Constant Field Values

TABLE_NAME

static final int TABLE_NAME
See Also:
Constant Field Values

DROP_TABLE

static final int DROP_TABLE
See Also:
Constant Field Values
Method Detail

getConnection

Connection getConnection()
                         throws SQLException
Returns:
the connection to use for the object store. If a pool of connections is used, this method may be called up to maxpoolsize times. It must not return the same connection each time.
Throws:
SQLException

putConnection

void putConnection(Connection conn)
Called from the object store when a connection is no longer used.


tableName

String tableName()
Returns:
the name of the table to use for storing the state.

dropTable

boolean dropTable()
Returns:
true if the table is to be deleted and recreated prior to use, false otherwise.

initialise

void initialise(Object[] objName)
This method can be used to pass additional information to the implementation.



Copyright © 2011. All Rights Reserved.