com.groiss.store
Class DBConnPool

java.lang.Object
  extended by com.groiss.store.DBConnPool
All Implemented Interfaces:
Service

public class DBConnPool
extends java.lang.Object
implements Service

This class maintains a pool of database connections.


Constructor Summary
DBConnPool()
           
 
Method Summary
static boolean doLogDBSessionId()
           
static java.sql.Connection getConnection()
          The method returns a database connection.
static int getConnectionCount()
           
static int getGlobalQueryTimeout()
           
static int getQueryTimeout()
           
 boolean isRunning()
           
 void reconfigure()
           
static void setQueryTimeout(int s)
           
 void shutdown()
           
 void startup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBConnPool

public DBConnPool()
Method Detail

startup

public void startup()
             throws ApplicationException
Specified by:
startup in interface Service
Throws:
ApplicationException

shutdown

public void shutdown()
Specified by:
shutdown in interface Service

isRunning

public boolean isRunning()
Specified by:
isRunning in interface Service

reconfigure

public void reconfigure()
Specified by:
reconfigure in interface Service

getGlobalQueryTimeout

public static int getGlobalQueryTimeout()

getConnection

public static java.sql.Connection getConnection()
The method returns a database connection. Called in the same transaction, the method will always return the same connection.

Returns:
a database connection

getConnectionCount

public static int getConnectionCount()

setQueryTimeout

public static void setQueryTimeout(int s)

getQueryTimeout

public static int getQueryTimeout()

doLogDBSessionId

public static boolean doLogDBSessionId()


Copyright © 2001-2006 Groiss Informatics GmbH. All Rights Reserved.