|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibatis.common.jdbc.SimpleDataSource.SimplePooledConnection
public static class SimpleDataSource.SimplePooledConnection
--------------------------------------------------------------------------------------- SimplePooledConnection ---------------------------------------------------------------------------------------
Constructor Summary | |
---|---|
SimpleDataSource.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 autoGeneratedKeys)
|
PreparedStatement |
prepareStatement(String sql,
int[] columnIndexes)
|
PreparedStatement |
prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency)
|
PreparedStatement |
prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleDataSource.SimplePooledConnection(Connection connection, SimpleDataSource dataSource)
connection
- - the connection that is to be presented as a pooled connectiondataSource
- - the dataSource that the connection is fromMethod Detail |
---|
public void invalidate()
public boolean isValid()
public Connection getRealConnection()
public Connection getProxyConnection()
public int getRealHashCode()
public int getConnectionTypeCode()
public void setConnectionTypeCode(int connectionTypeCode)
connectionTypeCode
- - the connection typepublic long getCreatedTimestamp()
public void setCreatedTimestamp(long createdTimestamp)
createdTimestamp
- - the timestamppublic long getLastUsedTimestamp()
public void setLastUsedTimestamp(long lastUsedTimestamp)
lastUsedTimestamp
- - the timestamppublic long getTimeElapsedSinceLastUse()
public long getAge()
public long getCheckoutTimestamp()
public void setCheckoutTimestamp(long timestamp)
timestamp
- the timestamppublic long getCheckoutTime()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
obj
- - the other connection to test for equalityObject.equals(java.lang.Object)
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
proxy
- - not usedmethod
- - the method to be executedargs
- - the parameters to be passed to the method
Throwable
InvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
public Statement createStatement() throws SQLException
SQLException
public PreparedStatement prepareStatement(String sql) throws SQLException
SQLException
public CallableStatement prepareCall(String sql) throws SQLException
SQLException
public String nativeSQL(String sql) throws SQLException
SQLException
public void setAutoCommit(boolean autoCommit) throws SQLException
SQLException
public boolean getAutoCommit() throws SQLException
SQLException
public void commit() throws SQLException
SQLException
public void rollback() throws SQLException
SQLException
public void close() throws SQLException
SQLException
public boolean isClosed() throws SQLException
SQLException
public DatabaseMetaData getMetaData() throws SQLException
SQLException
public void setReadOnly(boolean readOnly) throws SQLException
SQLException
public boolean isReadOnly() throws SQLException
SQLException
public void setCatalog(String catalog) throws SQLException
SQLException
public String getCatalog() throws SQLException
SQLException
public void setTransactionIsolation(int level) throws SQLException
SQLException
public int getTransactionIsolation() throws SQLException
SQLException
public SQLWarning getWarnings() throws SQLException
SQLException
public void clearWarnings() throws SQLException
SQLException
public Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException
SQLException
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
SQLException
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
SQLException
public Map getTypeMap() throws SQLException
SQLException
public void setTypeMap(Map map) throws SQLException
SQLException
public void setHoldability(int holdability) throws SQLException
SQLException
public int getHoldability() throws SQLException
SQLException
public Savepoint setSavepoint() throws SQLException
SQLException
public Savepoint setSavepoint(String name) throws SQLException
SQLException
public void rollback(Savepoint savepoint) throws SQLException
SQLException
public void releaseSavepoint(Savepoint savepoint) throws SQLException
SQLException
public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
SQLException
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
SQLException
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
SQLException
public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException
SQLException
public PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException
SQLException
public PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |