org.rimudb.configuration
Class DBCPPoolConfiguration

java.lang.Object
  extended by org.rimudb.configuration.DBCPPoolConfiguration
All Implemented Interfaces:
IConnectablePool, IPoolConfiguration

public class DBCPPoolConfiguration
extends java.lang.Object
implements IPoolConfiguration, IConnectablePool


Field Summary
 
Fields inherited from interface org.rimudb.configuration.IPoolConfiguration
NO_ISOLATION_SPECIFIED, UNDEFINED
 
Constructor Summary
DBCPPoolConfiguration()
           
 
Method Summary
 IPoolConfiguration copy()
          Return a copy of the configuration.
 AutoCommit getDefaultAutoCommit()
           
 TransactionIsolation getDefaultTransactionIsolation()
           
 java.lang.String getJdbcDriver()
           
 java.lang.String getJdbcURL()
           
 int getMaxActive()
           
 int getMaxIdle()
           
 int getMaxWaitSecs()
           
 int getMinEvictableIdleTimeSecs()
           
 int getMinIdle()
           
 java.lang.String getPassword()
           
 boolean getStatementCaching()
           
 int getTimeBetweenEvictionRunsSecs()
          The number of seconds between each run of the connection reaper
 java.lang.String getUserID()
           
 boolean isUseQuotes()
           
 void setDefaultAutoCommit(AutoCommit defaultAutoCommit)
           
 void setDefaultTransactionIsolation(TransactionIsolation defaultTransactionIsolation)
           
 void setJdbcDriver(java.lang.String jdbcDriver)
           
 void setJdbcURL(java.lang.String jdbcURL)
           
 void setMaxActive(int maxActive)
           
 void setMaxIdle(int maxIdle)
           
 void setMaxWaitSecs(int maxWaitSecs)
           
 void setMinEvictableIdleTimeSecs(int minEvictableIdleTimeSecs)
           
 void setMinIdle(int minIdle)
           
 void setPassword(java.lang.String password)
           
 void setStatementCaching(boolean statementCaching)
           
 void setTimeBetweenEvictionRunsSecs(int timeBetweenEvictionRunsSecs)
          The number of seconds between each run of the connection reaper
 void setUseQuotes(boolean useQuotes)
           
 void setUserID(java.lang.String userID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBCPPoolConfiguration

public DBCPPoolConfiguration()
Method Detail

setTimeBetweenEvictionRunsSecs

public void setTimeBetweenEvictionRunsSecs(int timeBetweenEvictionRunsSecs)
The number of seconds between each run of the connection reaper

Parameters:
timeBetweenEvictionRunsSecs - int

getTimeBetweenEvictionRunsSecs

public int getTimeBetweenEvictionRunsSecs()
The number of seconds between each run of the connection reaper

Returns:
int

setMinEvictableIdleTimeSecs

public void setMinEvictableIdleTimeSecs(int minEvictableIdleTimeSecs)
Parameters:
minEvictableIdleTimeSecs - the minEvictableIdleTimeSecs to set

getMinEvictableIdleTimeSecs

public int getMinEvictableIdleTimeSecs()
Returns:
the minEvictableIdleTimeSecs

setMaxIdle

public void setMaxIdle(int maxIdle)
Parameters:
maxIdle - the maxIdle to set

getMaxIdle

public int getMaxIdle()
Returns:
the maxIdle

setMinIdle

public void setMinIdle(int minIdle)
Parameters:
minIdle - the minIdle to set

getMinIdle

public int getMinIdle()
Returns:
the minIdle

setMaxWaitSecs

public void setMaxWaitSecs(int maxWaitSecs)
Parameters:
maxWaitSecs - the maxWaitSecs to set

getMaxWaitSecs

public int getMaxWaitSecs()
Returns:
the maxWaitSecs

copy

public IPoolConfiguration copy()
Return a copy of the configuration.

Specified by:
copy in interface IPoolConfiguration
See Also:
IPoolConfiguration.copy()

setStatementCaching

public void setStatementCaching(boolean statementCaching)
Parameters:
statementCaching -

getStatementCaching

public boolean getStatementCaching()

setMaxActive

public void setMaxActive(int maxActive)

getMaxActive

public int getMaxActive()

setDefaultTransactionIsolation

public void setDefaultTransactionIsolation(TransactionIsolation defaultTransactionIsolation)

getDefaultTransactionIsolation

public TransactionIsolation getDefaultTransactionIsolation()

setDefaultAutoCommit

public void setDefaultAutoCommit(AutoCommit defaultAutoCommit)

getDefaultAutoCommit

public AutoCommit getDefaultAutoCommit()

setUseQuotes

public void setUseQuotes(boolean useQuotes)

isUseQuotes

public boolean isUseQuotes()
Specified by:
isUseQuotes in interface IPoolConfiguration

setJdbcDriver

public void setJdbcDriver(java.lang.String jdbcDriver)

getJdbcDriver

public java.lang.String getJdbcDriver()
Specified by:
getJdbcDriver in interface IConnectablePool

setJdbcURL

public void setJdbcURL(java.lang.String jdbcURL)

getJdbcURL

public java.lang.String getJdbcURL()
Specified by:
getJdbcURL in interface IConnectablePool

setUserID

public void setUserID(java.lang.String userID)

getUserID

public java.lang.String getUserID()
Specified by:
getUserID in interface IConnectablePool

setPassword

public void setPassword(java.lang.String password)

getPassword

public java.lang.String getPassword()
Specified by:
getPassword in interface IConnectablePool


Copyright © 2008-2011 Simon Ritchie. All Rights Reserved.