public class StandardConnectionPoolDataSource extends StandardDataSource implements ConnectionPoolDataSource
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PREPAREDSTMTCACHESIZE |
logWriter, password, user| Constructor and Description |
|---|
StandardConnectionPoolDataSource()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Hashtable |
getMasterPrepStmtCache() |
PooledConnection |
getPooledConnection()
Create a pooled connection using the default username and password.
|
PooledConnection |
getPooledConnection(String user,
String password)
Create a standard pooled connection using the supplied username and password.
|
int |
getPreparedStmtCacheSize()
Gets the size of the prepared statement cache
|
void |
setPreparedStmtCacheSize(int value)
Sets the size of the prepared statement cache
|
String |
toString() |
equals, getConnection, getConnection, getDriverName, getObjectInstance, getParentLogger, getReference, getTransactionIsolation, getUrl, hashCode, isWrapperFor, setDriverName, setTransactionIsolation, setUrl, unwrapgetDescription, getLoginTimeout, getLogWriter, getPassword, getThreadFactory, getUser, isDebug, isVerbose, setDebug, setDescription, setLoginTimeout, setLogWriter, setPassword, setThreadFactory, setUser, setVerbose, shutdownclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriterpublic static final int DEFAULT_PREPAREDSTMTCACHESIZE
public StandardConnectionPoolDataSource()
public PooledConnection getPooledConnection() throws SQLException
getPooledConnection in interface ConnectionPoolDataSourceSQLExceptionpublic PooledConnection getPooledConnection(String user, String password) throws SQLException
getPooledConnection in interface ConnectionPoolDataSourceSQLExceptionpublic Hashtable getMasterPrepStmtCache()
public int getPreparedStmtCacheSize()
public void setPreparedStmtCacheSize(int value)
public String toString()
toString in class StandardDataSourceCopyright © 2014–2015. All rights reserved.