com.bristle.javalib.sql
Class ConnectionPool.ConnectionInfo

java.lang.Object
  extended by com.bristle.javalib.sql.ConnectionPool.ConnectionInfo
Enclosing class:
ConnectionPool

private class ConnectionPool.ConnectionInfo
extends Object

Internal class to store the info about each connection in the pool. It is used as the value stored in m_mapPool.


Field Summary
 boolean blnAvailable
           
 int intHowOftenUsed
           
 long lngLastUsedMilleseconds
           
private  ConnectionPool.DBConfig m_objConfig
           
 
Constructor Summary
ConnectionPool.ConnectionInfo(ConnectionPool.DBConfig objConfig)
          Constructor.
 
Method Summary
 String getDBPassword()
          Get the DB Password.
 String getDBURL()
          Get the DB URL.
 String getDBUsername()
          Get the DB Username.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

blnAvailable

public boolean blnAvailable

intHowOftenUsed

public int intHowOftenUsed

lngLastUsedMilleseconds

public long lngLastUsedMilleseconds

m_objConfig

private ConnectionPool.DBConfig m_objConfig
Constructor Detail

ConnectionPool.ConnectionInfo

public ConnectionPool.ConnectionInfo(ConnectionPool.DBConfig objConfig)
Constructor.

Parameters:
objConfig - Info used to open the connection.
Method Detail

getDBURL

public String getDBURL()
Get the DB URL.

Returns:
The DB URL.

getDBUsername

public String getDBUsername()
Get the DB Username.

Returns:
The DB Username.

getDBPassword

public String getDBPassword()
Get the DB Password.

Returns:
The DB Password.