|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.huihoo.jfox.pool.connection.SimplePoolableConnection
wrap a physical connection and make it can put into pool
| Constructor Summary | |
SimplePoolableConnection(java.sql.Connection conn)
|
|
| Method Summary | |
void |
activate()
actvite the object before it be retrived |
void |
close()
|
java.sql.Connection |
getConnection()
get the physical connection |
ObjectPool |
getPool()
Get the pool that this poolableConnection belongs to, so the poolableConnection can be managed by the pool. |
boolean |
isUsing()
|
void |
passivate()
passivate the object before it be restored, set the status to initialized |
void |
reallyClose()
Close the physical connection that this PoolableConnection wrapped. |
void |
setPool(ObjectPool pool)
Set which pool that this PoolableConnection belongs to. |
void |
setUsing(boolean b)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SimplePoolableConnection(java.sql.Connection conn)
| Method Detail |
public ObjectPool getPool()
PoolableConnection
getPool in interface PoolableConnectionpublic void setPool(ObjectPool pool)
PoolableConnection
setPool in interface PoolableConnectionpool - public void reallyClose()
PoolableConnection
reallyClose in interface PoolableConnection
public void activate()
throws java.lang.Exception
PoolableObject
activate in interface PoolableObjectjava.lang.Exception
public void passivate()
throws java.lang.Exception
PoolableObject
passivate in interface PoolableObjectjava.lang.Exceptionpublic void setUsing(boolean b)
setUsing in interface PoolableConnectionpublic boolean isUsing()
isUsing in interface PoolableConnectionpublic java.sql.Connection getConnection()
PoolableConnection
getConnection in interface PoolableConnectionpublic void close()
close in interface PoolableConnection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||