Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa.lib » jdbc » [javadoc | source]
org.apache.openjpa.lib.jdbc
public class: DelegatingConnection [javadoc | source]
java.lang.Object
   org.apache.openjpa.lib.jdbc.DelegatingConnection

All Implemented Interfaces:
    Closeable, Connection

Direct Known Subclasses:
    ClientConnection, RefCountConnection, EventConnection, LoggingConnection, SybaseConnection, ConfiguringConnection, PostgresConnection

Wrapper around an existing connection. Subclasses can override the methods whose behavior they mean to change. The equals and hashCode methods pass through to the base underlying data store connection.
Constructor:
 public DelegatingConnection(Connection conn) 
Method from org.apache.openjpa.lib.jdbc.DelegatingConnection Summary:
appendInfo,   clearWarnings,   close,   commit,   createStatement,   createStatement,   createStatement,   createStatement,   createStatement,   createStatement,   equals,   getAutoCommit,   getCatalog,   getDelegate,   getHoldability,   getInnermostDelegate,   getMetaData,   getMetaData,   getTransactionIsolation,   getTypeMap,   getWarnings,   hashCode,   isClosed,   isReadOnly,   nativeSQL,   prepareCall,   prepareCall,   prepareCall,   prepareCall,   prepareCall,   prepareCall,   prepareStatement,   prepareStatement,   prepareStatement,   prepareStatement,   prepareStatement,   prepareStatement,   prepareStatement,   prepareStatement,   prepareStatement,   prepareStatement,   prepareStatement,   prepareStatement,   releaseSavepoint,   rollback,   rollback,   setAutoCommit,   setCatalog,   setHoldability,   setReadOnly,   setSavepoint,   setSavepoint,   setTransactionIsolation,   setTypeMap,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.lib.jdbc.DelegatingConnection Detail:
 protected  void appendInfo(StringBuffer buf) 
 public  void clearWarnings() throws SQLException 
 public  void close() throws SQLException 
 public  void commit() throws SQLException 
 public Statement createStatement() throws SQLException 
 protected Statement createStatement(boolean wrap) throws SQLException 
    Create a statement, with the option of not wrapping it in a DelegatingStatement , which is the default.
 public Statement createStatement(int type,
    int concur) throws SQLException 
 protected Statement createStatement(int type,
    int concur,
    boolean wrap) throws SQLException 
    Create a statement, with the option of not wrapping it in a DelegatingStatement , which is the default.
 public Statement createStatement(int resultSetType,
    int resultSetConcurrency,
    int resultSetHoldability) throws SQLException 
 protected Statement createStatement(int resultSetType,
    int resultSetConcurrency,
    int resultSetHoldability,
    boolean wrap) throws SQLException 
 public boolean equals(Object other) 
 public boolean getAutoCommit() throws SQLException 
 public String getCatalog() throws SQLException 
 public Connection getDelegate() 
    Return the wrapped connection.
 public int getHoldability() throws SQLException 
 public Connection getInnermostDelegate() 
    Return the base underlying data store connection.
 public DatabaseMetaData getMetaData() throws SQLException 
 protected DatabaseMetaData getMetaData(boolean wrap) throws SQLException 
 public int getTransactionIsolation() throws SQLException 
 public Map getTypeMap() throws SQLException 
 public SQLWarning getWarnings() throws SQLException 
 public int hashCode() 
 public boolean isClosed() throws SQLException 
 public boolean isReadOnly() throws SQLException 
 public String nativeSQL(String str) throws SQLException 
 public CallableStatement prepareCall(String str) throws SQLException 
 protected CallableStatement prepareCall(String str,
    boolean wrap) throws SQLException 
 public CallableStatement prepareCall(String str,
    int type,
    int concur) throws SQLException 
 protected CallableStatement prepareCall(String str,
    int type,
    int concur,
    boolean wrap) throws SQLException 
 public CallableStatement prepareCall(String sql,
    int resultSetType,
    int resultSetConcurrency,
    int resultSetHoldability) throws SQLException 
 protected CallableStatement prepareCall(String sql,
    int resultSetType,
    int resultSetConcurrency,
    int resultSetHoldability,
    boolean wrap) throws SQLException 
 public PreparedStatement prepareStatement(String str) throws SQLException 
 protected PreparedStatement prepareStatement(String str,
    boolean wrap) 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 str,
    int type,
    int concur) throws SQLException 
 protected PreparedStatement prepareStatement(String sql,
    int autoGeneratedKeys,
    boolean wrap) throws SQLException 
 protected PreparedStatement prepareStatement(String sql,
    int[] columnIndexes,
    boolean wrap) throws SQLException 
 protected PreparedStatement prepareStatement(String sql,
    String[] columnNames,
    boolean wrap) throws SQLException 
 protected PreparedStatement prepareStatement(String str,
    int type,
    int concur,
    boolean wrap) throws SQLException 
 public PreparedStatement prepareStatement(String sql,
    int resultSetType,
    int resultSetConcurrency,
    int resultSetHoldability) throws SQLException 
 protected PreparedStatement prepareStatement(String sql,
    int resultSetType,
    int resultSetConcurrency,
    int resultSetHoldability,
    boolean wrap) 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 bool) throws SQLException 
 public  void setCatalog(String str) throws SQLException 
 public  void setHoldability(int holdability) throws SQLException 
 public  void setReadOnly(boolean bool) throws SQLException 
 public Savepoint setSavepoint() throws SQLException 
 public Savepoint setSavepoint(String savepoint) throws SQLException 
 public  void setTransactionIsolation(int i) throws SQLException 
 public  void setTypeMap(Map map) throws SQLException 
 public String toString()