| java.lang.Object org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection
All known Subclasses: org.jboss.resource.adapter.jdbc.xa.XAManagedConnection, org.jboss.resource.adapter.jdbc.local.LocalManagedConnection,
BaseWrapperManagedConnection | abstract public class BaseWrapperManagedConnection implements ManagedConnection(Code) | | BaseWrapperManagedConnection
author: David Jencks author: Adrian Brock version: $Revision: 57189 $ |
Method Summary | |
public void | addConnectionEventListener(ConnectionEventListener cel) | public void | associateConnection(Object handle) | protected void | broadcastConnectionError(Throwable e) | boolean | canUse(CachedPreparedStatement cachedps) | protected void | checkException(SQLException e) | protected void | checkState() | void | checkTransaction() The checkTransaction method makes sure the adapter follows the JCA
autocommit contract, namely all statements executed outside a container managed transaction
or a component managed transaction should be autocommitted. | public boolean | checkValid() | public void | cleanup() | void | closeHandle(WrappedConnection handle) | void | connectionError(Throwable t) | public void | destroy() | CallableStatement | doPrepareCall(String sql, int resultSetType, int resultSetConcurrency) | PreparedStatement | doPrepareStatement(String sql, int resultSetType, int resultSetConcurrency) | public Object | getConnection(Subject subject, ConnectionRequestInfo cri) | Connection | getConnection() | int | getJdbcTransactionIsolation() | protected Logger | getLog() | public PrintWriter | getLogWriter() | public ManagedConnectionMetaData | getMetaData() | int | getQueryTimeout() | int | getTrackStatements() | boolean | isJdbcAutoCommit() | boolean | isJdbcReadOnly() | boolean | isTransactionQueryTimeout() | void | jdbcCommit() | void | jdbcRollback() | void | jdbcRollback(Savepoint savepoint) | CallableStatement | prepareCall(String sql, int resultSetType, int resultSetConcurrency) | PreparedStatement | prepareStatement(String sql, int resultSetType, int resultSetConcurrency) | public void | removeConnectionEventListener(ConnectionEventListener cel) | void | setJdbcAutoCommit(boolean jdbcAutoCommit) | void | setJdbcReadOnly(boolean readOnly) | void | setJdbcTransactionIsolation(int isolationLevel) | public void | setLogWriter(PrintWriter param1) |
destroyed | protected boolean destroyed(Code) | | |
inLocalTransaction | protected SynchronizedBoolean inLocalTransaction(Code) | | |
inManagedTransaction | protected boolean inManagedTransaction(Code) | | |
jdbcAutoCommit | protected boolean jdbcAutoCommit(Code) | | |
jdbcReadOnly | protected boolean jdbcReadOnly(Code) | | |
jdbcTransactionIsolation | protected int jdbcTransactionIsolation(Code) | | |
underlyingAutoCommit | protected boolean underlyingAutoCommit(Code) | | |
underlyingReadOnly | protected boolean underlyingReadOnly(Code) | | |
addConnectionEventListener | public void addConnectionEventListener(ConnectionEventListener cel)(Code) | | |
associateConnection | public void associateConnection(Object handle) throws ResourceException(Code) | | |
broadcastConnectionError | protected void broadcastConnectionError(Throwable e)(Code) | | |
checkException | protected void checkException(SQLException e) throws ResourceException(Code) | | |
checkTransaction | void checkTransaction() throws SQLException(Code) | | The checkTransaction method makes sure the adapter follows the JCA
autocommit contract, namely all statements executed outside a container managed transaction
or a component managed transaction should be autocommitted. To avoid continually calling
setAutocommit(enable) before and after container managed transactions, we keep track of the state
and check it before each transactional method call.
|
checkValid | public boolean checkValid()(Code) | | |
cleanup | public void cleanup() throws ResourceException(Code) | | |
destroy | public void destroy() throws ResourceException(Code) | | |
getConnection | public Object getConnection(Subject subject, ConnectionRequestInfo cri) throws ResourceException(Code) | | |
getJdbcTransactionIsolation | int getJdbcTransactionIsolation()(Code) | | |
getLog | protected Logger getLog()(Code) | | |
getMetaData | public ManagedConnectionMetaData getMetaData() throws ResourceException(Code) | | |
getQueryTimeout | int getQueryTimeout()(Code) | | |
getTrackStatements | int getTrackStatements()(Code) | | |
isJdbcAutoCommit | boolean isJdbcAutoCommit()(Code) | | |
isJdbcReadOnly | boolean isJdbcReadOnly()(Code) | | |
isTransactionQueryTimeout | boolean isTransactionQueryTimeout()(Code) | | |
removeConnectionEventListener | public void removeConnectionEventListener(ConnectionEventListener cel)(Code) | | |
setJdbcAutoCommit | void setJdbcAutoCommit(boolean jdbcAutoCommit) throws SQLException(Code) | | |
setJdbcTransactionIsolation | void setJdbcTransactionIsolation(int isolationLevel) throws SQLException(Code) | | |
setLogWriter | public void setLogWriter(PrintWriter param1) throws ResourceException(Code) | | |
|
|