|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibatis.common.jdbc.SimpleDataSource.SimplePooledConnection
--------------------------------------------------------------------------------------- SimplePooledConnection ---------------------------------------------------------------------------------------
Field Summary | |
private long |
checkoutTimestamp
|
private static java.lang.String |
CLOSE
|
private int |
connectionTypeCode
|
private long |
createdTimestamp
|
private SimpleDataSource |
dataSource
|
private int |
hashCode
|
private static java.lang.Class[] |
IFACES
|
private long |
lastUsedTimestamp
|
private java.sql.Connection |
proxyConnection
|
private java.sql.Connection |
realConnection
|
private boolean |
valid
|
Constructor Summary | |
SimpleDataSource.SimplePooledConnection(java.sql.Connection connection,
SimpleDataSource dataSource)
Constructor for SimplePooledConnection that uses the Connection and SimpleDataSource passed in |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Allows comparing this connection to another |
long |
getAge()
|
long |
getCheckoutTime()
|
long |
getCheckoutTimestamp()
|
int |
getConnectionTypeCode()
|
long |
getCreatedTimestamp()
|
long |
getLastUsedTimestamp()
|
java.sql.Connection |
getProxyConnection()
|
java.sql.Connection |
getRealConnection()
|
int |
getRealHashCode()
Gets the hashcode of the real connection (or 0 if it is null) |
long |
getTimeElapsedSinceLastUse()
|
private java.sql.Connection |
getValidConnection()
|
int |
hashCode()
|
void |
invalidate()
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Required for InvocationHandler inplementaion. |
boolean |
isValid()
Method to see if the connection is usable |
void |
setCheckoutTimestamp(long timestamp)
|
void |
setConnectionTypeCode(int connectionTypeCode)
|
void |
setCreatedTimestamp(long createdTimestamp)
|
void |
setLastUsedTimestamp(long lastUsedTimestamp)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String CLOSE
private static final java.lang.Class[] IFACES
private int hashCode
private SimpleDataSource dataSource
private java.sql.Connection realConnection
private java.sql.Connection proxyConnection
private long checkoutTimestamp
private long createdTimestamp
private long lastUsedTimestamp
private int connectionTypeCode
private boolean valid
Constructor Detail |
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 fromMethod Detail |
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)
public long getCreatedTimestamp()
public void setCreatedTimestamp(long createdTimestamp)
public long getLastUsedTimestamp()
public void setLastUsedTimestamp(long lastUsedTimestamp)
public long getTimeElapsedSinceLastUse()
public long getAge()
public long getCheckoutTimestamp()
public void setCheckoutTimestamp(long timestamp)
public long getCheckoutTime()
private java.sql.Connection getValidConnection()
public int hashCode()
public boolean equals(java.lang.Object obj)
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[])
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |