Subclass of RuntimeException
that can be used to wrap
a SQLException
using the "root cause" pattern of JDK 1.4
exceptions, but without requiring a 1.4 runtime environment.
Construct a new runtime exception with null
as its
detail message.
Construct a new runtime exception with the specified detail message.
Construct a new runtime exception with the specified detail message
and cause.
Construct a new runtime exception with the specified cause and a
detail message of (cause == null ? null : cause.toString())
.
A base delegating implementation of CallableStatement
.
Create a wrapper for the Statement which traces this
Statement to the Connection which created it and the
code which created it.
A base delegating implementation of Connection
.
Create a wrapper for the Connectin which traces this
Connection in the AbandonedObjectPool.
Create a wrapper for the Connection which traces
the Statements created so that any unclosed Statements
can be closed when this Connection is closed.
A base delegating implementation of PreparedStatement
.
Create a wrapper for the Statement which traces this
Statement to the Connection which created it and the
code which created it.
A base delegating implementation of ResultSet
.
Create a wrapper for the ResultSet which traces this
ResultSet to the Statement which created it and the
code which created it.
A base delegating implementation of Statement
.
Create a wrapper for the Statement which traces this
Statement to the Connection which created it and the
code which created it.
My KeyedPoolableObjectFactory
method for destroying
PreparedStatement
s.
Default no-arg constructor for Serialization
Return the root cause of this exception (if any).
Create (if necessary) and return a connection to the database.
Attempt to establish a database connection.
Return a
Connection
from my pool,
according to the contract specified by
ObjectPool.borrowObject
.
Create (if necessary) and return a connection to the database.
Attempt to establish a database connection.
Throws UnsupportedOperationException
Get the value of connectionPoolDataSource.
Returns a Constructor
for the given method signature, or null
if no such Constructor can be found.
Get the name of the ConnectionPoolDataSource which backs this pool.
The maximum number of active connections that can be allocated from
this pool at the same time, or zero for no limit.
The maximum number of active connections that can remain idle in the
pool, without extra ones being released, or zero for no limit.
The maximum number of milliseconds that the pool will wait (when there
are no available connections) for a connection to be returned before
throwing an exception, or -1 to wait indefinitely.
Get the value of defaultTransactionIsolation, which defines the state of
connections handed out from this pool.
Returns my underlying Connection
.
Returns my underlying Statement
.
Get the value of description.
Get the driver classname.
If my underlying Connection
is not a
DelegatingConnection, returns it,
otherwise recursively invokes this method on
my delegate.
If my underlying ResultSet
is not a
DelegatingResultSet, returns it,
otherwise recursively invokes this method on
my delegate.
If my underlying Statement
is not a
DelegatingStatement, returns it,
otherwise recursively invokes this method on
my delegate.
Get the value of jndiEnvironment which is used when instantiating
a jndi InitialContext.
Flag to log stack traces for application code which abandoned
a Statement or Connection.
Flag to log stack traces for application code which abandoned
a Statement or Connection.
Return the login timeout (in seconds) for connecting to the database.
Gets the maximum time in seconds that this data source can wait
while attempting to connect to a database.
Get the value of loginTimeout.
Throws UnsupportedOperationException
.
Return the log writer being used by this data source.
Get the log writer for this data source.
Get the value of logWriter.
The maximum number of active statements that can be allocated from
this pool at the same time, or zero for no limit.
The maximum number of active connections that can be allocated from
this pool at the same time, or zero for no limit.
The maximum number of statements that can remain idle in the
pool, without extra ones being released, or zero for no limit.
The maximum number of active connections that can remain idle in the
pool, without extra ones being released, or zero for no limit.
The maximum number of milliseconds that the pool will wait (when there
are no available connections) for a connection to be returned before
throwing an exception, or -1 to wait indefinitely.
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).
Returns the minimum amount of time an object may sit idle in the pool
before it is eligable for eviction by the idle object evictor
(if any).
[Read Only] The current number of active connections that have been
allocated from this data source.
Get the number of active connections in the default pool.
Get the number of active connections in the pool.
Get the number of active connections in the pool for a given user.
[Read Only] The current number of idle connections that are waiting
to be allocated from this data source.
Get the number of idle connections in the default pool.
Get the number of idle connections in the pool.
Get the number of idle connections in the pool for a given user.
Returns the number of statements to examine during each run of the
idle object evictor thread (if any).
Returns the number of objects to examine during each run of the
idle object evictor thread (if any).
Create and return a new BasicDataSource
instance.
implements ObjectFactory to create an instance of this class
Get the value of password for the default user.
The keys are usernames and the value is the --.
The keys are usernames and the value is the --.
The isolation level of connections when returned from getConnection.
The maximum number of active connections that can be allocated from
this pool at the same time, or zero for no limit.
The maximum number of active connections that can remain idle in the
pool, without extra ones being released, or zero for no limit.
The maximum number of milliseconds that the pool will wait (when there
are no available connections) for a connection to be returned before
throwing an exception, or -1 to wait indefinitely.
WARNING: This method throws DbcpExceptions (RuntimeExceptions)
and will be replaced by the protected getConnectionPool method.
Attempt to establish a database connection using the default
user and password.
Attempt to establish a database connection.
Referenceable
implementation.
Referenceable
implementation prepares object for
binding in jndi.
Flag to remove abandoned connections if they exceed the
removeAbandonedTimeout.
Flag to remove abandoned connections if they exceed the
removeAbandonedTimout.
Timeout in seconds before an abandoned connection can be removed.
Timeout in seconds before an abandoned connection can be removed.
When true, objects will be
{*link PoolableObjectFactory#validateObject validated}
before being returned by the {*link #borrowObject}
method.
When true, objects will be
{*link PoolableObjectFactory#validateObject validated}
before being returned to the pool within the
{*link #returnObject}.
When true, objects will be
{*link PoolableObjectFactory#validateObject validated}
by the idle object evictor (if any).
Returns the number of milliseconds to sleep between runs of the
idle object evictor thread.
Returns the number of milliseconds to sleep between runs of the
idle object evictor thread.
Returns the type of the object at the specified index.
Returns a shallow copy of my list of types.
Get the value of url used to locate the database for this datasource.
Get the value of default user (login or username).
The SQL query that will be used to validate connections from this pool
before returning them to the caller.
Returns the value of the object at the specified index.
Returns a shallow copy of my list of values.
Parses a JOCL document from the specified file, using the
XMLReader
specified by the org.xml.sax.driver
property.
Parses a JOCL document from the specified file, using the
XMLReader
specified by the org.xml.sax.driver
property.
Parses a JOCL document from the specified InputSource
, using thethe
XMLReader
specified by the org.xml.sax.driver
property.
Parses a JOCL document from the specified InputSource
, using the
specified XMLReader
.
Parses a JOCL document from the specified InputStream
, using the
XMLReader
specified by the org.xml.sax.driver
property.
Parses a JOCL document from the specified InputStream
, using the specified
XMLReader
.
Parses a JOCL document from the specified Reader
, using the
XMLReader
specified by the org.xml.sax.driver
property.
Parses a JOCL document from the specified Reader
, using the specified
XMLReader
.
My KeyedPoolableObjectFactory
method for passivating
PreparedStatement
s.
A pooling DataSource
appropriate for deployment within
J2EE environment.
Default no-arg constructor for Serialization
A JNDI ObjectFactory which creates SharedPoolDataSource
s
A delegating connection that, rather than closing the underlying
connection, returns itself to an ObjectPool
when
closed.
Create a new PoolableConnectionFactory.
Create a new PoolableConnectionFactory.
Create a new PoolableConnectionFactory.
Create a new PoolableConnectionFactory.
Create a new PoolableConnectionFactory.
A simple DataSource
implementation that obtains
Connection
s from the specified ObjectPool
.
A Driver
implementation that obtains
Connection
s from a registered
ObjectPool
.
Create or obtain a PreparedStatement
from my pool.
Create or obtain a PreparedStatement
from my pool.
If logAbandoned=true, print a stack trace of the code that
created this object.
Sets the value of the accessToUnderlyingConnectionAllowed property.
Sets the value of the accessToUnderlyingConnectionAllowed property.
Sets the value of the accessToUnderlyingConnectionAllowed property.
Set the backend ConnectionPoolDataSource.
Set the name of the ConnectionPoolDataSource which backs this pool.
Set the value of defaultAutoCommit, which defines the state of
connections handed out from this pool.
Sets the default "auto commit" setting for borrowed Connection
s
Sets the default "catalog" setting for borrowed Connection
s
The maximum number of active connections that can be allocated from
this pool at the same time, or zero for no limit.
The maximum number of active connections that can remain idle in the
pool, without extra ones being released, or zero for no limit.
The maximum number of milliseconds that the pool will wait (when there
are no available connections) for a connection to be returned before
throwing an exception, or -1 to wait indefinitely.
Set the value of defaultReadOnly, which defines the state of
connections handed out from this pool.
Sets the default "read only" setting for borrowed Connection
s
Set the value of defaultTransactionIsolation, which defines the state of
connections handed out from this pool.
Sets the default "Transaction Isolation" setting for borrowed Connection
s
Set the value of description.
Set the driver classname.
Set the value of jndiEnvironment which is used when instantiating
a jndi InitialContext.
Flag to log stack traces for application code which abandoned
a Statement or Connection.
Set the login timeout (in seconds) for connecting to the database.
Sets the maximum time in seconds that this data source will wait
while attempting to connect to a database.
Set the value of loginTimeout.
Throws UnsupportedOperationException
.
Set the log writer for this data source.
Set the log writer being used by this data source.
Set the value of logWriter.
The maximum number of active statements that can be allocated from
this pool at the same time, or zero for no limit.
The maximum number of active connections that can be allocated from
this pool at the same time, or zero for no limit.
The maximum number of statements that can remain idle in the
pool, without extra ones being released, or zero for no limit.
The maximum number of active connections that can remain idle in the
pool, without extra ones being released, or zero for no limit.
The maximum number of milliseconds that the pool will wait (when there
are no available connections) for a connection to be returned before
throwing an exception, or -1 to wait indefinitely.
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).
Sets the minimum amount of time an object may sit idle in the pool
before it is eligable for eviction by the idle object evictor
(if any).
Sets the number of statements to examine during each run of the
idle object evictor thread (if any).
Sets the number of objects to examine during each run of the
idle object evictor thread (if any).
Set the value of password for the default user.
The keys are usernames and the value is the --.
The keys are usernames and the value is the --.
The isolation level of connections when returned from getConnection.
The maximum number of active connections that can be allocated from
this pool at the same time, or zero for no limit.
The maximum number of active connections that can remain idle in the
pool, without extra ones being released, or zero for no limit.
The maximum number of milliseconds that the pool will wait (when there
are no available connections) for a connection to be returned before
throwing an exception, or -1 to wait indefinitely.
Sets the ObjectPool
in which to pool Connection
s.
Sets whether to pool statements or not.
Flag to toggle the pooling of PreparedStatement
s
Flag to remove abandoned connections if they exceed the
removeAbandonedTimeout.
Timeout in seconds before an abandoned connection can be removed.
Sets the
KeyedObjectPoolFactory
I use to create
KeyedObjectPool
s
for pooling
PreparedStatement
s.
When true, objects will be
{*link PoolableObjectFactory#validateObject validated}
before being returned by the {*link #borrowObject}
method.
When true, objects will be
{*link PoolableObjectFactory#validateObject validated}
before being returned to the pool within the
{*link #returnObject}.
When true, objects will be
{*link PoolableObjectFactory#validateObject validated}
by the idle object evictor (if any).
Sets the number of milliseconds to sleep between runs of the
idle object evictor thread.
Sets the number of milliseconds to sleep between runs of the
idle object evictor thread.
Set the value of url used to locate the database for this datasource.
Set the value of default user (login or username).
The SQL query that will be used to validate connections from this pool
before returning them to the caller.
Sets the query I use to
validate
Connection
s.
A pooling DataSource
appropriate for deployment within
J2EE environment.
Default no-arg constructor for Serialization
A JNDI ObjectFactory which creates SharedPoolDataSource
s
Returns the number of values and types in my list.
A SQLException subclass containing another Throwable
Constructs a new SQLNestedException
with specified
detail message and nested Throwable
.