| java.lang.Object org.underworldlabs.jdbc.PooledConnection
PooledConnection | public class PooledConnection implements Connection(Code) | | Pooled connection wrapper.
author: Takis Diakoumis version: $Revision: 1.6 $ |
Constructor Summary | |
public | PooledConnection(Connection realConnection) Creates a new PooledConnection object with the
specified connection as the source. | public | PooledConnection(Connection realConnection, boolean closeOnReturn) Creates a new PooledConnection object with the
specified connection as the source. |
Method Summary | |
protected void | checkOpen() | public void | clearWarnings() | public void | close() Closes the underlying connection, and close
any Statements that were not explicitly closed. | public void | commit() | public Statement | createStatement() | public Statement | createStatement(int resultSetType, int resultSetConcurrency) | public Statement | createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) | public boolean | equals(Object obj) | public boolean | getAutoCommit() | public String | getCatalog() | public int | getHoldability() | public DatabaseMetaData | getMetaData() | public Connection | getRealConnection() | public int | getTransactionIsolation() | public Map | getTypeMap() | public int | getUseCount() | public SQLWarning | getWarnings() | protected void | handleException(SQLException e) | public int | hashCode() | public boolean | isAvailable() | public boolean | isCloseOnReturn() | public boolean | isClosed() | public boolean | isReadOnly() | public String | nativeSQL(String sql) | public CallableStatement | prepareCall(String sql) | public CallableStatement | prepareCall(String sql, int resultSetType, int resultSetConcurrency) | public CallableStatement | prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) | public PreparedStatement | prepareStatement(String sql) | public PreparedStatement | prepareStatement(String sql, int resultSetType, int resultSetConcurrency) | public PreparedStatement | prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) | public PreparedStatement | prepareStatement(String sql, int autoGeneratedKeys) | public PreparedStatement | prepareStatement(String sql, int columnIndexes) | public PreparedStatement | prepareStatement(String sql, String columnNames) | public void | releaseSavepoint(java.sql.Savepoint savepoint) | public void | rollback() | public void | rollback(java.sql.Savepoint savepoint) | public void | setAutoCommit(boolean autoCommit) | public void | setCatalog(String catalog) | public void | setCloseOnReturn(boolean closeOnReturn) | public void | setHoldability(int holdability) | public void | setInUse(boolean inUse) | public void | setReadOnly(boolean readOnly) | public void | setRealConnection(Connection realConnection) | public java.sql.Savepoint | setSavepoint() | public java.sql.Savepoint | setSavepoint(String name) | public void | setTransactionIsolation(int level) | public void | setTypeMap(Map map) |
PooledConnection | public PooledConnection(Connection realConnection)(Code) | | Creates a new PooledConnection object with the
specified connection as the source.
Parameters: the - real java.sql.Connection |
PooledConnection | public PooledConnection(Connection realConnection, boolean closeOnReturn)(Code) | | Creates a new PooledConnection object with the
specified connection as the source.
Parameters: the - real java.sql.Connection |
close | public void close() throws SQLException(Code) | | Closes the underlying connection, and close
any Statements that were not explicitly closed.
|
createStatement | public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException(Code) | | |
getUseCount | public int getUseCount()(Code) | | |
hashCode | public int hashCode()(Code) | | |
isAvailable | public boolean isAvailable()(Code) | | Determine if the connection is available
true if the connection can be used |
isCloseOnReturn | public boolean isCloseOnReturn()(Code) | | |
setCloseOnReturn | public void setCloseOnReturn(boolean closeOnReturn)(Code) | | |
setInUse | public void setInUse(boolean inUse)(Code) | | |
setTransactionIsolation | public void setTransactionIsolation(int level) throws SQLException(Code) | | |
|
|