All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.xmlmiddleware.db.CPConnection

java.lang.Object
   |
   +----org.xmlmiddleware.db.CPConnection

public class CPConnection
extends Object
implements Connection, CPConnectionEventSource
Wraps a pooled connection and its associated statement pool.

NOTE: To compile against JDBC 2.0, uncomment the methods used by the 2.0 version of Connection.

Version:
2.0
Author:
Sean Walter, 2001, Ronald Bourret, 2001

Method Index

 o addConnectionEventListener(CPConnectionEventListener)
public Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException { throw new SQLException("[XML-DBMS][CPConnection] Not implemented.", "HY000"); } public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException { throw new SQLException("[XML-DBMS][CPConnection] Not implemented.", "HY000"); } public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException { throw new SQLException("[XML-DBMS][CPConnection] Not implemented.", "HY000"); } public Map getTypeMap() throws SQLException { throw new SQLException("[XML-DBMS][CPConnection] Not implemented.", "HY000"); } public void setTypeMap(Map map) throws SQLException { throw new SQLException("[XML-DBMS][CPConnection] Not implemented.", "HY000"); }
 o clearWarnings()
 o close()
 o commit()
 o createStatement()
 o getAutoCommit()
 o getCatalog()
 o getMetaData()
 o getTransactionIsolation()
 o getWarnings()
 o isClosed()
 o isReadOnly()
 o nativeSQL(String)
 o prepareCall(String)
 o prepareStatement(String)
 o removeConnectionEventListener(CPConnectionEventListener)
 o rollback()
 o setAutoCommit(boolean)
 o setCatalog(String)
 o setReadOnly(boolean)
 o setTransactionIsolation(int)

Methods

 o createStatement
 public Statement createStatement() throws SQLException
 o prepareStatement
 public PreparedStatement prepareStatement(String sql) throws SQLException
 o prepareCall
 public CallableStatement prepareCall(String sql) throws SQLException
 o nativeSQL
 public String nativeSQL(String sql) throws SQLException
 o setAutoCommit
 public void setAutoCommit(boolean autoCommit) throws SQLException
 o getAutoCommit
 public boolean getAutoCommit() throws SQLException
 o commit
 public void commit() throws SQLException
 o rollback
 public void rollback() throws SQLException
 o close
 public void close() throws SQLException
 o isClosed
 public boolean isClosed() throws SQLException
 o getMetaData
 public DatabaseMetaData getMetaData() throws SQLException
 o setReadOnly
 public void setReadOnly(boolean readOnly) throws SQLException
 o isReadOnly
 public boolean isReadOnly() throws SQLException
 o setCatalog
 public void setCatalog(String catalog) throws SQLException
 o getCatalog
 public String getCatalog() throws SQLException
 o setTransactionIsolation
 public void setTransactionIsolation(int level) throws SQLException
 o getTransactionIsolation
 public int getTransactionIsolation() throws SQLException
 o getWarnings
 public SQLWarning getWarnings() throws SQLException
 o clearWarnings
 public void clearWarnings() throws SQLException
 o addConnectionEventListener
 public void addConnectionEventListener(CPConnectionEventListener listener)
public Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException { throw new SQLException("[XML-DBMS][CPConnection] Not implemented.", "HY000"); } public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException { throw new SQLException("[XML-DBMS][CPConnection] Not implemented.", "HY000"); } public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException { throw new SQLException("[XML-DBMS][CPConnection] Not implemented.", "HY000"); } public Map getTypeMap() throws SQLException { throw new SQLException("[XML-DBMS][CPConnection] Not implemented.", "HY000"); } public void setTypeMap(Map map) throws SQLException { throw new SQLException("[XML-DBMS][CPConnection] Not implemented.", "HY000"); }

 o removeConnectionEventListener
 public void removeConnectionEventListener(CPConnectionEventListener listener)

All Packages  Class Hierarchy  This Package  Previous  Next  Index