Method Summary |
|
public void | addConnectionEventListener(ConnectionEventListener listener) Add an event listener. |
public void | afterCompletion(int status) synchronization implementation. |
public void | beforeCompletion() synchronization implementation. |
public void | close() Close the database connection. |
public void | commit(Xid xid, boolean onePhase) Commit the global transaction specified by xid. |
public int | compareTo(Object o) Compares this object with another specified object. |
public void | end(Xid xid, int flags) Ends the work performed on behalf of a transaction branch. |
public void | forget(Xid xid) Tell the resource manager to forget about a heuristically completed
transaction branch. |
public Connection | getConnection() Create an object handle for a database connection. |
public int | getIdentifier() |
public int | getOpenCount() |
public int | getReUsedPreparedStatements() |
public int | getTransactionTimeout() Obtain the current transaction timeout value set for this XAResource
instance. |
public Transaction | getTx() |
public XAResource | getXAResource() Return an XA resource to the caller. |
public void | hold() Notify as opened. |
public boolean | inactive() Check if the connection has been unused for too long time. |
public boolean | isAged() |
public boolean | isClosed() |
public boolean | isOpen() |
public boolean | isSameRM(XAResource xares) Determine if the resource manager instance represented by the target
object is the same as the resource manager instance represented by the
parameter xares. |
public void | notifyClose() Notify a Close event on Connection. |
public void | notifyError(SQLException ex) Notify an Error event on Connection. |
public void | notifyPsClose(JStatement ps) A PreparedStatement has been logically closed. |
public int | prepare(Xid xid) Ask the resource manager to prepare for a transaction commit of the
transaction specified in xid. |
public PreparedStatement | prepareStatement(String sql, int resultSetType, int resultSetConcurrency) Try to find a PreparedStatement in the pool for the given options. |
public PreparedStatement | prepareStatement(String sql) Try to find a PreparedStatement in the pool.
Parameters: sql - the given sql query. throws: SQLException - if an error in the database occurs. |
public Xid[] | recover(int flag) Obtain a list of prepared transaction branches from a resource manager.
Parameters: flag - unused parameter. |
public boolean | release() notify as closed. |
public void | remove() remove this item, ignoring exception on close. |
public void | removeConnectionEventListener(ConnectionEventListener listener) Remove an event listener. |
public void | rollback(Xid xid) Inform the resource manager to roll back work done on behalf of a
transaction branch. |
public void | setPstmtMax(int max) Dynamically change the prepared statement pool size. |
public boolean | setTransactionTimeout(int seconds) Set the current transaction timeout value for this XAResource instance.
Parameters: seconds - timeout value, in seconds. |
public void | setTx(Transaction tx) Set the associated transaction. |
public void | start(Xid xid, int flags) Start work on behalf of a transaction branch specified in xid. |