Buglet - buglet.sourceforge.org

org.buglet.bugdb
Class BugPool

java.lang.Object
  |
  +--org.buglet.bugdb.BugPool

public class BugPool
extends java.lang.Object

Database pool object


Field Summary
(package private) static BugEnv env
          database connection pool.
(package private) static org.apache.log4j.Category log
           
 
Constructor Summary
BugPool()
          basic constructor method.
 
Method Summary
 boolean freeHandle(java.sql.Connection con)
          indicate done with connection.
 int getCurrentConnections()
          gets the number of current connections.
 java.sql.Connection getHandle()
          get a free connection.
 java.util.Vector getHandlesInUse()
          returns a vector of booleans indicating whether database handle is in use.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

env

static BugEnv env
database connection pool.

log

static org.apache.log4j.Category log
Constructor Detail

BugPool

public BugPool()
basic constructor method.
Method Detail

getCurrentConnections

public int getCurrentConnections()
gets the number of current connections.

getHandlesInUse

public java.util.Vector getHandlesInUse()
returns a vector of booleans indicating whether database handle is in use.

getHandle

public java.sql.Connection getHandle()
get a free connection.

freeHandle

public boolean freeHandle(java.sql.Connection con)
indicate done with connection.
Parameters:
con -  

Buglet - buglet.sourceforge.org

Copyright © 2001 58k.com Inc. All Rights Reserved