| Modifier and Type | Field and Description |
|---|---|
| pack-priv transient boolean | |
| pack-priv static final MLogger | |
| pack-priv static final String | |
| pack-priv transient C3P0PooledConnectionPoolManager | |
| private static final long | |
| private static final short |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private C3P0PooledConnectionPool | |
| private synchronized ConnectionPoolDataSource | |
| public void | close()
Implements com. C3P0 pooled DataSources use no resources before they are actually used in a VM, and they close themselves in their finalize() method. |
| public void | close(boolean force_destroy)
Implements com.
Deprecated
the force_destroy argument is now meaningless, as pools are no longer
potentially shared between multiple DataSources.
Should be used only with great caution. |
| public Collection | |
| public Connection | getConnection()
Implements javax. Attempts to establish a connection with the data source that
this |
| public Connection | getConnection(String
the database user on whose behalf the connection is
being made username, String the user's password password)Implements javax. Attempts to establish a connection with the data source that
this |
| public String | |
| public float | getEffectivePropertyCycle(String username, String password)
Implements com.
|
| public float | |
| public Throwable | getLastAcquisitionFailure(String username, String password)
Implements com.
|
| public Throwable | |
| public Throwable | getLastCheckinFailure(String username, String password)
Implements com.
|
| public Throwable | |
| public Throwable | getLastCheckoutFailure(String username, String password)
Implements com.
|
| public Throwable | |
| public Throwable | getLastConnectionTestFailure(String username, String password)
Implements com.
|
| public Throwable | |
| public Throwable | getLastIdleTestFailure(String username, String password)
Implements com.
|
| public Throwable | |
| public int | getLoginTimeout()
Implements javax. Gets the maximum time in seconds that this data source can wait while attempting to connect to a database. |
| public PrintWriter | getLogWriter()
Implements javax. Retrieves the log writer for this |
| public int | |
| public int | getNumBusyConnections(String username, String password)
Implements com.
|
| public int | |
| public int | |
| public int | |
| public int | getNumConnections(String username, String password)
Implements com.
|
| public int | |
| public int | |
| public long | |
| public long | |
| public long | |
| public long | |
| public long | |
| public long | |
| public int | |
| public int | getNumIdleConnections(String username, String password)
Implements com.
|
| public int | |
| public int | |
| public int | getNumThreadsAwaitingCheckout(String username, String password)
Implements com.
|
| public int | |
| public int | |
| public int | getNumUnclosedOrphanedConnections(String username, String password)
Implements com.
|
| public int | |
| public int | |
| public int | |
| private synchronized C3P0PooledConnectionPoolManager | |
| public long | |
| public long | |
| public int | getStatementCacheNumCheckedOut(String username, String password)
Implements com.
|
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | getStatementCacheNumStatements(String username, String password)
Implements com.
|
| public int | |
| public int | |
| public int | |
| public int | getStatementDestroyerNumConnectionsInUse(String username, String password)
Implements com.
|
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public long | |
| public long | |
| public synchronized void | hardReset()
Implements com. Destroys all pooled and checked-out Connections associated with this DataSource immediately. |
| protected void | |
| public boolean | isWrapperFor(Class<?>
a Class defining an interface. iface)Implements java. Returns true if this either implements the interface argument or is directly or indirectly a wrapper for an object that does. |
| protected final boolean | |
| private void | |
| public synchronized void | |
| public synchronized void | |
| public String | sampleLastAcquisitionFailureStackTrace(String username, String password)
Implements com.
|
| public String | |
| public String | sampleLastCheckinFailureStackTrace(String username, String password)
Implements com.
|
| public String | |
| public String | sampleLastCheckoutFailureStackTrace(String username, String password)
Implements com.
|
| public String | |
| public String | sampleLastConnectionTestFailureStackTrace(String username, String password)
Implements com.
|
| public String | |
| public String | sampleLastIdleTestFailureStackTrace(String username, String password)
Implements com.
|
| public String | |
| public String | sampleStatementCacheStatus(String username, String password)
Implements com.
|
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public void | setLoginTimeout(int
the data source login time limit seconds)Implements javax. Sets the maximum time in seconds that this data source will wait while attempting to connect to a database. |
| public void | setLogWriter(PrintWriter
the new log writer; to disable logging, set to null out)Implements javax. Sets the log writer for this |
| private void | |
| public void | softReset(String username, String password)
Implements com. Discards all Connections managed by the PooledDataSource with the specified authentication credentials and reacquires new Connections to populate. |
| public void | softResetAllUsers()
Implements com. Discards all Connections managed by the PooledDataSource and reacquires new Connections to populate. |
| public void | softResetDefaultUser()
Implements com. Discards all Connections managed by the PooledDataSource's default-authentication pool and reacquires new Connections to populate. |
| public abstract String | |
| public <T> T | unwrap(Class<T>
A Class defining an interface that the result must implement. iface)Implements java. Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy. |
| private void |