org.openorb.ots.xa

Class ConnectionWrapper

public class ConnectionWrapper extends Object implements Connection

This class is SQL connection wrapper. It is used to apply SQL statements and to synchronized management for Xa.

Author: Jerome Daniel

Constructor Summary
ConnectionWrapper(Connection sql_connection, XAVirtualConnection xa_connection)
Constructor
Method Summary
CallableStatementcallStatement(String sql, int a, int b, int c)
voidclearWarnings()
Overrides the clearWarnings operation
voidclose()
Overrides the close operation
voidcommit()
Overrides the commit operation
StatementcreateStatement()
Overrides the createStatement operation
StatementcreateStatement(int resultSetType, int resultSetConcurrency)
Overrides the createStatement operation
StatementcreateStatement(int a, int b, int c)
booleangetAutoCommit()
Overrides the getAutoCommit operation
StringgetCatalog()
Overrides the getCatalog operation
intgetHoldability()
DatabaseMetaDatagetMetaData()
Overrides the getMetaData operation
intgetTransactionIsolation()
Overrides the geTransactionIsolation operation
MapgetTypeMap()
Overrides the getTypeMap operation
SQLWarninggetWarnings()
Overrides the getWarnings operation
booleanisClosed()
Overrides the isClosed operation
booleanisReadOnly()
Overrides the isReadOnly operation
StringnativeSQL(String sql)
Overrides the nativeSQL operation
CallableStatementprepareCall(String sql)
Overrides the prepareCall operation
CallableStatementprepareCall(String sql, int resultSetType, int resultSetConcurrency)
Overrides the prepareCall operation
CallableStatementprepareCall(String sql, int a, int b, int c)
PreparedStatementprepareStatement(String sql)
Overrides the prepareStatement operation
PreparedStatementprepareStatement(String sql, int resultSetType, int resultSetConcurrency)
Overrides the prepareStatement operation
PreparedStatementprepareStatement(String sql, int a, int b, int c)
PreparedStatementprepareStatement(String sql, int a)
PreparedStatementprepareStatement(String sql, int[] array)
PreparedStatementprepareStatement(String sql, String[] array)
voidreleaseSavepoint(Savepoint s)
voidrollback()
Overrides the rollback operation
voidrollback(Savepoint s)
voidsetAutoCommit(boolean autoCommit)
Overrides the setAutoCommit operation
voidsetCatalog(String catalog)
Overrides the setCatalog operation
voidsetHoldability(int holdability)
voidsetReadOnly(boolean readOnly)
Overrides the setReadOnly operation
SavepointsetSavepoint()
SavepointsetSavepoint(String name)
voidsetTransactionIsolation(int level)
Overrides the setTransactionIsolation operation
voidsetTypeMap(Map map)
Overrides the setTypeMap operation

Constructor Detail

ConnectionWrapper

public ConnectionWrapper(Connection sql_connection, XAVirtualConnection xa_connection)
Constructor

Method Detail

callStatement

public CallableStatement callStatement(String sql, int a, int b, int c)

clearWarnings

public void clearWarnings()
Overrides the clearWarnings operation

close

public void close()
Overrides the close operation

commit

public void commit()
Overrides the commit operation

createStatement

public Statement createStatement()
Overrides the createStatement operation

createStatement

public Statement createStatement(int resultSetType, int resultSetConcurrency)
Overrides the createStatement operation

createStatement

public Statement createStatement(int a, int b, int c)

getAutoCommit

public boolean getAutoCommit()
Overrides the getAutoCommit operation

getCatalog

public String getCatalog()
Overrides the getCatalog operation

getHoldability

public int getHoldability()

getMetaData

public DatabaseMetaData getMetaData()
Overrides the getMetaData operation

getTransactionIsolation

public int getTransactionIsolation()
Overrides the geTransactionIsolation operation

getTypeMap

public Map getTypeMap()
Overrides the getTypeMap operation

getWarnings

public SQLWarning getWarnings()
Overrides the getWarnings operation

isClosed

public boolean isClosed()
Overrides the isClosed operation

isReadOnly

public boolean isReadOnly()
Overrides the isReadOnly operation

nativeSQL

public String nativeSQL(String sql)
Overrides the nativeSQL operation

prepareCall

public CallableStatement prepareCall(String sql)
Overrides the prepareCall operation

prepareCall

public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency)
Overrides the prepareCall operation

prepareCall

public CallableStatement prepareCall(String sql, int a, int b, int c)

prepareStatement

public PreparedStatement prepareStatement(String sql)
Overrides the prepareStatement operation

prepareStatement

public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency)
Overrides the prepareStatement operation

prepareStatement

public PreparedStatement prepareStatement(String sql, int a, int b, int c)

prepareStatement

public PreparedStatement prepareStatement(String sql, int a)

prepareStatement

public PreparedStatement prepareStatement(String sql, int[] array)

prepareStatement

public PreparedStatement prepareStatement(String sql, String[] array)

releaseSavepoint

public void releaseSavepoint(Savepoint s)

rollback

public void rollback()
Overrides the rollback operation

rollback

public void rollback(Savepoint s)

setAutoCommit

public void setAutoCommit(boolean autoCommit)
Overrides the setAutoCommit operation

setCatalog

public void setCatalog(String catalog)
Overrides the setCatalog operation

setHoldability

public void setHoldability(int holdability)

setReadOnly

public void setReadOnly(boolean readOnly)
Overrides the setReadOnly operation

setSavepoint

public Savepoint setSavepoint()

setSavepoint

public Savepoint setSavepoint(String name)

setTransactionIsolation

public void setTransactionIsolation(int level)
Overrides the setTransactionIsolation operation

setTypeMap

public void setTypeMap(Map map)
Overrides the setTypeMap operation