| java.lang.Object org.ofbiz.minerva.pool.jdbc.xa.wrapper.XAClientConnection
XAClientConnection | public class XAClientConnection implements ConnectionWrapper(Code) | | Wrapper for database connections used by an XAConnection. When close is
called, it does not close the underlying connection, just informs the
XAConnection that close was called. The connection will not be closed (or
returned to the pool) until the transactional details are taken care of.
This instance only lives as long as one client is using it - though we
probably want to consider reusing it to save object allocations.
author: Aaron Mulder (ammulder@alumni.princeton.edu) |
Method Summary | |
public void | clearWarnings() | public void | close() | public void | commit() | public Statement | createStatement() | public Statement | createStatement(int resultSetType, int resultSetConcurrency) | public Statement | createStatement(int arg0, int arg1, int arg2) | public void | forcedClose() | public boolean | getAutoCommit() | public String | getCatalog() | public int | getHoldability() | public DatabaseMetaData | getMetaData() | public int | getPSCacheSize() Gets the number of PreparedStatements to be cached for each
Connection. | public int | getTransactionIsolation() | public Map | getTypeMap() | public Connection | getUnderlyingConnection() Gets a reference to the "real" connection. | public SQLWarning | getWarnings() | public boolean | isClosed() | public boolean | isReadOnly() | public String | nativeSQL(String sql) | public CallableStatement | prepareCall(String sql) | public CallableStatement | prepareCall(String sql, int resultSetType, int resultSetConcurrency) | public CallableStatement | prepareCall(String arg0, int arg1, int arg2, int arg3) | public PreparedStatement | prepareStatement(String sql) | public PreparedStatement | prepareStatement(String sql, int resultSetType, int resultSetConcurrency) | public PreparedStatement | prepareStatement(String arg0, int arg1, int arg2, int arg3) | public PreparedStatement | prepareStatement(String arg0, int arg1) | public PreparedStatement | prepareStatement(String arg0, int[] arg1) | public PreparedStatement | prepareStatement(String arg0, String[] arg1) | public void | releaseSavepoint(Savepoint arg0) | public void | rollback() | public void | rollback(Savepoint arg0) | public void | setAutoCommit(boolean autoCommit) | public void | setCatalog(String catalog) | public void | setError(SQLException e) Indicates that an error occured on this connection. | public void | setHoldability(int arg0) | public void | setLastUsed() Updates the last used time for this connection to the current time. | public void | setPSCacheSize(int maxSize) Sets the number of PreparedStatements to be cached for each
Connection. | public void | setReadOnly(boolean readOnly) | public Savepoint | setSavepoint() | public Savepoint | setSavepoint(String arg0) | public void | setTransactionIsolation(int level) | public void | setTypeMap(Map map) | public void | shutdown() Closes this connection wrapper permanently. | public void | statementClosed(Statement st) Indicates that a statement has been closed and no longer needs to be
tracked. |
XAClientConnection | public XAClientConnection(XAConnectionImpl xaCon, Connection con, boolean saveStackTrace)(Code) | | Creates a new connection wrapper.
Parameters: xaCon - The handler for all the transactional details. Parameters: con - The "real" database connection to wrap. |
getPSCacheSize | public int getPSCacheSize()(Code) | | Gets the number of PreparedStatements to be cached for each
Connection.
|
getUnderlyingConnection | public Connection getUnderlyingConnection()(Code) | | Gets a reference to the "real" connection. This should only be used if
you need to cast that to a specific type to call a proprietary method -
you will defeat all the pooling if you use the underlying connection
directly.
|
setError | public void setError(SQLException e)(Code) | | Indicates that an error occured on this connection.
|
setLastUsed | public void setLastUsed()(Code) | | Updates the last used time for this connection to the current time.
This is not used by the current implementation.
|
setPSCacheSize | public void setPSCacheSize(int maxSize)(Code) | | Sets the number of PreparedStatements to be cached for each
Connection. Your DB product may impose a limit on the number
of open PreparedStatements.
|
setTransactionIsolation | public void setTransactionIsolation(int level) throws SQLException(Code) | | |
shutdown | public void shutdown()(Code) | | Closes this connection wrapper permanently. All further calls with throw
a SQLException.
|
statementClosed | public void statementClosed(Statement st)(Code) | | Indicates that a statement has been closed and no longer needs to be
tracked. Outstanding statements are closed when the connection is
returned to the pool.
|
|
|