org.bibop.xml.xforge.components.sql
Class ConnectionPool

java.lang.Object
  |
  +--org.bibop.xml.xforge.components.sql.ConnectionPool

class ConnectionPool
extends java.lang.Object


Field Summary
private  java.util.Hashtable connections
           
private  int connectionsCounter
           
private static java.util.Hashtable conPools
           
private  int increment
           
private  java.lang.String password
           
private  java.lang.String url
           
private  java.lang.String user
           
 
Constructor Summary
private ConnectionPool(java.lang.String driver, java.lang.String url, java.lang.String user, java.lang.String password, int initialConnections, int increment)
           
 
Method Summary
 java.sql.Connection getConnection()
           
static ConnectionPool getHandle(java.lang.String driver, java.lang.String url, java.lang.String user, java.lang.String password, int initialConnections, int increment)
           
static java.lang.String getStatus()
           
 void releaseConnection(java.sql.Connection returned)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

increment

private int increment

url

private java.lang.String url

user

private java.lang.String user

password

private java.lang.String password

connections

private java.util.Hashtable connections

connectionsCounter

private int connectionsCounter

conPools

private static java.util.Hashtable conPools
Constructor Detail

ConnectionPool

private ConnectionPool(java.lang.String driver,
                       java.lang.String url,
                       java.lang.String user,
                       java.lang.String password,
                       int initialConnections,
                       int increment)
                throws java.lang.Exception
Method Detail

getConnection

public java.sql.Connection getConnection()
                                  throws java.lang.Exception
java.lang.Exception

releaseConnection

public void releaseConnection(java.sql.Connection returned)

getHandle

public static ConnectionPool getHandle(java.lang.String driver,
                                       java.lang.String url,
                                       java.lang.String user,
                                       java.lang.String password,
                                       int initialConnections,
                                       int increment)
                                throws java.lang.Exception
java.lang.Exception

getStatus

public static java.lang.String getStatus()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright 2003 Bibop Research International. All Rights Reserved.