| java.lang.Object org.lateralnz.simpletrans.TransConnection
TransConnection | public class TransConnection implements Connection,XAResource,Serializable(Code) | | a 'transaction-aware' wrapper for a JDBC connection. This is used to ensure
that a connection is only commited, rolled back or closed until required
by a transaction
author: J R Briggs |
Method Summary | |
public void | clearWarnings() | public void | close() | public void | commit() | public void | commit(javax.transaction.xa.Xid xid, boolean param) | public Statement | createStatement() | public Statement | createStatement(int param, int param1) | public Statement | createStatement(int param, int param1, int param2) | protected void | doClose() | public void | doCommit() | public void | doRollback(Savepoint savepoint) | public void | end(javax.transaction.xa.Xid xid, int param) | public void | forget(javax.transaction.xa.Xid xid) | public boolean | getAutoCommit() | public String | getCatalog() | public int | getHoldability() | public DatabaseMetaData | getMetaData() | public String | getName() | public int | getTransactionIsolation() | public int | getTransactionTimeout() | public Map | getTypeMap() | public SQLWarning | getWarnings() | public boolean | isCloseFlagged() | public boolean | isClosed() | public boolean | isReadOnly() | public boolean | isSameRM(javax.transaction.xa.XAResource xAResource) | public String | nativeSQL(String str) | public int | prepare(javax.transaction.xa.Xid xid) | public CallableStatement | prepareCall(String str) | public CallableStatement | prepareCall(String str, int param, int param2) | public CallableStatement | prepareCall(String str, int param, int param2, int param3) | public PreparedStatement | prepareStatement(String str) | public PreparedStatement | prepareStatement(String str, int param) | public PreparedStatement | prepareStatement(String str, int[] values) | public PreparedStatement | prepareStatement(String str, String[] str1) | public PreparedStatement | prepareStatement(String str, int param, int param2) | public PreparedStatement | prepareStatement(String str, int param, int param2, int param3) | public javax.transaction.xa.Xid[] | recover(int param) | public void | releaseSavepoint(Savepoint savepoint) | public void | rollback() | public void | rollback(Savepoint savepoint) | public void | rollback(javax.transaction.xa.Xid xid) | public void | setAutoCommit(boolean param) | public void | setCatalog(String str) | public void | setHoldability(int param) | public void | setReadOnly(boolean param) | public Savepoint | setSavepoint() | public Savepoint | setSavepoint(String str) | public void | setTransactionIsolation(int param) | public boolean | setTransactionTimeout(int param) | public void | setTypeMap(Map map) | public void | start(javax.transaction.xa.Xid xid, int param) |
doClose | protected void doClose() throws SQLException(Code) | | performs the actual close on the underlying connection
|
doCommit | public void doCommit() throws SQLException(Code) | | performs the actual commit on the underlying connection
|
getName | public String getName()(Code) | | get the name of this connection
|
isCloseFlagged | public boolean isCloseFlagged()(Code) | | check if close has been flagged on this connection
|
setTransactionTimeout | public boolean setTransactionTimeout(int param) throws XAException(Code) | | |
|
|