com.ibatis.common.jdbc
public static class SimpleDataSource.SimplePooledConnection extends Object implements InvocationHandler
| Constructor Summary | |
|---|---|
| SimplePooledConnection(Connection connection, SimpleDataSource dataSource)
Constructor for SimplePooledConnection that uses the Connection and SimpleDataSource passed in
| |
| Method Summary | |
|---|---|
| void | clearWarnings() |
| void | close() |
| void | commit() |
| Statement | createStatement() |
| Statement | createStatement(int resultSetType, int resultSetConcurrency) |
| Statement | createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) |
| boolean | equals(Object obj)
Allows comparing this connection to another
|
| long | getAge()
Getter for the age of the connection |
| boolean | getAutoCommit() |
| String | getCatalog() |
| long | getCheckoutTime()
Getter for the time that this connection has been checked out |
| long | getCheckoutTimestamp()
Getter for the timestamp that this connection was checked out |
| int | getConnectionTypeCode()
Getter for the connection type (based on url + user + password) |
| long | getCreatedTimestamp()
Getter for the time that the connection was created |
| int | getHoldability() |
| long | getLastUsedTimestamp()
Getter for the time that the connection was last used |
| DatabaseMetaData | getMetaData() |
| Connection | getProxyConnection()
Getter for the proxy for the connection |
| Connection | getRealConnection()
Getter for the *real* connection that this wraps |
| int | getRealHashCode()
Gets the hashcode of the real connection (or 0 if it is null)
|
| long | getTimeElapsedSinceLastUse()
Getter for the time since this connection was last used |
| int | getTransactionIsolation() |
| Map | getTypeMap() |
| SQLWarning | getWarnings() |
| int | hashCode() |
| void | invalidate()
Invalidates the connection |
| Object | invoke(Object proxy, Method method, Object[] args)
Required for InvocationHandler implementation.
|
| boolean | isClosed() |
| boolean | isReadOnly() |
| boolean | isValid()
Method to see if the connection is usable
|
| String | nativeSQL(String sql) |
| CallableStatement | prepareCall(String sql) |
| CallableStatement | prepareCall(String sql, int resultSetType, int resultSetConcurrency) |
| CallableStatement | prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) |
| PreparedStatement | prepareStatement(String sql) |
| PreparedStatement | prepareStatement(String sql, int resultSetType, int resultSetConcurrency) |
| PreparedStatement | prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) |
| PreparedStatement | prepareStatement(String sql, int autoGeneratedKeys) |
| PreparedStatement | prepareStatement(String sql, int[] columnIndexes) |
| PreparedStatement | prepareStatement(String sql, String[] columnNames) |
| void | releaseSavepoint(Savepoint savepoint) |
| void | rollback() |
| void | rollback(Savepoint savepoint) |
| void | setAutoCommit(boolean autoCommit) |
| void | setCatalog(String catalog) |
| void | setCheckoutTimestamp(long timestamp)
Setter for the timestamp that this connection was checked out |
| void | setConnectionTypeCode(int connectionTypeCode)
Setter for the connection type |
| void | setCreatedTimestamp(long createdTimestamp)
Setter for the time that the connection was created |
| void | setHoldability(int holdability) |
| void | setLastUsedTimestamp(long lastUsedTimestamp)
Setter for the time that the connection was last used |
| void | setReadOnly(boolean readOnly) |
| Savepoint | setSavepoint() |
| Savepoint | setSavepoint(String name) |
| void | setTransactionIsolation(int level) |
| void | setTypeMap(Map map) |
Parameters: connection - the connection that is to be presented as a pooled connection dataSource - the dataSource that the connection is from
Parameters: obj - the other connection to test for equality
See Also: java.lang.Object#equals(java.lang.Object)
Returns: the age
Returns: the time
Returns: the timestamp
Returns: The connection type
Returns: The creation timestamp
Returns: - the timestamp
Returns: The proxy
Returns: The connection
Returns: The hashcode of the real connection (or 0 if it is null)
Returns: - the time since the last use
Parameters: proxy - not used method - the method to be executed args - the parameters to be passed to the method
See Also: java.lang.reflect.InvocationHandler#invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
Returns: True if the connection is usable
Parameters: timestamp the timestamp
Parameters: connectionTypeCode - the connection type
Parameters: createdTimestamp - the timestamp
Parameters: lastUsedTimestamp - the timestamp