Method Summary |
|
public String | getDescription() Get the value of description. |
public String | getDriver() Get the driver classname. |
public PrintWriter | getLogWriter() Get the log writer for this data source. |
public int | getLoginTimeout() Gets the maximum time in seconds that this data source can wait
while attempting to connect to a database. |
public int | getMaxActive() The maximum number of active statements that can be allocated from
this pool at the same time, or non-positive for no limit. |
public int | getMaxIdle() The maximum number of statements that can remain idle in the
pool, without extra ones being released, or negative for no limit. |
public int | getMaxPreparedStatements() Returns the maximun number of prepared statements. |
public int | getMinEvictableIdleTimeMillis() Returns the minimum amount of time a statement may sit idle in the pool
before it is eligible for eviction by the idle object evictor
(if any). |
public int | getNumTestsPerEvictionRun() Returns the number of statements to examine during each run of the
idle object evictor thread (if any). |
public Object | getObjectInstance(Object refObj, Name name, Context context, Hashtable env) |
public String | getPassword() Get the value of password for the default user. |
public PooledConnection | getPooledConnection() Attempt to establish a database connection using the default
user and password. |
public PooledConnection | getPooledConnection(String username, String password) Attempt to establish a database connection. |
public Reference | getReference() Referenceable implementation. |
public int | getTimeBetweenEvictionRunsMillis() Returns the number of milliseconds to sleep between runs of the
idle object evictor thread. |
public String | getUrl() Get the value of url used to locate the database for this datasource. |
public String | getUser() Get the value of default user (login or username). |
public boolean | isPoolPreparedStatements() |
public void | setDescription(String v) Set the value of description. |
public void | setDriver(String v) Set the driver classname. |
public void | setLogWriter(java.io.PrintWriter out) Set the log writer for this data source. |
public void | setLoginTimeout(int seconds) Sets the maximum time in seconds that this data source will wait
while attempting to connect to a database. |
public void | setMaxActive(int maxActive) The maximum number of active statements that can be allocated from
this pool at the same time, or non-positive for no limit. |
public void | setMaxIdle(int maxIdle) The maximum number of statements that can remain idle in the
pool, without extra ones being released, or negative for no limit. |
public void | setMaxPreparedStatements(int maxPreparedStatements) Sets the maximum number of prepared statements. |
public void | setMinEvictableIdleTimeMillis(int minEvictableIdleTimeMillis) Sets the minimum amount of time a statement may sit idle in the pool
before it is eligable for eviction by the idle object evictor
(if any). |
public void | setNumTestsPerEvictionRun(int numTestsPerEvictionRun) Sets the number of statements to examine during each run of the
idle object evictor thread (if any).
When a negative value is supplied, ceil({*link #numIdle})/abs({*link #getNumTestsPerEvictionRun})
tests will be run. |
public void | setPassword(String v) Set the value of password for the default user. |
public void | setPoolPreparedStatements(boolean v) |
public void | setTimeBetweenEvictionRunsMillis(int timeBetweenEvictionRunsMillis) Sets the number of milliseconds to sleep between runs of the
idle object evictor thread. |
public void | setUrl(String v) Set the value of url used to locate the database for this datasource. |
public void | setUser(String v) Set the value of default user (login or username). |