public class StandardConnectionPoolDataSource extends StandardDataSource implements javax.sql.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 |
|---|---|
java.util.Hashtable |
getMasterPrepStmtCache() |
java.util.logging.Logger |
getParentLogger() |
javax.sql.PooledConnection |
getPooledConnection()
Create a pooled connection using the default username and password.
|
javax.sql.PooledConnection |
getPooledConnection(java.lang.String user,
java.lang.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
|
java.lang.String |
toString() |
equals, getConnection, getConnection, getDriverName, getObjectInstance, getReference, getTransactionIsolation, getUrl, hashCode, isWrapperFor, setDriverName, setTransactionIsolation, setUrl, unwrapgetDescription, getLoginTimeout, getLogWriter, getPassword, getThreadFactory, getUser, isDebug, isVerbose, setDebug, setDescription, setLoginTimeout, setLogWriter, setPassword, setThreadFactory, setUser, setVerbose, shutdownpublic static final int DEFAULT_PREPAREDSTMTCACHESIZE
public StandardConnectionPoolDataSource()
public javax.sql.PooledConnection getPooledConnection()
throws java.sql.SQLException
getPooledConnection in interface javax.sql.ConnectionPoolDataSourcejava.sql.SQLExceptionpublic javax.sql.PooledConnection getPooledConnection(java.lang.String user,
java.lang.String password)
throws java.sql.SQLException
getPooledConnection in interface javax.sql.ConnectionPoolDataSourcejava.sql.SQLExceptionpublic java.util.Hashtable getMasterPrepStmtCache()
public int getPreparedStmtCacheSize()
public void setPreparedStmtCacheSize(int value)
public java.lang.String toString()
toString in class StandardDataSourcepublic java.util.logging.Logger getParentLogger()
throws java.sql.SQLFeatureNotSupportedException
getParentLogger in interface javax.sql.CommonDataSourcegetParentLogger in class StandardDataSourcejava.sql.SQLFeatureNotSupportedException