| java.lang.Object org.smartlib.pool.core.SmartConnection
SmartConnection | public class SmartConnection implements Connection,Close,ConnectionMonitor(Code) | | This class encapsulates a Connection.
Dont expect me to document this class, if you want refer Sun's Documentation.
author: Sachin Shekar Shetty version: 1.0, 02/08/01 |
Method Summary | |
public void | clearWarnings() | public void | close() | public void | commit() | public Statement | createStatement() | public Statement | createStatement(int resultSetType, int resultSetConcurrency) | public Statement | createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) | void | forcedClose() This method is called when the connection is idle for more than
the specified time in max-conection-idle-time in configuration. | public boolean | getAutoCommit() | public String | getCatalog() | public long | getConnectionObtainedTime() | public int | getHoldability() | public long | getLastAccessedTime() | public DatabaseMetaData | getMetaData() | public String | getOwner() | public String | getPoolName() | public int | getTransactionIsolation() | public java.util.Map | getTypeMap() | public SQLWarning | getWarnings() | public boolean | isClosed() | public boolean | isCurrentlyInTransaction() | 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(Savepoint savepoint) | Connection | returnConnection() | public void | rollback() | public void | rollback(Savepoint savepoint) | public void | setAutoCommit(boolean autoCommit) | public void | setCatalog(String catalog) | public void | setHoldability(int holdability) | void | setLastAccessedTime() | public void | setReadOnly(boolean readOnly) | public Savepoint | setSavepoint() | public Savepoint | setSavepoint(String name) | public void | setTransactionIsolation(int level) | public void | setTypeMap(Map<String, Class<?>> map) | public String | toString() |
createStatement | public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException(Code) | | |
forcedClose | void forcedClose()(Code) | | This method is called when the connection is idle for more than
the specified time in max-conection-idle-time in configuration.
The PollThread calls this method to forcefully take the
connection back
|
getConnectionObtainedTime | public long getConnectionObtainedTime()(Code) | | |
getLastAccessedTime | public long getLastAccessedTime()(Code) | | |
isCurrentlyInTransaction | public boolean isCurrentlyInTransaction()(Code) | | |
setLastAccessedTime | void setLastAccessedTime()(Code) | | |
setTransactionIsolation | public void setTransactionIsolation(int level) throws SQLException(Code) | | |
|
|