|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.optional.pool.PoolObject
net.xoetrope.optional.data.sql.ConnectionObject
public class ConnectionObject
A wrapper for a connection for use by a ConnectionManager
Copyright (c) Xoetrope Ltd. 2001-2003
$Revision: 2.3 $ License: see license.txt
| Constructor Summary | |
|---|---|
ConnectionObject(java.sql.Connection conn,
PoolManager pool)
Constructs a new connection object |
|
| Method Summary | |
|---|---|
void |
close()
Return the connection to the connection manager |
java.sql.Connection |
getConnection()
Get a reference to the Connection. DO NOT RETAIN A REFERENCE TO THE RETURNED OBJECT |
boolean |
validate()
Check to see if a connection can be made and is still in a working state |
| Methods inherited from class net.xoetrope.optional.pool.PoolObject |
|---|
expireLease, getInUse, getLastUse, lease |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionObject(java.sql.Connection conn,
PoolManager pool)
conn - a JDBC connectionpool - the pool manager| Method Detail |
|---|
public boolean validate()
validate in class PoolObject
public void close()
throws java.lang.Exception
close in class PoolObjectjava.lang.Exception - possible exceptions while trying to close the JDBC connection objectpublic java.sql.Connection getConnection()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||