Save This Page
Home » commons-dbcp-1.2.2-src » org.apache.commons » dbcp » [javadoc | source]
org.apache.commons.dbcp
public class: TesterConnection [javadoc | source]
java.lang.Object
   org.apache.commons.dbcp.TesterConnection

All Implemented Interfaces:
    Connection

A dummy Connection , for testing purposes.
Field Summary
protected  boolean _open     
protected  boolean _autoCommit     
protected  int _transactionIsolation     
protected  DatabaseMetaData _metaData     
protected  String _catalog     
protected  Map _typeMap     
protected  boolean _readOnly     
protected  SQLWarning warnings     
protected  String username     
protected  String password     
protected  Exception failure     
Constructor:
 public TesterConnection(String username,
    String password) 
Method from org.apache.commons.dbcp.TesterConnection Summary:
checkFailure,   checkOpen,   clearWarnings,   close,   commit,   createStatement,   createStatement,   createStatement,   getAutoCommit,   getCatalog,   getHoldability,   getMetaData,   getTransactionIsolation,   getTypeMap,   getUsername,   getWarnings,   isClosed,   isReadOnly,   nativeSQL,   prepareCall,   prepareCall,   prepareCall,   prepareStatement,   prepareStatement,   prepareStatement,   prepareStatement,   prepareStatement,   prepareStatement,   releaseSavepoint,   rollback,   rollback,   setAutoCommit,   setCatalog,   setFailure,   setHoldability,   setReadOnly,   setSavepoint,   setSavepoint,   setTransactionIsolation,   setTypeMap,   setWarnings
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.dbcp.TesterConnection Detail:
 protected  void checkFailure() throws SQLException 
 protected  void checkOpen() throws SQLException 
 public  void clearWarnings() throws SQLException 
 public  void close() throws SQLException 
 public  void commit() throws SQLException 
 public Statement createStatement() throws SQLException 
 public Statement createStatement(int resultSetType,
    int resultSetConcurrency) throws SQLException 
 public Statement createStatement(int resultSetType,
    int resultSetConcurrency,
    int resultSetHoldability) throws SQLException 
 public boolean getAutoCommit() throws SQLException 
 public String getCatalog() throws SQLException 
 public int getHoldability() throws SQLException 
 public DatabaseMetaData getMetaData() throws SQLException 
 public int getTransactionIsolation() throws SQLException 
 public Map getTypeMap() throws SQLException 
 public String getUsername() 
 public SQLWarning getWarnings() throws SQLException 
 public boolean isClosed() throws SQLException 
 public boolean isReadOnly() throws SQLException 
 public String nativeSQL(String sql) throws SQLException 
 public CallableStatement prepareCall(String sql) throws SQLException 
 public CallableStatement prepareCall(String sql,
    int resultSetType,
    int resultSetConcurrency) throws SQLException 
 public CallableStatement prepareCall(String sql,
    int resultSetType,
    int resultSetConcurrency,
    int resultSetHoldability) throws SQLException 
 public PreparedStatement prepareStatement(String sql) throws SQLException 
 public PreparedStatement prepareStatement(String sql,
    int autoGeneratedKeys) throws SQLException 
 public PreparedStatement prepareStatement(String sql,
    int[] columnIndexes) throws SQLException 
 public PreparedStatement prepareStatement(String sql,
    String[] columnNames) throws SQLException 
 public PreparedStatement prepareStatement(String sql,
    int resultSetType,
    int resultSetConcurrency) throws SQLException 
 public PreparedStatement prepareStatement(String sql,
    int resultSetType,
    int resultSetConcurrency,
    int resultSetHoldability) throws SQLException 
 public  void releaseSavepoint(Savepoint savepoint) throws SQLException 
 public  void rollback() throws SQLException 
 public  void rollback(Savepoint savepoint) throws SQLException 
 public  void setAutoCommit(boolean autoCommit) throws SQLException 
 public  void setCatalog(String catalog) throws SQLException 
 public  void setFailure(Exception failure) 
 public  void setHoldability(int holdability) throws SQLException 
 public  void setReadOnly(boolean readOnly) throws SQLException 
 public Savepoint setSavepoint() throws SQLException 
 public Savepoint setSavepoint(String name) throws SQLException 
 public  void setTransactionIsolation(int level) throws SQLException 
 public  void setTypeMap(Map map) throws SQLException 
 public  void setWarnings(SQLWarning warning)