|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jms.persistence.AbstractConnectionManager
All concrete DBConnectionManager
instances can extend this class.
DBConnectionManager
Constructor Summary | |
AbstractConnectionManager()
|
Method Summary | |
java.lang.String |
getDriver()
Returns the JDBC driver class name |
long |
getEvictionInterval()
Returns the interval between checking idle connections for eviction. |
int |
getMaxActive()
Returns the maximum number of active connections that can be allocated from this pool at the same time. |
int |
getMaxIdle()
Returns the maximum number of connections that can sit idle in the connection pool, before connections are evicted. |
long |
getMinIdleTime()
Returns the minimum time that a connection may remain idle before it may be evicted |
java.lang.String |
getPassword()
Returns the user's password |
boolean |
getTestBeforeUse()
Returns if connections should be tested before use. |
java.lang.String |
getTestQuery()
Returns the SQL query to validate connections. |
java.lang.String |
getURL()
Returns the JDBC URL |
java.lang.String |
getUser()
Returns the user's name |
void |
setDriver(java.lang.String driver)
Sets the JDBC driver class name |
void |
setEvictionInterval(long interval)
Sets the interval between checking idle connections for eviction. |
void |
setMaxActive(int active)
Sets the maximum number of active connections that can be allocated from this pool at the same time, or zero for no limit. |
void |
setMaxIdle(int idle)
Sets the maximum number of connections that can sit idle in the connection pool, before connections are evicted. |
void |
setMinIdleTime(long time)
Sets the minimum time that a connection may remain idle before it may be evicted, or zero for no eviction. |
void |
setPassword(java.lang.String password)
Sets the user's password that is used to access the database |
void |
setTestBeforeUse(boolean test)
Determines if connections should be tested before use. |
void |
setTestQuery(java.lang.String query)
Specifies an SQL query to validate connections. |
void |
setURL(java.lang.String url)
Sets the URL to the database |
void |
setUser(java.lang.String name)
Sets the user name that is used to obtain the connection |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.exolab.jms.persistence.DBConnectionManager |
getConnection, init |
Constructor Detail |
public AbstractConnectionManager()
Method Detail |
public void setUser(java.lang.String name)
setUser
in interface DBConnectionManager
name
- the user namepublic java.lang.String getUser()
public void setPassword(java.lang.String password)
setPassword
in interface DBConnectionManager
password
- the user's passwordpublic java.lang.String getPassword()
public void setDriver(java.lang.String driver)
setDriver
in interface DBConnectionManager
driver
- the JDBC driver class namepublic java.lang.String getDriver()
public void setURL(java.lang.String url)
setURL
in interface DBConnectionManager
url
- the JDBC URLpublic java.lang.String getURL()
public void setMaxActive(int active)
setMaxActive
in interface DBConnectionManager
active
- the maximum number of active connectionspublic int getMaxActive()
public void setMaxIdle(int idle)
setMaxIdle
in interface DBConnectionManager
idle
- the maximum number of idle connectionspublic int getMaxIdle()
public void setMinIdleTime(long time)
setMinIdleTime
in interface DBConnectionManager
time
- the idle time, in secondspublic long getMinIdleTime()
public void setEvictionInterval(long interval)
setMinIdleTime(long)
seconds,
or if {@ link #testQuery} is specified, and the query fails.setEvictionInterval
in interface DBConnectionManager
interval
- the eviction interval, in secondspublic long getEvictionInterval()
public void setTestQuery(java.lang.String query)
setTestQuery
in interface DBConnectionManager
query
- the test querypublic java.lang.String getTestQuery()
public void setTestBeforeUse(boolean test)
setTestBeforeUse
in interface DBConnectionManager
test
- if true
, each connection is tested use.public boolean getTestBeforeUse()
true
if each connection should be tested before
being used.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |