Save This Page
Home » jboss-5.0.0.CR1-src » org.jboss.resource.adapter » jdbc » [javadoc | source]
org.jboss.resource.adapter.jdbc
abstract public class: BaseWrapperManagedConnection [javadoc | source]
java.lang.Object
   org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection

All Implemented Interfaces:
    JBossConnectionStatistics, javax.resource.spi.ManagedConnection

Direct Known Subclasses:
    XAManagedConnection, XAOracleManagedConnection, LocalManagedConnection

BaseWrapperManagedConnection
Field Summary
protected final  BaseWrapperManagedConnectionFactory mcf     
protected final  Connection con     
protected final  Properties props     
protected final  Object stateLock     
protected  boolean inManagedTransaction     
protected  SynchronizedBoolean inLocalTransaction     
protected  boolean jdbcAutoCommit     
protected  boolean underlyingAutoCommit     
protected  boolean jdbcReadOnly     
protected  boolean underlyingReadOnly     
protected  int jdbcTransactionIsolation     
protected  boolean destroyed     
Constructor:
 public BaseWrapperManagedConnection(BaseWrapperManagedConnectionFactory mcf,
    Connection con,
    Properties props,
    int transactionIsolation,
    int psCacheSize) throws SQLException 
Method from org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection Summary:
addConnectionEventListener,   associateConnection,   broadcastConnectionError,   canUse,   checkException,   checkState,   checkTransaction,   checkValid,   cleanup,   closeHandle,   connectionError,   destroy,   doPrepareCall,   doPrepareStatement,   getConnection,   getConnection,   getJdbcTransactionIsolation,   getLog,   getLogWriter,   getMetaData,   getProperties,   getQueryTimeout,   getTrackStatements,   isJdbcAutoCommit,   isJdbcReadOnly,   isTransactionQueryTimeout,   jdbcCommit,   jdbcRollback,   jdbcRollback,   listConnectionStats,   lock,   prepareCall,   prepareStatement,   removeConnectionEventListener,   setJdbcAutoCommit,   setJdbcReadOnly,   setJdbcTransactionIsolation,   setLogWriter,   tryLock,   unlock
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection Detail:
 public  void addConnectionEventListener(ConnectionEventListener cel) 
 public  void associateConnection(Object handle) throws ResourceException 
 protected  void broadcastConnectionError(Throwable e) 
 boolean canUse(CachedPreparedStatement cachedps) 
 protected  void checkException(SQLException e) throws ResourceException 
 protected  void checkState() throws SQLException 
  void checkTransaction() throws SQLException 
    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.
 public boolean checkValid() 
 public  void cleanup() throws ResourceException 
  void closeHandle(WrappedConnection handle) 
 Throwable connectionError(Throwable t) 
 public  void destroy() throws ResourceException 
 CallableStatement doPrepareCall(String sql,
    int resultSetType,
    int resultSetConcurrency) throws SQLException 
 PreparedStatement doPrepareStatement(String sql,
    int resultSetType,
    int resultSetConcurrency) throws SQLException 
 Connection getConnection() throws SQLException 
 public Object getConnection(Subject subject,
    ConnectionRequestInfo cri) throws ResourceException 
 int getJdbcTransactionIsolation() 
 protected Logger getLog() 
 public PrintWriter getLogWriter() throws ResourceException 
 public ManagedConnectionMetaData getMetaData() throws ResourceException 
 public Properties getProperties() 
 int getQueryTimeout() 
 int getTrackStatements() 
 boolean isJdbcAutoCommit() 
 boolean isJdbcReadOnly() 
 boolean isTransactionQueryTimeout() 
  void jdbcCommit() throws SQLException 
  void jdbcRollback() throws SQLException 
  void jdbcRollback(Savepoint savepoint) throws SQLException 
 public Object listConnectionStats() 
 protected  void lock() 
 CallableStatement prepareCall(String sql,
    int resultSetType,
    int resultSetConcurrency) throws SQLException 
 PreparedStatement prepareStatement(String sql,
    int resultSetType,
    int resultSetConcurrency) throws SQLException 
 public  void removeConnectionEventListener(ConnectionEventListener cel) 
  void setJdbcAutoCommit(boolean jdbcAutoCommit) throws SQLException 
  void setJdbcReadOnly(boolean readOnly) throws SQLException 
  void setJdbcTransactionIsolation(int isolationLevel) throws SQLException 
 public  void setLogWriter(PrintWriter param1) throws ResourceException 
 protected  void tryLock() throws SQLException 
 protected  void unlock()