Top Description Fields Methods
org.apache.derby.client

public Interface ClientConnectionPoolDataSourceInterface

extends ClientDataSourceInterface, ConnectionPoolDataSource
Imports
javax.sql.ConnectionPoolDataSource

Specifies Derby extensions to the java.sqlx.ConnectionPoolDataSource.

Field Summary

Inherited from org.apache.derby.client.ClientDataSourceInterface:
CLEAR_TEXT_PASSWORD_SECURITYENCRYPTED_PASSWORD_SECURITYENCRYPTED_USER_AND_PASSWORD_SECURITYpropertyDefault_portNumberpropertyDefault_retrieveMessageTextpropertyDefault_securityMechanismpropertyDefault_serverNamepropertyDefault_traceFileAppendpropertyDefault_userSTRONG_PASSWORD_SUBSTITUTE_SECURITYUSER_ONLY_SECURITY

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

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

Returns the maximum number of JDBC prepared statements a connection is allowed to cache.

public void
setMaxStatements(int
maximum number of cached statements
maxStatements
)

Specifies the maximum size of the statement cache.

Inherited from javax.sql.ConnectionPoolDataSource:
createPooledConnectionBuildergetLoginTimeoutgetLogWritergetPooledConnectiongetPooledConnectionsetLoginTimeoutsetLogWriter
Inherited from org.apache.derby.client.ClientDataSourceInterface:
getConnectionAttributesgetCreateDatabasegetDatabaseNamegetDataSourceNamegetDescriptiongetPasswordgetPortNumbergetRetrieveMessageTextgetSecurityMechanismgetSecurityMechanismgetServerNamegetShutdownDatabasegetSslgetTraceDirectorygetTraceFilegetTraceFileAppendgetTraceLevelgetUsersetConnectionAttributessetCreateDatabasesetDatabaseNamesetDataSourceNamesetDescriptionsetPasswordsetPortNumbersetRetrieveMessageTextsetSecurityMechanismsetServerNamesetShutdownDatabasesetSslsetTraceDirectorysetTraceFilesetTraceFileAppendsetTraceLevelsetUser

Method Detail

getMaxStatementsback to summary
public int getMaxStatements()

Returns the maximum number of JDBC prepared statements a connection is allowed to cache.

Returns:int

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

setMaxStatementsback to summary
public void setMaxStatements(int maxStatements)

Specifies the maximum size of the statement cache.

Parameters
maxStatements:int

maximum number of cached statements

Exceptions
IllegalArgumentException:
if maxStatements is negative