|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
java.lang.Objectcom.ibatis.common.jdbc.SimpleDataSource.SimplePooledConnection
public static class SimpleDataSource.SimplePooledConnection
--------------------------------------------------------------------------------------- SimplePooledConnection ---------------------------------------------------------------------------------------
构造器摘要 | |
---|---|
SimpleDataSource.SimplePooledConnection(java.sql.Connection connection,
SimpleDataSource dataSource)
Constructor for SimplePooledConnection that uses the Connection and SimpleDataSource passed in |
方法摘要 | |
---|---|
void |
clearWarnings()
|
void |
close()
|
void |
commit()
|
java.sql.Statement |
createStatement()
|
java.sql.Statement |
createStatement(int resultSetType,
int resultSetConcurrency)
|
java.sql.Statement |
createStatement(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
|
boolean |
equals(java.lang.Object obj)
Allows comparing this connection to another |
long |
getAge()
Getter for the age of the connection |
boolean |
getAutoCommit()
|
java.lang.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 |
java.sql.DatabaseMetaData |
getMetaData()
|
java.sql.Connection |
getProxyConnection()
Getter for the proxy for the connection |
java.sql.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()
|
java.util.Map |
getTypeMap()
|
java.sql.SQLWarning |
getWarnings()
|
int |
hashCode()
|
void |
invalidate()
Invalidates the connection |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Required for InvocationHandler implementation. |
boolean |
isClosed()
|
boolean |
isReadOnly()
|
boolean |
isValid()
Method to see if the connection is usable |
java.lang.String |
nativeSQL(java.lang.String sql)
|
java.sql.CallableStatement |
prepareCall(java.lang.String sql)
|
java.sql.CallableStatement |
prepareCall(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
|
java.sql.CallableStatement |
prepareCall(java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql)
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int autoGeneratedKeys)
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int[] columnIndexes)
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
java.lang.String[] columnNames)
|
void |
releaseSavepoint(java.sql.Savepoint savepoint)
|
void |
rollback()
|
void |
rollback(java.sql.Savepoint savepoint)
|
void |
setAutoCommit(boolean autoCommit)
|
void |
setCatalog(java.lang.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)
|
java.sql.Savepoint |
setSavepoint()
|
java.sql.Savepoint |
setSavepoint(java.lang.String name)
|
void |
setTransactionIsolation(int level)
|
void |
setTypeMap(java.util.Map map)
|
类方法继承: java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
构造器详细信息 |
---|
public SimpleDataSource.SimplePooledConnection(java.sql.Connection connection, SimpleDataSource dataSource)
connection
- - the connection that is to be presented as a pooled connectiondataSource
- - the dataSource that the connection is from方法详细信息 |
---|
public void invalidate()
public boolean isValid()
public java.sql.Connection getRealConnection()
public java.sql.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 java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- - the other connection to test for equalityObject.equals(java.lang.Object)
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
invoke
in interface java.lang.reflect.InvocationHandler
proxy
- - not usedmethod
- - the method to be executedargs
- - the parameters to be passed to the method
java.lang.Throwable
InvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
public java.sql.Statement createStatement() throws java.sql.SQLException
java.sql.SQLException
public java.sql.PreparedStatement prepareStatement(java.lang.String sql) throws java.sql.SQLException
java.sql.SQLException
public java.sql.CallableStatement prepareCall(java.lang.String sql) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String nativeSQL(java.lang.String sql) throws java.sql.SQLException
java.sql.SQLException
public void setAutoCommit(boolean autoCommit) throws java.sql.SQLException
java.sql.SQLException
public boolean getAutoCommit() throws java.sql.SQLException
java.sql.SQLException
public void commit() throws java.sql.SQLException
java.sql.SQLException
public void rollback() throws java.sql.SQLException
java.sql.SQLException
public void close() throws java.sql.SQLException
java.sql.SQLException
public boolean isClosed() throws java.sql.SQLException
java.sql.SQLException
public java.sql.DatabaseMetaData getMetaData() throws java.sql.SQLException
java.sql.SQLException
public void setReadOnly(boolean readOnly) throws java.sql.SQLException
java.sql.SQLException
public boolean isReadOnly() throws java.sql.SQLException
java.sql.SQLException
public void setCatalog(java.lang.String catalog) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getCatalog() throws java.sql.SQLException
java.sql.SQLException
public void setTransactionIsolation(int level) throws java.sql.SQLException
java.sql.SQLException
public int getTransactionIsolation() throws java.sql.SQLException
java.sql.SQLException
public java.sql.SQLWarning getWarnings() throws java.sql.SQLException
java.sql.SQLException
public void clearWarnings() throws java.sql.SQLException
java.sql.SQLException
public java.sql.Statement createStatement(int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
java.sql.SQLException
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
java.sql.SQLException
public java.sql.CallableStatement prepareCall(java.lang.String sql, int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
java.sql.SQLException
public java.util.Map getTypeMap() throws java.sql.SQLException
java.sql.SQLException
public void setTypeMap(java.util.Map map) throws java.sql.SQLException
java.sql.SQLException
public void setHoldability(int holdability) throws java.sql.SQLException
java.sql.SQLException
public int getHoldability() throws java.sql.SQLException
java.sql.SQLException
public java.sql.Savepoint setSavepoint() throws java.sql.SQLException
java.sql.SQLException
public java.sql.Savepoint setSavepoint(java.lang.String name) throws java.sql.SQLException
java.sql.SQLException
public void rollback(java.sql.Savepoint savepoint) throws java.sql.SQLException
java.sql.SQLException
public void releaseSavepoint(java.sql.Savepoint savepoint) throws java.sql.SQLException
java.sql.SQLException
public java.sql.Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws java.sql.SQLException
java.sql.SQLException
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws java.sql.SQLException
java.sql.SQLException
public java.sql.CallableStatement prepareCall(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws java.sql.SQLException
java.sql.SQLException
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int autoGeneratedKeys) throws java.sql.SQLException
java.sql.SQLException
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int[] columnIndexes) throws java.sql.SQLException
java.sql.SQLException
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, java.lang.String[] columnNames) throws java.sql.SQLException
java.sql.SQLException
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |