com.groiss.store
Class DBConnPool
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DBConnPool
public DBConnPool()
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.