to.etc.dbpool
Class PoolConfig

java.lang.Object
  extended by to.etc.dbpool.PoolConfig

public final class PoolConfig
extends java.lang.Object

Contains all configurable parameters for a pool that are static after it's configuration.

Author:
Frits Jalvingh Created on Nov 2, 2010

Method Summary
 boolean equals(java.lang.Object b)
          Used to compare two pools if a pool is redefined.
 java.lang.String getCheckSQL()
          If checkConnection is T, this contains the SQL statement to use every time a database connection is reused.
 java.lang.String getDriverClassName()
           
 java.io.File getDriverPath()
           
 int getLongRunningGracePeriod()
          Returns the time, in seconds, that a LONGRUNNING connection is allowed to run past the expiry time.
 int getMaxConns()
           
 int getMinConns()
           
 java.lang.String getPw()
           
 to.etc.dbpool.ScanMode getScanMode()
           
 java.lang.String getUid()
           
 java.lang.String getUrl()
           
 boolean isCheckConnection()
          T if //every// time this connection is used it's validity must be checked by sending a SQL command to it.
 boolean isCollectStatistics()
           
 boolean isIgnoreUnclosed()
           
 boolean isLogAllocation()
           
 boolean isLogAllocationStack()
           
 boolean isLogResultSetLocations()
           
 boolean isLogStatements()
           
 boolean isPrintExceptions()
           
 boolean isSetlog()
           
 boolean isSqlTraceMode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

equals

public boolean equals(java.lang.Object b)
Used to compare two pools if a pool is redefined.

Overrides:
equals in class java.lang.Object

getMaxConns

public int getMaxConns()

getMinConns

public int getMinConns()

getUrl

public java.lang.String getUrl()

getDriverClassName

public java.lang.String getDriverClassName()

getUid

public java.lang.String getUid()

getPw

public java.lang.String getPw()

getDriverPath

public java.io.File getDriverPath()

getCheckSQL

public java.lang.String getCheckSQL()
If checkConnection is T, this contains the SQL statement to use every time a database connection is reused. It must be configured for unknown database types but is defaulted for Oracle, MySQL and PostgreSQL

Returns:

isCheckConnection

public boolean isCheckConnection()
T if //every// time this connection is used it's validity must be checked by sending a SQL command to it.

Returns:

isSetlog

public boolean isSetlog()

isPrintExceptions

public boolean isPrintExceptions()

isLogAllocation

public boolean isLogAllocation()

isLogAllocationStack

public boolean isLogAllocationStack()

isLogStatements

public boolean isLogStatements()

isIgnoreUnclosed

public boolean isIgnoreUnclosed()

isLogResultSetLocations

public boolean isLogResultSetLocations()

isSqlTraceMode

public boolean isSqlTraceMode()

isCollectStatistics

public boolean isCollectStatistics()

getScanMode

public to.etc.dbpool.ScanMode getScanMode()

getLongRunningGracePeriod

public int getLongRunningGracePeriod()
Returns the time, in seconds, that a LONGRUNNING connection is allowed to run past the expiry time. A LONGRUNNING connection is a connection whose allocation time is below the expiry time, but has a lastused time that is more recent than the expiry time.

Returns: