org.apache.derby.jdbc
Interface ClientConnectionPoolDataSourceInterface

All Superinterfaces:
ClientDataSourceInterface, javax.sql.CommonDataSource, javax.sql.ConnectionPoolDataSource, javax.sql.DataSource, java.sql.Wrapper
All Known Implementing Classes:
BasicClientConnectionPoolDataSource40, ClientConnectionPoolDataSource, ClientConnectionPoolDataSource40

public interface ClientConnectionPoolDataSourceInterface
extends ClientDataSourceInterface, javax.sql.ConnectionPoolDataSource

Specifies Derby extensions to the java.sqlx.ConnectionPoolDataSource.


Field Summary
 
Fields inherited from interface org.apache.derby.jdbc.ClientDataSourceInterface
CLEAR_TEXT_PASSWORD_SECURITY, ENCRYPTED_PASSWORD_SECURITY, ENCRYPTED_USER_AND_PASSWORD_SECURITY, propertyDefault_portNumber, propertyDefault_retrieveMessageText, propertyDefault_securityMechanism, propertyDefault_serverName, propertyDefault_traceFileAppend, propertyDefault_traceLevel, propertyDefault_user, 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, USER_ONLY_SECURITY
 
Method Summary
 int getMaxStatements()
          Returns the maximum number of JDBC prepared statements a connection is allowed to cache.
 void setMaxStatements(int maxStatements)
          Specifies the maximum size of the statement cache.
 
Methods inherited from interface org.apache.derby.jdbc.ClientDataSourceInterface
getConnectionAttributes, getCreateDatabase, getDatabaseName, getDataSourceName, getDescription, getPassword, getPortNumber, getRetrieveMessageText, getSecurityMechanism, getSecurityMechanism, getServerName, getShutdownDatabase, getSsl, getTraceDirectory, getTraceFile, getTraceFileAppend, getTraceLevel, getUser, setConnectionAttributes, setCreateDatabase, setDatabaseName, setDataSourceName, setDescription, setPassword, setPortNumber, setRetrieveMessageText, setSecurityMechanism, setServerName, setShutdownDatabase, setSsl, setTraceDirectory, setTraceFile, setTraceFileAppend, setTraceLevel, setUser
 
Methods inherited from interface javax.sql.DataSource
getConnection, getConnection
 
Methods inherited from interface javax.sql.CommonDataSource
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
 
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
 
Methods inherited from interface javax.sql.ConnectionPoolDataSource
getPooledConnection, getPooledConnection
 

Method Detail

getMaxStatements

int getMaxStatements()
Returns the maximum number of JDBC prepared statements a connection is allowed to cache.

Returns:
Maximum number of statements to cache, or 0 if caching is disabled (default).

setMaxStatements

void setMaxStatements(int maxStatements)
Specifies the maximum size of the statement cache.

Parameters:
maxStatements - maximum number of cached statements
Throws:
java.lang.IllegalArgumentException - if maxStatements is negative

Built on Wed 2013-06-12 15:21:56+0000, from revision ???

Apache Derby V10.10 Internals - Copyright © 2004,2013 The Apache Software Foundation. All Rights Reserved.