public class ClientConnectionPoolDataSource extends ClientDataSource implements ConnectionPoolDataSource
| Modifier and Type | Field and Description |
|---|---|
static String |
className__ |
CLEAR_TEXT_PASSWORD_SECURITY, connectionAttributes, ENCRYPTED_PASSWORD_SECURITY, ENCRYPTED_USER_AND_PASSWORD_SECURITY, propertyDefault_portNumber, propertyDefault_retrieveMessageText, propertyDefault_securityMechanism, propertyDefault_serverName, propertyDefault_traceFileAppend, propertyDefault_traceLevel, propertyDefault_user, securityMechanism, SSL_BASIC, SSL_OFF, SSL_PEER_AUTHENTICATION, STRONG_PASSWORD_SUBSTITUTE_SECURITY, TRACE_ALL, TRACE_CONNECTION_CALLS, TRACE_CONNECTS, TRACE_DIAGNOSTICS, TRACE_DRIVER_CONFIGURATION, TRACE_NONE, TRACE_PARAMETER_META_DATA, TRACE_PROTOCOL_FLOWS, TRACE_RESULT_SET_CALLS, TRACE_RESULT_SET_META_DATA, TRACE_STATEMENT_CALLS, TRACE_XA_CALLS, traceLevel, USER_ONLY_SECURITY| Constructor and Description |
|---|
ClientConnectionPoolDataSource() |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxStatements()
Returns the maximum number of JDBC prepared statements a connection is
allowed to cache.
|
PooledConnection |
getPooledConnection() |
PooledConnection |
getPooledConnection(String user,
String password) |
int |
maxStatementsToPool()
Internally used method.
|
void |
setMaxStatements(int maxStatements)
Specifies the maximum size of the statement cache.
|
getConnection, getConnection, getParentLogger, isWrapperFor, unwrapcomputeDncLogWriter, computeDncLogWriterForNewConnection, getClientSSLMode, getConnectionAttributes, getCreateDatabase, getDatabaseName, getDataSourceName, getDescription, getIsODBCDriver, getLoginTimeout, getLogWriter, getPassword, getPassword, getPortNumber, getReference, getRetrieveMessageText, getRetrieveMessageText, getSecurityMechanism, getSecurityMechanism, getSecurityMechanism, getServerName, getShutdownDatabase, getSsl, getSSLModeFromString, getTraceDirectory, getTraceDirectory, getTraceFile, getTraceFile, getTraceFileAppend, getTraceFileAppend, getTraceLevel, getTraceLevel, getUpgradedSecurityMechanism, getUser, getUser, readSystemProperty, setConnectionAttributes, setCreateDatabase, setDatabaseName, setDataSourceName, setDescription, setLoginTimeout, setLogWriter, setPassword, setPassword, setPortNumber, setRetrieveMessageText, setSecurityMechanism, setSecurityMechanism, setServerName, setShutdownDatabase, setSsl, setSsl, setTraceDirectory, setTraceFile, setTraceFileAppend, setTraceLevel, setUser, tokenizeAttributesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriterpublic static final String className__
public PooledConnection getPooledConnection() throws SQLException
getPooledConnection in interface ConnectionPoolDataSourceSQLExceptionpublic PooledConnection getPooledConnection(String user, String password) throws SQLException
getPooledConnection in interface ConnectionPoolDataSourceSQLExceptionpublic void setMaxStatements(int maxStatements)
maxStatements - maximum number of cached statementsIllegalArgumentException - if maxStatements is
negativepublic int getMaxStatements()
0 if
caching is disabled (default).public int maxStatementsToPool()
maxStatementsToPool in class ClientBaseDataSource0 if
caching is disabled (default).ClientBaseDataSource.maxStatementsToPool()Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.