com.softtech.jdbc
Class ConnectionPool.PooledConnection

java.lang.Object
  extended by com.softtech.jdbc.ConnectionPool.PooledConnection
Enclosing class:
ConnectionPool

private class ConnectionPool.PooledConnection
extends java.lang.Object

Pooled connection object

Author:
Jeff S Smith

Field Summary
private  boolean available
          is this connection available
private  java.sql.Connection con
          database connection
 
Constructor Summary
ConnectionPool.PooledConnection(java.sql.Connection con, boolean available)
          Constructor for PooledConnection object
 
Method Summary
(package private)  java.sql.Connection getConnection()
          Get the connection
(package private)  boolean isAvailable()
          Is this connection available
(package private)  void setAvailable(boolean available)
          Set this connection to available
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

con

private java.sql.Connection con
database connection


available

private boolean available
is this connection available

Constructor Detail

ConnectionPool.PooledConnection

ConnectionPool.PooledConnection(java.sql.Connection con,
                                boolean available)
Constructor for PooledConnection object

Parameters:
con - Connection
available - boolean
Method Detail

getConnection

java.sql.Connection getConnection()
Get the connection

Returns:
Connection

isAvailable

boolean isAvailable()
Is this connection available

Returns:
boolean

setAvailable

void setAvailable(boolean available)
Set this connection to available

Parameters:
available - boolean