cc.glsn.v15
Class DBConnMgr

java.lang.Object
  extended by cc.glsn.v15.DBConnMgr

public class DBConnMgr
extends Object

Manages a group of SQL connections and gives them out to threads who ask


Field Summary
static int SQLMaxOpenTries
           
 
Constructor Summary
DBConnMgr(int maxConn, String driver, String url, String username, String password)
           
 
Method Summary
 void close()
           
 SQLConnection getConn()
           
 void relConn(SQLConnection S)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SQLMaxOpenTries

public static final int SQLMaxOpenTries
See Also:
Constant Field Values
Constructor Detail

DBConnMgr

public DBConnMgr(int maxConn,
                 String driver,
                 String url,
                 String username,
                 String password)
Parameters:
maxConn -
driver -
url -
username -
password -
Method Detail

getConn

public SQLConnection getConn()
                      throws SQLException
Throws:
SQLException

relConn

public void relConn(SQLConnection S)
             throws SQLException
Throws:
SQLException

close

public void close()
           throws SQLException
Throws:
SQLException