A B C D E F G H I J L M N O P Q R S T U V W

A

AbstractConnectionHook - Class in com.jolbox.bonecp.hooks
A no-op implementation of the ConnectionHook interface.
AbstractConnectionHook() - Constructor for class com.jolbox.bonecp.hooks.AbstractConnectionHook
 
AcquireFailConfig - Class in com.jolbox.bonecp.hooks
Parameter class passed to onAcquireFail hook.
AcquireFailConfig() - Constructor for class com.jolbox.bonecp.hooks.AcquireFailConfig
 
add(E) - Method in class jsr166y.LinkedTransferQueue
Inserts the specified element at the tail of this queue.
addBatch() - Method in class com.jolbox.bonecp.PreparedStatementHandle
addBatch(String) - Method in class com.jolbox.bonecp.StatementHandle
addCumulativeConnectionWaitTime(long) - Method in class com.jolbox.bonecp.Statistics
Adds connection wait time.
addFreeConnection(ConnectionHandle) - Method in class com.jolbox.bonecp.ConnectionPartition
Adds a free connection.
addStatementExecuteTime(long) - Method in class com.jolbox.bonecp.Statistics
Accessor method
addStatementPrepareTime(long) - Method in class com.jolbox.bonecp.Statistics
Accessor method

B

batchSQL - Variable in class com.jolbox.bonecp.StatementHandle
for logging of addBatch.
BoneCP - Class in com.jolbox.bonecp
Connection pool (main class).
BoneCP(BoneCPConfig) - Constructor for class com.jolbox.bonecp.BoneCP
Constructor.
BoneCPConfig - Class in com.jolbox.bonecp
Configuration class.
BoneCPConfig() - Constructor for class com.jolbox.bonecp.BoneCPConfig
Default constructor.
BoneCPConfig(Properties) - Constructor for class com.jolbox.bonecp.BoneCPConfig
Creates a new config using the given properties.
BoneCPConfig(String) - Constructor for class com.jolbox.bonecp.BoneCPConfig
Initialize the configuration by loading bonecp-config.xml containing the settings.
BoneCPConfig(InputStream, String) - Constructor for class com.jolbox.bonecp.BoneCPConfig
Initialise the configuration by loading an XML file containing the settings.
BoneCPConfigMBean - Interface in com.jolbox.bonecp
MBean interface for config.
BoneCPDataSource - Class in com.jolbox.bonecp
DataSource for use with LazyConnection Provider etc.
BoneCPDataSource() - Constructor for class com.jolbox.bonecp.BoneCPDataSource
Default empty constructor.
BoneCPDataSource(BoneCPConfig) - Constructor for class com.jolbox.bonecp.BoneCPDataSource
 
BoundedLinkedTransferQueue<E> - Class in com.jolbox.bonecp
A bounded version of linkedTransferQueue.
BoundedLinkedTransferQueue(int) - Constructor for class com.jolbox.bonecp.BoundedLinkedTransferQueue
Constructor.

C

cache - Variable in class com.jolbox.bonecp.StatementHandle
Cache pertaining to this statement.
calculateCacheKey(String, String[]) - Method in interface com.jolbox.bonecp.IStatementCache
Calculates a cache key.
calculateCacheKey(String, int[]) - Method in interface com.jolbox.bonecp.IStatementCache
Returns a cache key.
calculateCacheKey(String, int) - Method in interface com.jolbox.bonecp.IStatementCache
Returns a cache key.
calculateCacheKey(String, int, int) - Method in interface com.jolbox.bonecp.IStatementCache
Returns a cache key.
calculateCacheKey(String, int, int, int) - Method in interface com.jolbox.bonecp.IStatementCache
Returns a cache key.
calculateCacheKey(String, int, int, int) - Method in class com.jolbox.bonecp.StatementCache
Simply appends the given parameters and returns it to obtain a cache key
calculateCacheKey(String, int, int) - Method in class com.jolbox.bonecp.StatementCache
Cache key calculation.
calculateCacheKey(String, int) - Method in class com.jolbox.bonecp.StatementCache
Alternate version of autoGeneratedKeys.
calculateCacheKey(String, int[]) - Method in class com.jolbox.bonecp.StatementCache
Calculate a cache key.
calculateCacheKey(String, String[]) - Method in class com.jolbox.bonecp.StatementCache
Calculate a cache key.
CallableStatementHandle - Class in com.jolbox.bonecp
Wrapper around CallableStatement.
CallableStatementHandle(CallableStatement, String, ConnectionHandle, String, IStatementCache) - Constructor for class com.jolbox.bonecp.CallableStatementHandle
CallableStatement constructor
CallableStatementProxy - Interface in com.jolbox.bonecp.proxy
Just a way to get our proxy to work with driver-specific types.
cancel() - Method in class com.jolbox.bonecp.StatementHandle
captureStackTrace(String) - Method in class com.jolbox.bonecp.BoneCP
Throw an exception to capture it so as to be able to print it out later on
checkClosed() - Method in class com.jolbox.bonecp.StatementHandle
Checks if the connection is marked as being logically open and throws an exception if not.
checkForProperClosure() - Method in interface com.jolbox.bonecp.IStatementCache
Checks that the entries in the cache have been properly closed when the connection dies down.
checkForProperClosure() - Method in class com.jolbox.bonecp.StatementCache
 
clear() - Method in interface com.jolbox.bonecp.IStatementCache
Clears the cache
clear() - Method in class com.jolbox.bonecp.StatementCache
Clears the cache
clearBatch() - Method in class com.jolbox.bonecp.StatementHandle
clearCache() - Method in class com.jolbox.bonecp.StatementHandle
Clears out the cache of statements.
clearParameters() - Method in class com.jolbox.bonecp.PreparedStatementHandle
clearStatementCaches(boolean) - Method in class com.jolbox.bonecp.ConnectionHandle
Clears out the statement handles.
clearWarnings() - Method in class com.jolbox.bonecp.ConnectionHandle
 
clearWarnings() - Method in class com.jolbox.bonecp.StatementHandle
clone() - Method in class com.jolbox.bonecp.BoneCPConfig
 
close() - Method in class com.jolbox.bonecp.BoneCP
Just a synonym to shutdown.
close() - Method in class com.jolbox.bonecp.BoneCPDataSource
Close the datasource.
close() - Method in class com.jolbox.bonecp.ConnectionHandle
Release the connection if called.
close() - Method in class com.jolbox.bonecp.StatementHandle
 
closeConnection(ConnectionHandle) - Method in class com.jolbox.bonecp.ConnectionMaxAgeThread
Closes off this connection
closeConnectionWatch - Variable in class com.jolbox.bonecp.BoneCP
If set to true, create a new thread that monitors a connection and displays warnings if application failed to close the connection.
closeStatement() - Method in class com.jolbox.bonecp.StatementHandle
Closes off the statement
CloseThreadMonitor - Class in com.jolbox.bonecp
Thread that monitors another thread and displays stack trace if getConnection() was called without the corresponding close().
CloseThreadMonitor(Thread, ConnectionHandle, String, long) - Constructor for class com.jolbox.bonecp.CloseThreadMonitor
 
com.jolbox.bonecp - package com.jolbox.bonecp
The core package for the BoneCP connection pool.
com.jolbox.bonecp.hooks - package com.jolbox.bonecp.hooks
Support for event notification on a connection state.
com.jolbox.bonecp.proxy - package com.jolbox.bonecp.proxy
For internal use only.
commit() - Method in class com.jolbox.bonecp.ConnectionHandle
 
ConnectionHandle - Class in com.jolbox.bonecp
Connection handle wrapper around a JDBC connection.
ConnectionHandle(String, String, String, BoneCP) - Constructor for class com.jolbox.bonecp.ConnectionHandle
Connection wrapper constructor
ConnectionHandle(Connection, IStatementCache, IStatementCache, BoneCP) - Constructor for class com.jolbox.bonecp.ConnectionHandle
Private constructor used solely for unit testing.
connectionHandle - Variable in class com.jolbox.bonecp.StatementHandle
Handle to the connection holding this statement.
ConnectionHook - Interface in com.jolbox.bonecp.hooks
Interface to the hooking mechanism of a connection lifecycle.
connectionHook - Variable in class com.jolbox.bonecp.StatementHandle
Config setting.
ConnectionMaxAgeThread - Class in com.jolbox.bonecp
Periodically checks for connections to see if the connection has expired.
ConnectionMaxAgeThread(ConnectionPartition, ScheduledExecutorService, BoneCP, long, boolean) - Constructor for class com.jolbox.bonecp.ConnectionMaxAgeThread
Constructor
ConnectionPartition - Class in com.jolbox.bonecp
Connection Partition structure
ConnectionPartition(BoneCP) - Constructor for class com.jolbox.bonecp.ConnectionPartition
Partition constructor
ConnectionProxy - Interface in com.jolbox.bonecp.proxy
Just a way to get our proxy to work with driver-specific types.
ConnectionReleaseHelperThread - Class in com.jolbox.bonecp
A thread that monitors a queue containing connections to be released and moves those connections to the partition queue.
ConnectionReleaseHelperThread(BlockingQueue<ConnectionHandle>, BoneCP) - Constructor for class com.jolbox.bonecp.ConnectionReleaseHelperThread
Helper Thread constructor.
ConnectionState - Enum in com.jolbox.bonecp.hooks
An enum to indicate the state of a connection to be used as a signal via the onMarkPossiblyBroken hook.
ConnectionTesterThread - Class in com.jolbox.bonecp
Periodically sends a keep-alive statement to idle threads and kills off any connections that have been unused for a long time (or broken).
ConnectionTesterThread(ConnectionPartition, ScheduledExecutorService, BoneCP, long, long, boolean) - Constructor for class com.jolbox.bonecp.ConnectionTesterThread
Constructor
createArrayOf(String, Object[]) - Method in class com.jolbox.bonecp.ConnectionHandle
 
createBlob() - Method in class com.jolbox.bonecp.ConnectionHandle
 
createClob() - Method in class com.jolbox.bonecp.ConnectionHandle
 
createNClob() - Method in class com.jolbox.bonecp.ConnectionHandle
 
createSQLXML() - Method in class com.jolbox.bonecp.ConnectionHandle
 
createStatement() - Method in class com.jolbox.bonecp.ConnectionHandle
 
createStatement(int, int) - Method in class com.jolbox.bonecp.ConnectionHandle
 
createStatement(int, int, int) - Method in class com.jolbox.bonecp.ConnectionHandle
 
createStruct(String, Object[]) - Method in class com.jolbox.bonecp.ConnectionHandle
 
current() - Static method in class jsr166y.ThreadLocalRandom
Returns the current thread's ThreadLocalRandom.
CustomThreadFactory - Class in com.jolbox.bonecp
Helper class just for executor service to provide a fancier name for debugging + catch for thread exceptions.
CustomThreadFactory(String, boolean) - Constructor for class com.jolbox.bonecp.CustomThreadFactory
Default constructor.

D

drainTo(Collection<? super E>) - Method in class jsr166y.LinkedTransferQueue
 
drainTo(Collection<? super E>, int) - Method in class jsr166y.LinkedTransferQueue
 

E

enqueuedForClosure - Variable in class com.jolbox.bonecp.StatementHandle
If true, this statement is being closed off by a separate thread.
equals(Object) - Method in class com.jolbox.bonecp.UsernamePassword
 
execute() - Method in class com.jolbox.bonecp.PreparedStatementHandle
execute(String) - Method in class com.jolbox.bonecp.StatementHandle
execute(String, int) - Method in class com.jolbox.bonecp.StatementHandle
execute(String, int[]) - Method in class com.jolbox.bonecp.StatementHandle
execute(String, String[]) - Method in class com.jolbox.bonecp.StatementHandle
executeBatch() - Method in class com.jolbox.bonecp.StatementHandle
executeQuery() - Method in class com.jolbox.bonecp.PreparedStatementHandle
executeQuery(String) - Method in class com.jolbox.bonecp.StatementHandle
executeUpdate() - Method in class com.jolbox.bonecp.PreparedStatementHandle
executeUpdate(String) - Method in class com.jolbox.bonecp.StatementHandle
executeUpdate(String, int) - Method in class com.jolbox.bonecp.StatementHandle
executeUpdate(String, int[]) - Method in class com.jolbox.bonecp.StatementHandle
executeUpdate(String, String[]) - Method in class com.jolbox.bonecp.StatementHandle
externalAuth - Variable in class com.jolbox.bonecp.BoneCP
Config setting.

F

fillLogParams(String, Map<Object, Object>) - Static method in class com.jolbox.bonecp.PoolUtil
Returns sql statement used in this prepared statement together with the parameters.

G

get(String) - Method in interface com.jolbox.bonecp.IStatementCache
Retrieves the cached statement identified by the given key
get(String, int, int, int) - Method in interface com.jolbox.bonecp.IStatementCache
Retrieves the cached statement identified by the given key
get(String, int, int) - Method in interface com.jolbox.bonecp.IStatementCache
Retrieves the cached statement identified by the given key
get(String, int) - Method in interface com.jolbox.bonecp.IStatementCache
Retrieves the cached statement identified by the given key
get(String, int[]) - Method in interface com.jolbox.bonecp.IStatementCache
Retrieves the cached statement identified by the given key
get(String, String[]) - Method in interface com.jolbox.bonecp.IStatementCache
Retrieves the cached statement identified by the given key
get(String) - Method in class com.jolbox.bonecp.StatementCache
Retrieves the cached statement identified by the given key
get(String, int, int, int) - Method in class com.jolbox.bonecp.StatementCache
 
get(String, int, int) - Method in class com.jolbox.bonecp.StatementCache
 
get(String, int) - Method in class com.jolbox.bonecp.StatementCache
 
get(String, int[]) - Method in class com.jolbox.bonecp.StatementCache
 
get(String, String[]) - Method in class com.jolbox.bonecp.StatementCache
 
getAcquireIncrement() - Method in class com.jolbox.bonecp.BoneCPConfig
Gets the acquireIncrement property.
getAcquireIncrement() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Gets the acquireIncrement property.
getAcquireIncrement() - Method in class com.jolbox.bonecp.ConnectionPartition
 
getAcquireRetryAttempts() - Method in class com.jolbox.bonecp.BoneCPConfig
After attempting to acquire a connection and failing, try to connect these many times before giving up.
getAcquireRetryAttempts() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
After attempting to acquire a connection and failing, try to connect these many times before giving up.
getAcquireRetryAttempts() - Method in class com.jolbox.bonecp.hooks.AcquireFailConfig
Returns the acquireRetryAttemps.
getAcquireRetryDelay() - Method in class com.jolbox.bonecp.BoneCPConfig
Deprecated. Use BoneCPConfig.getAcquireRetryDelayInMs() instead.
getAcquireRetryDelay(TimeUnit) - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the acquireRetryDelay setting with the specified granularity.
getAcquireRetryDelay() - Method in class com.jolbox.bonecp.hooks.AcquireFailConfig
Deprecated. Use AcquireFailConfig.getAcquireRetryDelayInMs() instead.
getAcquireRetryDelayInMs() - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the number of ms to wait before attempting to obtain a connection again after a failure.
getAcquireRetryDelayInMs() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Returns the number of ms to wait before attempting to obtain a connection again after a failure.
getAcquireRetryDelayInMs() - Method in class com.jolbox.bonecp.hooks.AcquireFailConfig
Getter for acquireRetryDelay.
getArgs() - Method in class com.jolbox.bonecp.ReplayLog
 
getArray(int) - Method in class com.jolbox.bonecp.CallableStatementHandle
getArray(String) - Method in class com.jolbox.bonecp.CallableStatementHandle
getAsyncConnection() - Method in class com.jolbox.bonecp.BoneCP
Obtain a connection asynchronously by queueing a request to obtain a connection in a separate thread.
getAutoCommit() - Method in class com.jolbox.bonecp.ConnectionHandle
 
getAvailableConnections() - Method in class com.jolbox.bonecp.ConnectionPartition
Returns the number of avail connections
getBigDecimal(int) - Method in class com.jolbox.bonecp.CallableStatementHandle
getBigDecimal(String) - Method in class com.jolbox.bonecp.CallableStatementHandle
getBigDecimal(int, int) - Method in class com.jolbox.bonecp.CallableStatementHandle
Deprecated. 
getBlob(int) - Method in class com.jolbox.bonecp.CallableStatementHandle
getBlob(String) - Method in class com.jolbox.bonecp.CallableStatementHandle
getBoolean(int) - Method in class com.jolbox.bonecp.CallableStatementHandle
getBoolean(String) - Method in class com.jolbox.bonecp.CallableStatementHandle
getByte(int) - Method in class com.jolbox.bonecp.CallableStatementHandle
getByte(String) - Method in class com.jolbox.bonecp.CallableStatementHandle
getBytes(int) - Method in class com.jolbox.bonecp.CallableStatementHandle
getBytes(String) - Method in class com.jolbox.bonecp.CallableStatementHandle
getCacheHitRatio() - Method in class com.jolbox.bonecp.Statistics
 
getCacheHitRatio() - Method in interface com.jolbox.bonecp.StatisticsMBean
Returns the cache hit ratio calculated as hits/(hits+misses).
getCacheHits() - Method in class com.jolbox.bonecp.Statistics
 
getCacheHits() - Method in interface com.jolbox.bonecp.StatisticsMBean
Returns the cacheHits field.
getCacheMiss() - Method in class com.jolbox.bonecp.Statistics
 
getCacheMiss() - Method in interface com.jolbox.bonecp.StatisticsMBean
Returns the cacheMiss field.
getCatalog() - Method in class com.jolbox.bonecp.ConnectionHandle
 
getCharacterStream(int) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
getCharacterStream(String) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
getClassLoader() - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the currently active classloader.
getClientInfo() - Method in class com.jolbox.bonecp.ConnectionHandle
 
getClientInfo(String) - Method in class com.jolbox.bonecp.ConnectionHandle
 
getClob(int) - Method in class com.jolbox.bonecp.CallableStatementHandle
getClob(String) - Method in class com.jolbox.bonecp.CallableStatementHandle
getCloseConnectionWatchTimeout() - Method in class com.jolbox.bonecp.BoneCPConfig
Deprecated. Use BoneCPConfig.getCloseConnectionWatchTimeoutInMs() instead
getCloseConnectionWatchTimeout(TimeUnit) - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the closeConnectionWatchTimeout with the specified granularity.
getCloseConnectionWatchTimeoutInMs() - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the no of ms to wait when close connection watch threads are enabled.
getCloseConnectionWatchTimeoutInMs() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Returns the no of ms to wait when close connection watch threads are enabled.
getConfig() - Method in class com.jolbox.bonecp.BoneCP
Gets config object.
getConfig() - Method in class com.jolbox.bonecp.BoneCPDataSource
Returns a configuration object built during initialization of the connection pool.
getConfigFile() - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the configFile field.
getConfigFile() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Returns the configFile field.
getConnection() - Method in class com.jolbox.bonecp.BoneCP
Returns a free connection.
getConnection() - Method in class com.jolbox.bonecp.BoneCPDataSource
getConnection(String, String) - Method in class com.jolbox.bonecp.BoneCPDataSource
getConnection() - Method in class com.jolbox.bonecp.StatementHandle
getConnectionCreationTime() - Method in class com.jolbox.bonecp.ConnectionHandle
Deprecated. please use ConnectionHandle.getConnectionCreationTimeInMs() instead.
getConnectionCreationTimeInMs() - Method in class com.jolbox.bonecp.ConnectionHandle
Returns the connectionCreationTime field.
getConnectionHook() - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the connection hook class.
getConnectionHook() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Returns the connection hook class.
getConnectionHook() - Method in class com.jolbox.bonecp.ConnectionHandle
Returns the configured connection hook object.
getConnectionHookClassName() - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the connection hook class name as passed via the setter
getConnectionHookClassName() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Returns the connection hook class name as passed via the setter
getConnectionLastReset() - Method in class com.jolbox.bonecp.ConnectionHandle
Deprecated. Please use ConnectionHandle.getConnectionLastResetInMs() instead
getConnectionLastResetInMs() - Method in class com.jolbox.bonecp.ConnectionHandle
 
getConnectionLastUsed() - Method in class com.jolbox.bonecp.ConnectionHandle
Deprecated. Use ConnectionHandle.getConnectionLastUsedInMs() instead.
getConnectionLastUsedInMs() - Method in class com.jolbox.bonecp.ConnectionHandle
 
getConnectionsPendingRelease() - Method in class com.jolbox.bonecp.ConnectionPartition
Gets handle to a release connection handle queue.
getConnectionsRequested() - Method in class com.jolbox.bonecp.Statistics
 
getConnectionsRequested() - Method in interface com.jolbox.bonecp.StatisticsMBean
Returns the connectionsRequested field.
getConnectionTestStatement() - Method in class com.jolbox.bonecp.BoneCPConfig
Gets connectionTestStatement
getConnectionTestStatement() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Gets connectionTestStatement
getConnectionTimeout() - Method in class com.jolbox.bonecp.BoneCPConfig
Deprecated. Use BoneCPConfig.getConnectionTimeoutInMs() instead.
getConnectionTimeout(TimeUnit) - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the connectionTimeout with the specified granularity.
getConnectionTimeoutInMs() - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the maximum time (in milliseconds) to wait before a call to getConnection is timed out.
getConnectionTimeoutInMs() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Returns the maximum time (in milliseconds) to wait before a call to getConnection is timed out.
getConnectionWaitTimeAvg() - Method in class com.jolbox.bonecp.Statistics
 
getConnectionWaitTimeAvg() - Method in interface com.jolbox.bonecp.StatisticsMBean
Return the average time it takes for a getConnection request to be services (in ms).
getCreatedConnections() - Method in class com.jolbox.bonecp.ConnectionPartition
 
getCumulativeConnectionWaitTime() - Method in class com.jolbox.bonecp.Statistics
 
getCumulativeConnectionWaitTime() - Method in interface com.jolbox.bonecp.StatisticsMBean
Returns the total time that the application waited in order to obtain its connections (in ms).
getCumulativeStatementExecutionTime() - Method in class com.jolbox.bonecp.Statistics
 
getCumulativeStatementExecutionTime() - Method in interface com.jolbox.bonecp.StatisticsMBean
Returns the time taken for the prepared statements to execute (in ms).
getCumulativeStatementPrepareTime() - Method in class com.jolbox.bonecp.Statistics
 
getCumulativeStatementPrepareTime() - Method in interface com.jolbox.bonecp.StatisticsMBean
Returns the time taken to prepare statements (or obtain from cache) (in ms).
getDatasourceBean() - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the bean being used to return a connection.
getDate(int) - Method in class com.jolbox.bonecp.CallableStatementHandle
getDate(String) - Method in class com.jolbox.bonecp.CallableStatementHandle
getDate(int, Calendar) - Method in class com.jolbox.bonecp.CallableStatementHandle
getDate(String, Calendar) - Method in class com.jolbox.bonecp.CallableStatementHandle
getDebugHandle() - Method in class com.jolbox.bonecp.ConnectionHandle
Returns a debug handle as previously set by an application
getDebugHandle() - Method in class com.jolbox.bonecp.hooks.AcquireFailConfig
Returns a reference to an opaque debug handle.
getDebugHandle() - Method in class com.jolbox.bonecp.StatementHandle
Returns the debugHandle field.
getDefaultAutoCommit() - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the defaultAutoCommit field.
getDefaultCatalog() - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the defaultCatalog field.
getDefaultReadOnly() - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the defaultReadOnly field.
getDefaultTransactionIsolation() - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the defaultTransactionIsolation field.
getDefaultTransactionIsolationValue() - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the defaultTransactionIsolationValue field.
getDouble(int) - Method in class com.jolbox.bonecp.CallableStatementHandle
getDouble(String) - Method in class com.jolbox.bonecp.CallableStatementHandle
getDriverClass() - Method in class com.jolbox.bonecp.BoneCPDataSource
Gets driver class set in config.
getDriverProperties() - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the currently configured driver properties.
getFetchDirection() - Method in class com.jolbox.bonecp.StatementHandle
getFetchSize() - Method in class com.jolbox.bonecp.StatementHandle
getFinalizableRefQueue() - Method in class com.jolbox.bonecp.BoneCP
Watch for connections that should have been safely closed but the application forgot.
getFinalizableRefs() - Method in class com.jolbox.bonecp.BoneCP
Return the finalizable refs handle.
getFloat(int) - Method in class com.jolbox.bonecp.CallableStatementHandle
getFloat(String) - Method in class com.jolbox.bonecp.CallableStatementHandle
getFreeConnections() - Method in class com.jolbox.bonecp.ConnectionPartition
 
getGeneratedKeys() - Method in class com.jolbox.bonecp.StatementHandle
getHoldability() - Method in class com.jolbox.bonecp.ConnectionHandle
 
getIdleConnectionTestPeriod() - Method in class com.jolbox.bonecp.BoneCPConfig
Deprecated. Please use BoneCPConfig.getIdleConnectionTestPeriodInMinutes() instead.
getIdleConnectionTestPeriod(TimeUnit) - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the idleConnectionTestPeriod with the specified granularity.
getIdleConnectionTestPeriodInMinutes() - Method in class com.jolbox.bonecp.BoneCPConfig
Gets the currently set idleConnectionTestPeriodInMinutes.
getIdleConnectionTestPeriodInMinutes() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Gets the currently set idleConnectionTestPeriodInMinutes.
getIdleMaxAge() - Method in class com.jolbox.bonecp.BoneCPConfig
Deprecated. Use BoneCPConfig.getIdleMaxAgeInMinutes() instead
getIdleMaxAge(TimeUnit) - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the idleMaxAge with the specified granularity.
getIdleMaxAgeInMinutes() - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the idleMaxAge currently set.
getIdleMaxAgeInMinutes() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Gets idleMaxAge (time in min).
getInitSQL() - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the initSQL parameter.
getInitSQL() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Returns the initSQL parameter.
getInt(int) - Method in class com.jolbox.bonecp.CallableStatementHandle
getInt(String) - Method in class com.jolbox.bonecp.CallableStatementHandle
getInternalCallableStatement() - Method in class com.jolbox.bonecp.CallableStatementHandle
Returns the callable statement that this wrapper wraps.
getInternalConnection() - Method in class com.jolbox.bonecp.ConnectionHandle
Returns the internal connection as obtained via the JDBC driver.
getInternalPreparedStatement() - Method in class com.jolbox.bonecp.PreparedStatementHandle
Returns the wrapped internal statement.
getInternalStatement() - Method in class com.jolbox.bonecp.StatementHandle
Returns the statement being wrapped around by this wrapper.
getJdbcUrl() - Method in class com.jolbox.bonecp.BoneCPConfig
Gets the configured JDBC URL
getJdbcUrl() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Gets the configured JDBC URL
getLoginTimeout() - Method in class com.jolbox.bonecp.BoneCPDataSource
Gets the maximum time in seconds that this data source can wait while attempting to connect to a database.
getLogMessage() - Method in class com.jolbox.bonecp.hooks.AcquireFailConfig
Returns a message that shows the origin of the problem.
getLogWriter() - Method in class com.jolbox.bonecp.BoneCPDataSource
Retrieves the log writer for this DataSource object.
getLong(int) - Method in class com.jolbox.bonecp.CallableStatementHandle
getLong(String) - Method in class com.jolbox.bonecp.CallableStatementHandle
getMaxConnectionAge() - Method in class com.jolbox.bonecp.BoneCPConfig
Deprecated. Please use BoneCPConfig.getMaxConnectionAgeInSeconds() instead.
getMaxConnectionAge(TimeUnit) - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the maxConnectionAge with the specified granularity.
getMaxConnectionAgeInSeconds() - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the maxConnectionAge field in seconds
getMaxConnectionAgeInSeconds() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Returns the maxConnectionAge field.
getMaxConnections() - Method in class com.jolbox.bonecp.ConnectionPartition
 
getMaxConnectionsPerPartition() - Method in class com.jolbox.bonecp.BoneCPConfig
Gets the maximum number of connections that will be contained in every partition.
getMaxConnectionsPerPartition() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Gets the maximum number of connections that will be contained in every partition.
getMaxFieldSize() - Method in class com.jolbox.bonecp.StatementHandle
getMaxRows() - Method in class com.jolbox.bonecp.StatementHandle
getMetaData() - Method in class com.jolbox.bonecp.ConnectionHandle
 
getMetaData() - Method in class com.jolbox.bonecp.PreparedStatementHandle
getMethod() - Method in class com.jolbox.bonecp.ReplayLog
 
getMinConnections() - Method in class com.jolbox.bonecp.ConnectionPartition
 
getMinConnectionsPerPartition() - Method in class com.jolbox.bonecp.BoneCPConfig
Gets the minimum number of connections that will be contained in every partition.
getMinConnectionsPerPartition() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Gets the minimum number of connections that will be contained in every partition.
getMoreResults() - Method in class com.jolbox.bonecp.StatementHandle
getMoreResults(int) - Method in class com.jolbox.bonecp.StatementHandle
getNCharacterStream(int) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
getNCharacterStream(String) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
getNClob(int) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
getNClob(String) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
getNString(int) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
getNString(String) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
getObject(int) - Method in class com.jolbox.bonecp.CallableStatementHandle
getObject(String) - Method in class com.jolbox.bonecp.CallableStatementHandle
getObject(int, Map<String, Class<?>>) - Method in class com.jolbox.bonecp.CallableStatementHandle
getObject(String, Map<String, Class<?>>) - Method in class com.jolbox.bonecp.CallableStatementHandle
getObjectInstance(Object, Name, Context, Hashtable<?, ?>) - Method in class com.jolbox.bonecp.BoneCPDataSource
 
getOpenStackTrace() - Method in class com.jolbox.bonecp.StatementHandle
Returns the stack trace where this statement was first opened.
getOriginatingPartition() - Method in class com.jolbox.bonecp.ConnectionHandle
Gets the partition this came from.
getParameterMetaData() - Method in class com.jolbox.bonecp.PreparedStatementHandle
getPartitionCount() - Method in class com.jolbox.bonecp.BoneCPConfig
Gets the number of currently defined partitions.
getPartitionCount() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Gets the number of currently defined partitions.
getPassword() - Method in class com.jolbox.bonecp.BoneCPConfig
Gets password to use for connections
getPassword() - Method in class com.jolbox.bonecp.ConnectionPartition
 
getPassword() - Method in class com.jolbox.bonecp.UsernamePassword
Returns the password field.
getPool() - Method in class com.jolbox.bonecp.ConnectionHandle
Returns a handle to the global pool from where this connection was obtained.
getPoolAvailabilityThreshold() - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the pool watch connection threshold value.
getPoolAvailabilityThreshold() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Returns the pool watch connection threshold value.
getPoolName() - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the name of the pool for JMX and thread names.
getPoolName() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Returns the name of the pool for JMX and thread names.
getPoolWatchThreadSignalQueue() - Method in class com.jolbox.bonecp.ConnectionPartition
Returns a handle to the poolWatchThreadSignalQueue
getPreparedStatementCacheSize() - Method in class com.jolbox.bonecp.BoneCPConfig
Deprecated. 
getPreparedStatementsCacheSize() - Method in class com.jolbox.bonecp.BoneCPConfig
Deprecated. 
getProxyTarget() - Method in class com.jolbox.bonecp.ConnectionHandle
This method will be intercepted by the proxy if it is enabled to return the internal target.
getQueryExecuteTimeLimit() - Method in class com.jolbox.bonecp.BoneCPConfig
Deprecated. Use BoneCPConfig.getQueryExecuteTimeLimitInMs() instead.
getQueryExecuteTimeLimit(TimeUnit) - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the queryExecuteTimeLimit setting with the specified granularity.
getQueryExecuteTimeLimitInMs() - Method in class com.jolbox.bonecp.BoneCPConfig
Return the query execute time limit.
getQueryExecuteTimeLimitInMs() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Return the query execute time limit in ms.
getQueryExecuteTimeLimitinNanoSeconds() - Method in class com.jolbox.bonecp.ConnectionPartition
Store the unit translation here to avoid recalculating it in the constructor of StatementHandle.
getQueryTimeout() - Method in class com.jolbox.bonecp.StatementHandle
getRawConnection() - Method in class com.jolbox.bonecp.ConnectionHandle
Deprecated. 
getRef(int) - Method in class com.jolbox.bonecp.CallableStatementHandle
getRef(String) - Method in class com.jolbox.bonecp.CallableStatementHandle
getReleaseHelper() - Method in class com.jolbox.bonecp.BoneCP
 
getReleaseHelperThreads() - Method in class com.jolbox.bonecp.BoneCPConfig
Gets number of release-connection helper threads to create per partition.
getReleaseHelperThreads() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Gets number of release-connection helper threads to create per partition.
getRemainingCapacity() - Method in class com.jolbox.bonecp.ConnectionPartition
Returns no of free slots.
getReplaceTarget() - Method in class com.jolbox.bonecp.proxy.TransactionRecoveryResult
Getter for map.
getReplayLog() - Method in class com.jolbox.bonecp.ConnectionHandle
Returns transaction history log
getResult() - Method in class com.jolbox.bonecp.proxy.TransactionRecoveryResult
Getter for result.
getResultSet() - Method in class com.jolbox.bonecp.StatementHandle
getResultSetConcurrency() - Method in class com.jolbox.bonecp.StatementHandle
getResultSetHoldability() - Method in class com.jolbox.bonecp.StatementHandle
getResultSetType() - Method in class com.jolbox.bonecp.StatementHandle
getRowId(int) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
getRowId(String) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
getServiceOrder() - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the serviceOrder field.
getServiceOrder() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Returns the serviceOrder field.
getShort(int) - Method in class com.jolbox.bonecp.CallableStatementHandle
getShort(String) - Method in class com.jolbox.bonecp.CallableStatementHandle
getSQLXML(int) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
getSQLXML(String) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
getStatementCacheSize() - Method in class com.jolbox.bonecp.BoneCPConfig
Deprecated. 
getStatementCloseHelperExecutor() - Method in class com.jolbox.bonecp.BoneCP
Returns the statementCloseHelper field.
getStatementExecuteTimeAvg() - Method in class com.jolbox.bonecp.Statistics
 
getStatementExecuteTimeAvg() - Method in interface com.jolbox.bonecp.StatisticsMBean
Return the average execution time for prepared statements to execute (in ms).
getStatementPrepareTimeAvg() - Method in class com.jolbox.bonecp.Statistics
 
getStatementPrepareTimeAvg() - Method in interface com.jolbox.bonecp.StatisticsMBean
Return the statement prepare time average (in ms).
getStatementReleaseHelperThreads() - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the statementHelperThreads field.
getStatementReleaseHelperThreads() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Returns the statementHelperThreads field.
getStatementsCached() - Method in class com.jolbox.bonecp.Statistics
 
getStatementsCached() - Method in interface com.jolbox.bonecp.StatisticsMBean
Returns the number of statements that have been cached.
getStatementsCachedPerConnection() - Method in class com.jolbox.bonecp.BoneCPConfig
Deprecated. 
getStatementsCachedPerConnection() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Gets no of statements cached per connection.
getStatementsCacheSize() - Method in class com.jolbox.bonecp.BoneCPConfig
Gets statementsCacheSize setting.
getStatementsCacheSize() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Gets statementsCacheSize setting.
getStatementsExecuted() - Method in class com.jolbox.bonecp.Statistics
 
getStatementsExecuted() - Method in interface com.jolbox.bonecp.StatisticsMBean
Returns the number of statements that have been executed.
getStatementsPendingRelease() - Method in class com.jolbox.bonecp.BoneCP
Returns the statementsPendingRelease field.
getStatementsPrepared() - Method in class com.jolbox.bonecp.Statistics
 
getStatementsPrepared() - Method in interface com.jolbox.bonecp.StatisticsMBean
Returns the number of statements prepared.
getStatistics() - Method in class com.jolbox.bonecp.BoneCP
Returns a reference to the statistics class.
getString(int) - Method in class com.jolbox.bonecp.CallableStatementHandle
getString(String) - Method in class com.jolbox.bonecp.CallableStatementHandle
getTarget() - Method in class com.jolbox.bonecp.ReplayLog
 
getThreadUsingConnection() - Method in class com.jolbox.bonecp.ConnectionHandle
Returns the thread that is currently utilizing this connection.
getThreadWatch() - Method in class com.jolbox.bonecp.ConnectionHandle
Returns the thread watching over this connection.
getTime(int) - Method in class com.jolbox.bonecp.CallableStatementHandle
getTime(String) - Method in class com.jolbox.bonecp.CallableStatementHandle
getTime(int, Calendar) - Method in class com.jolbox.bonecp.CallableStatementHandle
getTime(String, Calendar) - Method in class com.jolbox.bonecp.CallableStatementHandle
getTimestamp(int) - Method in class com.jolbox.bonecp.CallableStatementHandle
getTimestamp(String) - Method in class com.jolbox.bonecp.CallableStatementHandle
getTimestamp(int, Calendar) - Method in class com.jolbox.bonecp.CallableStatementHandle
getTimestamp(String, Calendar) - Method in class com.jolbox.bonecp.CallableStatementHandle
getTotalCreatedConnections() - Method in class com.jolbox.bonecp.BoneCP
Return total number of connections created in all partitions.
getTotalCreatedConnections() - Method in class com.jolbox.bonecp.Statistics
 
getTotalCreatedConnections() - Method in interface com.jolbox.bonecp.StatisticsMBean
Return total number of connections created in all partitions.
getTotalFree() - Method in class com.jolbox.bonecp.BoneCP
Return the number of free connections available to an application right away (excluding connections that can be created dynamically)
getTotalFree() - Method in class com.jolbox.bonecp.Statistics
 
getTotalFree() - Method in interface com.jolbox.bonecp.StatisticsMBean
Return the number of free connections available to an application right away (excluding connections that can be created dynamically)
getTotalLeased() - Method in class com.jolbox.bonecp.BoneCP
Return total number of connections currently in use by an application
getTotalLeased() - Method in class com.jolbox.bonecp.BoneCPDataSource
Returns the total leased connections.
getTotalLeased() - Method in class com.jolbox.bonecp.Statistics
 
getTotalLeased() - Method in interface com.jolbox.bonecp.StatisticsMBean
Return total number of connections currently in use by an application
getTransactionIsolation() - Method in class com.jolbox.bonecp.ConnectionHandle
 
getTypeMap() - Method in class com.jolbox.bonecp.ConnectionHandle
 
getUpdateCount() - Method in class com.jolbox.bonecp.StatementHandle
getURL(int) - Method in class com.jolbox.bonecp.CallableStatementHandle
getURL(String) - Method in class com.jolbox.bonecp.CallableStatementHandle
getUrl() - Method in class com.jolbox.bonecp.ConnectionPartition
 
getUsername() - Method in class com.jolbox.bonecp.BoneCPConfig
Gets username to use for the connections.
getUsername() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Gets username to use for the connections.
getUsername() - Method in class com.jolbox.bonecp.ConnectionPartition
 
getUsername() - Method in class com.jolbox.bonecp.UsernamePassword
Returns the username field.
getWaitingConsumerCount() - Method in class com.jolbox.bonecp.LIFOQueue
 
getWaitingConsumerCount() - Method in class jsr166y.LinkedTransferQueue
 
getWaitingConsumerCount() - Method in interface jsr166y.TransferQueue
Returns an estimate of the number of consumers waiting to receive elements via BlockingQueue.take() or timed poll.
getWarnings() - Method in class com.jolbox.bonecp.ConnectionHandle
 
getWarnings() - Method in class com.jolbox.bonecp.StatementHandle

H

hashCode() - Method in class com.jolbox.bonecp.UsernamePassword
 
hasSameConfiguration(BoneCPConfig) - Method in class com.jolbox.bonecp.BoneCPConfig
Returns true if this instance has the same config as a given config.
hasWaitingConsumer() - Method in class com.jolbox.bonecp.LIFOQueue
 
hasWaitingConsumer() - Method in class jsr166y.LinkedTransferQueue
 
hasWaitingConsumer() - Method in interface jsr166y.TransferQueue
Returns true if there is at least one consumer waiting to receive an element via BlockingQueue.take() or timed poll.

I

inCache - Variable in class com.jolbox.bonecp.StatementHandle
If true, this statement is in the cache.
incrementCacheHits() - Method in class com.jolbox.bonecp.Statistics
Accessor method.
incrementCacheMiss() - Method in class com.jolbox.bonecp.Statistics
Accessor method.
incrementConnectionsRequested() - Method in class com.jolbox.bonecp.Statistics
Accessor method.
incrementStatementsCached() - Method in class com.jolbox.bonecp.Statistics
Accessor method.
incrementStatementsExecuted() - Method in class com.jolbox.bonecp.Statistics
Adds statements executed.
incrementStatementsPrepared() - Method in class com.jolbox.bonecp.Statistics
Adds statements executed.
initJMX() - Method in class com.jolbox.bonecp.BoneCP
Initialises JMX stuff.
initStmtReleaseHelper(String) - Method in class com.jolbox.bonecp.BoneCP
Starts off threads released to statement release helpers.
internalClose() - Method in class com.jolbox.bonecp.ConnectionHandle
Close off the connection.
internalReleaseConnection(ConnectionHandle) - Method in class com.jolbox.bonecp.BoneCP
Release a connection by placing the connection back in the pool.
internalStatement - Variable in class com.jolbox.bonecp.StatementHandle
A handle to the actual statement.
invoke(Object, Method, Object[]) - Method in class com.jolbox.bonecp.MemorizeTransactionProxy
 
isCloseConnectionWatch() - Method in class com.jolbox.bonecp.BoneCPConfig
Returns if BoneCP is configured to create a helper thread to watch over connection acquires that are never released (or released twice).
isClosed() - Method in class com.jolbox.bonecp.ConnectionHandle
Returns true if this connection has been (logically) closed.
isClosed() - Method in class com.jolbox.bonecp.StatementHandle
Returns true if statement is logically closed
isClosedOrEnqueuedForClosure() - Method in class com.jolbox.bonecp.StatementHandle
Return true if statement is closed or is enqueued for closure.
isConnectionAlive() - Method in class com.jolbox.bonecp.ConnectionHandle
Sends a test query to the underlying connection and return true if connection is alive.
isConnectionHandleAlive(ConnectionHandle) - Method in class com.jolbox.bonecp.BoneCP
Sends a dummy statement to the server to keep the connection alive
isDisableConnectionTracking() - Method in class com.jolbox.bonecp.BoneCPConfig
Returns true if connection tracking has been disabled.
isDisableConnectionTracking() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Returns true if connection tracking has been disabled.
isDisableJMX() - Method in class com.jolbox.bonecp.BoneCPConfig
Return true if JMX is disabled.
isDisableJMX() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Return true if JMX is disabled.
isEmpty() - Method in class jsr166y.LinkedTransferQueue
Returns true if this queue contains no elements.
isEnqueuedForClosure() - Method in class com.jolbox.bonecp.StatementHandle
Returns the enqueuedForClosure field.
isExpired() - Method in class com.jolbox.bonecp.ConnectionHandle
Returns true if the given connection has exceeded the maxConnectionAge.
isExpired(long) - Method in class com.jolbox.bonecp.ConnectionHandle
Returns true if the given connection has exceeded the maxConnectionAge.
isExternalAuth() - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the current externalAuth setting.
isInReplayMode() - Method in class com.jolbox.bonecp.ConnectionHandle
 
isLazyInit() - Method in class com.jolbox.bonecp.BoneCPConfig
Returns true if connection pool is to be initialized lazily.
isLazyInit() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Returns true if connection pool is to be initialized lazily.
isLogStatementsEnabled() - Method in class com.jolbox.bonecp.BoneCPConfig
Returns true if SQL logging is currently enabled, false otherwise.
isLogStatementsEnabled() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Returns true if SQL logging is currently enabled, false otherwise.
isLogStatementsEnabled() - Method in class com.jolbox.bonecp.ConnectionHandle
Returns true if logging of statements is enabled
isPoolable() - Method in class com.jolbox.bonecp.StatementHandle
 
isPossiblyBroken() - Method in class com.jolbox.bonecp.ConnectionHandle
Gets true if connection has triggered an exception at some point.
isReadOnly() - Method in class com.jolbox.bonecp.ConnectionHandle
 
isReleaseHelperThreadsConfigured() - Method in class com.jolbox.bonecp.BoneCP
Returns the releaseHelperThreadsConfigured field.
isStatementReleaseHelperThreadsConfigured() - Method in class com.jolbox.bonecp.BoneCP
Returns the statementReleaseHelperThreadsConfigured field.
isStatisticsEnabled() - Method in class com.jolbox.bonecp.BoneCPConfig
Returns the statisticsEnabled field.
isStatisticsEnabled() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Returns the statisticsEnabled field.
IStatementCache - Interface in com.jolbox.bonecp
Interface to the JDBC statement cache.
isTransactionRecoveryEnabled() - Method in class com.jolbox.bonecp.BoneCPConfig
Returns true if the pool is configured to record all transaction activity and replay the transaction automatically in case of connection failures.
isTransactionRecoveryEnabled() - Method in interface com.jolbox.bonecp.BoneCPConfigMBean
Returns true if the pool is configured to record all transaction activity and replay the transaction automatically in case of connection failures.
isUnableToCreateMoreTransactions() - Method in class com.jolbox.bonecp.ConnectionPartition
Returns true if we have created all the connections we can
isValid(int) - Method in class com.jolbox.bonecp.ConnectionHandle
 
isWrapperFor(Class<?>) - Method in class com.jolbox.bonecp.BoneCPDataSource
Returns true if this either implements the interface argument or is directly or indirectly a wrapper for an object that does.
isWrapperFor(Class<?>) - Method in class com.jolbox.bonecp.ConnectionHandle
 
isWrapperFor(Class<?>) - Method in class com.jolbox.bonecp.StatementHandle
 
iterator() - Method in class jsr166y.LinkedTransferQueue
Returns an iterator over the elements in this queue in proper sequence, from head to tail.

J

jsr166y - package jsr166y
 

L

LIFOQueue<E> - Class in com.jolbox.bonecp
An implementation that uses LinkedBlockingDeque internally to hide the difference between this version and a BoundedLinkedTransferQueue (when used in FIFO mode).
LIFOQueue(int) - Constructor for class com.jolbox.bonecp.LIFOQueue
 
LIFOQueue() - Constructor for class com.jolbox.bonecp.LIFOQueue
 
LinkedTransferQueue<E> - Class in jsr166y
An unbounded TransferQueue based on linked nodes.
LinkedTransferQueue() - Constructor for class jsr166y.LinkedTransferQueue
Creates an initially empty LinkedTransferQueue.
LinkedTransferQueue(Collection<? extends E>) - Constructor for class jsr166y.LinkedTransferQueue
Creates a LinkedTransferQueue initially containing the elements of the given collection, added in traversal order of the collection's iterator.
loadClass(String) - Method in class com.jolbox.bonecp.BoneCPConfig
Loads the given class, respecting the given classloader.
loadProperties(String) - Method in class com.jolbox.bonecp.BoneCPConfig
Loads the given properties file using the classloader.
logger - Static variable in class com.jolbox.bonecp.ConnectionMaxAgeThread
Logger handle.
logger - Static variable in class com.jolbox.bonecp.PreparedStatementHandle
Class logger.
logger - Static variable in class com.jolbox.bonecp.StatementHandle
Class logger.
logicallyClosed - Variable in class com.jolbox.bonecp.ConnectionHandle
If true, we've called close() on this connection.
logicallyClosed - Variable in class com.jolbox.bonecp.StatementHandle
Set to true if the connection has been "closed".
logParams - Variable in class com.jolbox.bonecp.StatementHandle
For logging purposes - stores parameters to be used for execution.
logStatementsEnabled - Variable in class com.jolbox.bonecp.StatementHandle
If enabled, log all statements being executed.

M

markPossiblyBroken(SQLException) - Method in class com.jolbox.bonecp.ConnectionHandle
Given an exception, flag the connection (or database) as being potentially broken.
MBEAN_BONECP - Static variable in class com.jolbox.bonecp.BoneCP
JMX constant.
MBEAN_CONFIG - Static variable in class com.jolbox.bonecp.BoneCP
JMX constant.
memorize(Connection, ConnectionHandle) - Static method in class com.jolbox.bonecp.MemorizeTransactionProxy
Wrap connection with a proxy.
memorize(Statement, ConnectionHandle) - Static method in class com.jolbox.bonecp.MemorizeTransactionProxy
Wrap Statement with a proxy.
memorize(PreparedStatement, ConnectionHandle) - Static method in class com.jolbox.bonecp.MemorizeTransactionProxy
Wrap PreparedStatement with a proxy.
memorize(CallableStatement, ConnectionHandle) - Static method in class com.jolbox.bonecp.MemorizeTransactionProxy
Wrap CallableStatement with a proxy.
MemorizeTransactionProxy - Class in com.jolbox.bonecp
This code takes care of recording and playing back of transactions (when a failure occurs).
MemorizeTransactionProxy() - Constructor for class com.jolbox.bonecp.MemorizeTransactionProxy
Default constructor.

N

nativeSQL(String) - Method in class com.jolbox.bonecp.ConnectionHandle
 
newThread(Runnable) - Method in class com.jolbox.bonecp.CustomThreadFactory
next(int) - Method in class jsr166y.ThreadLocalRandom
 
nextDouble(double) - Method in class jsr166y.ThreadLocalRandom
Returns a pseudorandom, uniformly distributed double value between 0 (inclusive) and the specified value (exclusive).
nextDouble(double, double) - Method in class jsr166y.ThreadLocalRandom
Returns a pseudorandom, uniformly distributed value between the given least value (inclusive) and bound (exclusive).
nextInt(int, int) - Method in class jsr166y.ThreadLocalRandom
Returns a pseudorandom, uniformly distributed value between the given least value (inclusive) and bound (exclusive).
nextLong(long) - Method in class jsr166y.ThreadLocalRandom
Returns a pseudorandom, uniformly distributed value between 0 (inclusive) and the specified value (exclusive).
nextLong(long, long) - Method in class jsr166y.ThreadLocalRandom
Returns a pseudorandom, uniformly distributed value between the given least value (inclusive) and bound (exclusive).

O

obtainInternalConnection() - Method in class com.jolbox.bonecp.ConnectionHandle
Obtains a database connection, retrying if necessary.
obtainRawInternalConnection() - Method in class com.jolbox.bonecp.BoneCP
Returns a database connection by using Driver.getConnection() or DataSource.getConnection()
offer(E) - Method in class com.jolbox.bonecp.BoundedLinkedTransferQueue
 
offer(E) - Method in class com.jolbox.bonecp.LIFOQueue
 
offer(E, long, TimeUnit) - Method in class jsr166y.LinkedTransferQueue
Inserts the specified element at the tail of this queue.
offer(E) - Method in class jsr166y.LinkedTransferQueue
Inserts the specified element at the tail of this queue.
onAcquire(ConnectionHandle) - Method in class com.jolbox.bonecp.hooks.AbstractConnectionHook
 
onAcquire(ConnectionHandle) - Method in interface com.jolbox.bonecp.hooks.ConnectionHook
Called upon getting a new connection from the JDBC driver (and prior to inserting into the pool).
onAcquireFail(Throwable, AcquireFailConfig) - Method in class com.jolbox.bonecp.hooks.AbstractConnectionHook
 
onAcquireFail(Throwable, AcquireFailConfig) - Method in interface com.jolbox.bonecp.hooks.ConnectionHook
Called on attempting (and failing) to acquire a connection.
onAfterStatementExecute(ConnectionHandle, StatementHandle, String, Map<Object, Object>) - Method in class com.jolbox.bonecp.hooks.AbstractConnectionHook
 
onAfterStatementExecute(ConnectionHandle, StatementHandle, String, Map<Object, Object>) - Method in interface com.jolbox.bonecp.hooks.ConnectionHook
Called right after a statement has executed.
onBeforeStatementExecute(ConnectionHandle, StatementHandle, String, Map<Object, Object>) - Method in class com.jolbox.bonecp.hooks.AbstractConnectionHook
 
onBeforeStatementExecute(ConnectionHandle, StatementHandle, String, Map<Object, Object>) - Method in interface com.jolbox.bonecp.hooks.ConnectionHook
Called before a statement is about to execute.
onCheckIn(ConnectionHandle) - Method in class com.jolbox.bonecp.hooks.AbstractConnectionHook
 
onCheckIn(ConnectionHandle) - Method in interface com.jolbox.bonecp.hooks.ConnectionHook
Called when the connection is about to be returned to the pool.
onCheckOut(ConnectionHandle) - Method in class com.jolbox.bonecp.hooks.AbstractConnectionHook
 
onCheckOut(ConnectionHandle) - Method in interface com.jolbox.bonecp.hooks.ConnectionHook
Called when the connection is extracted from the pool and about to be given to the application.
onConnectionException(ConnectionHandle, String, Throwable) - Method in class com.jolbox.bonecp.hooks.AbstractConnectionHook
 
onConnectionException(ConnectionHandle, String, Throwable) - Method in interface com.jolbox.bonecp.hooks.ConnectionHook
Called whenever an exception on a connection occurs.
onDestroy(ConnectionHandle) - Method in class com.jolbox.bonecp.hooks.AbstractConnectionHook
 
onDestroy(ConnectionHandle) - Method in interface com.jolbox.bonecp.hooks.ConnectionHook
Called when the connection is about to be completely removed from the pool.
onMarkPossiblyBroken(ConnectionHandle, String, SQLException) - Method in class com.jolbox.bonecp.hooks.AbstractConnectionHook
 
onMarkPossiblyBroken(ConnectionHandle, String, SQLException) - Method in interface com.jolbox.bonecp.hooks.ConnectionHook
Called to give you a chance to override the logic on whether a connection can be considered broken or not.
onQueryExecuteTimeLimitExceeded(ConnectionHandle, Statement, String, Map<Object, Object>, long) - Method in class com.jolbox.bonecp.hooks.AbstractConnectionHook
 
onQueryExecuteTimeLimitExceeded(ConnectionHandle, Statement, String, Map<Object, Object>) - Method in class com.jolbox.bonecp.hooks.AbstractConnectionHook
Deprecated. 
onQueryExecuteTimeLimitExceeded(String, Map<Object, Object>) - Method in class com.jolbox.bonecp.hooks.AbstractConnectionHook
Deprecated. 
onQueryExecuteTimeLimitExceeded(ConnectionHandle, Statement, String, Map<Object, Object>, long) - Method in interface com.jolbox.bonecp.hooks.ConnectionHook
Called when a query execute time limit has been set and an executing query took longer to than the limit to return control to the application.
onQueryExecuteTimeLimitExceeded(ConnectionHandle, Statement, String, Map<Object, Object>) - Method in interface com.jolbox.bonecp.hooks.ConnectionHook
Deprecated. 
onQueryExecuteTimeLimitExceeded(String, Map<Object, Object>) - Method in interface com.jolbox.bonecp.hooks.ConnectionHook
Deprecated. 
openStackTrace - Variable in class com.jolbox.bonecp.StatementHandle
Stack trace capture of where this statement was opened.

P

peek() - Method in class jsr166y.LinkedTransferQueue
 
poll() - Method in class com.jolbox.bonecp.BoundedLinkedTransferQueue
 
poll(long, TimeUnit) - Method in class com.jolbox.bonecp.BoundedLinkedTransferQueue
 
poll(long, TimeUnit) - Method in class jsr166y.LinkedTransferQueue
 
poll() - Method in class jsr166y.LinkedTransferQueue
 
pool - Variable in class com.jolbox.bonecp.ConnectionPartition
Handle to the pool.
poolAvailabilityThreshold - Variable in class com.jolbox.bonecp.BoneCP
Create more connections when we hit x% of our possible number of connections.
poolShuttingDown - Variable in class com.jolbox.bonecp.BoneCP
set to true if the connection pool has been flagged as shutting down.
PoolUtil - Class in com.jolbox.bonecp
A bunch of generic routines used internally by the pool.
PoolUtil() - Constructor for class com.jolbox.bonecp.PoolUtil
 
PoolWatchThread - Class in com.jolbox.bonecp
Watches a partition to create new connections when required.
PoolWatchThread(ConnectionPartition, BoneCP) - Constructor for class com.jolbox.bonecp.PoolWatchThread
Thread constructor
possiblyBroken - Variable in class com.jolbox.bonecp.ConnectionHandle
If true, this connection might have failed communicating with the database.
postDestroyConnection(ConnectionHandle) - Method in class com.jolbox.bonecp.BoneCP
Update counters and call hooks.
prepareCall(String) - Method in class com.jolbox.bonecp.ConnectionHandle
 
prepareCall(String, int, int) - Method in class com.jolbox.bonecp.ConnectionHandle
 
prepareCall(String, int, int, int) - Method in class com.jolbox.bonecp.ConnectionHandle
 
PreparedStatementHandle - Class in com.jolbox.bonecp
Wrapper around JDBC PreparedStatement.
PreparedStatementHandle(PreparedStatement, String, ConnectionHandle, String, IStatementCache) - Constructor for class com.jolbox.bonecp.PreparedStatementHandle
PreparedStatement Wrapper constructor.
PreparedStatementProxy - Interface in com.jolbox.bonecp.proxy
Just a way to get our proxy to work with driver-specific types.
prepareStatement(String) - Method in class com.jolbox.bonecp.ConnectionHandle
 
prepareStatement(String, int) - Method in class com.jolbox.bonecp.ConnectionHandle
 
prepareStatement(String, int[]) - Method in class com.jolbox.bonecp.ConnectionHandle
 
prepareStatement(String, String[]) - Method in class com.jolbox.bonecp.ConnectionHandle
 
prepareStatement(String, int, int) - Method in class com.jolbox.bonecp.ConnectionHandle
 
prepareStatement(String, int, int, int) - Method in class com.jolbox.bonecp.ConnectionHandle
 
prettyPrint(Object) - Static method in class com.jolbox.bonecp.PoolUtil
Helper method
put(E) - Method in class com.jolbox.bonecp.BoundedLinkedTransferQueue
 
put(E) - Method in class jsr166y.LinkedTransferQueue
Inserts the specified element at the tail of this queue.
putConnectionBackInPartition(ConnectionHandle) - Method in class com.jolbox.bonecp.BoneCP
Places a connection back in the originating partition.
putIfAbsent(String, StatementHandle) - Method in interface com.jolbox.bonecp.IStatementCache
Wrapper for map putIfAbsent.
putIfAbsent(String, StatementHandle) - Method in class com.jolbox.bonecp.StatementCache
 

Q

queryExecuteTimeLimit - Variable in class com.jolbox.bonecp.StatementHandle
Config setting converted to nanoseconds.
queryTimerEnd(String, long) - Method in class com.jolbox.bonecp.StatementHandle
Call the onQueryExecuteTimeLimitExceeded hook if necessary
queryTimerStart() - Method in class com.jolbox.bonecp.StatementHandle
Start off a timer if necessary

R

recoveryResult - Variable in class com.jolbox.bonecp.ConnectionHandle
Map of translations + result from last recovery.
registerOutParameter(int, int) - Method in class com.jolbox.bonecp.CallableStatementHandle
registerOutParameter(String, int) - Method in class com.jolbox.bonecp.CallableStatementHandle
registerOutParameter(int, int, int) - Method in class com.jolbox.bonecp.CallableStatementHandle
registerOutParameter(int, int, String) - Method in class com.jolbox.bonecp.CallableStatementHandle
registerOutParameter(String, int, int) - Method in class com.jolbox.bonecp.CallableStatementHandle
registerOutParameter(String, int, String) - Method in class com.jolbox.bonecp.CallableStatementHandle
releaseConnection(Connection) - Method in class com.jolbox.bonecp.BoneCP
Releases the given connection back to the pool.
releaseSavepoint(Savepoint) - Method in class com.jolbox.bonecp.ConnectionHandle
 
remainingCapacity() - Method in class com.jolbox.bonecp.BoundedLinkedTransferQueue
Returns the number of free slots in this queue.
remainingCapacity() - Method in class jsr166y.LinkedTransferQueue
Always returns Integer.MAX_VALUE because a LinkedTransferQueue is not capacity constrained.
remove(Object) - Method in class jsr166y.LinkedTransferQueue
Removes a single instance of the specified element from this queue, if it is present.
renewConnection() - Method in class com.jolbox.bonecp.ConnectionHandle
Renews this connection, i.e.
ReplayLog - Class in com.jolbox.bonecp
 
ReplayLog(Object, Method, Object[]) - Constructor for class com.jolbox.bonecp.ReplayLog
 
resetStats() - Method in class com.jolbox.bonecp.Statistics
 
resetStats() - Method in interface com.jolbox.bonecp.StatisticsMBean
Reset all statistics.
rollback() - Method in class com.jolbox.bonecp.ConnectionHandle
 
rollback(Savepoint) - Method in class com.jolbox.bonecp.ConnectionHandle
 
run() - Method in class com.jolbox.bonecp.CloseThreadMonitor
run() - Method in class com.jolbox.bonecp.ConnectionMaxAgeThread
Invoked periodically.
run() - Method in class com.jolbox.bonecp.ConnectionReleaseHelperThread
run() - Method in class com.jolbox.bonecp.ConnectionTesterThread
Invoked periodically.
run() - Method in class com.jolbox.bonecp.PoolWatchThread
 
run() - Method in class com.jolbox.bonecp.StatementReleaseHelperThread

S

safePrint(Object...) - Static method in class com.jolbox.bonecp.PoolUtil
Helper method
sanitize() - Method in class com.jolbox.bonecp.BoneCPConfig
Performs validation on the config object.
sendInitSQL() - Method in class com.jolbox.bonecp.ConnectionHandle
Sends any configured SQL init statement.
setAcquireIncrement(int) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets the acquireIncrement property.
setAcquireRetryAttempts(int) - Method in class com.jolbox.bonecp.BoneCPConfig
After attempting to acquire a connection and failing, try to connect these many times before giving up.
setAcquireRetryAttempts(AtomicInteger) - Method in class com.jolbox.bonecp.hooks.AcquireFailConfig
Sets the new acquireRetyAttemps.
setAcquireRetryDelay(int) - Method in class com.jolbox.bonecp.BoneCPConfig
Deprecated. Use BoneCPConfig.setAcquireRetryDelayInMs(long).
setAcquireRetryDelay(long, TimeUnit) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets the number of ms to wait before attempting to obtain a connection again after a failure.
setAcquireRetryDelay(long) - Method in class com.jolbox.bonecp.hooks.AcquireFailConfig
Deprecated. Use AcquireFailConfig.setAcquireRetryDelayInMs(long) instead.
setAcquireRetryDelayInMs(long) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets the number of ms to wait before attempting to obtain a connection again after a failure.
setAcquireRetryDelayInMs(long) - Method in class com.jolbox.bonecp.hooks.AcquireFailConfig
Sets the new acquireRetryDelay.
setArgs(Object[]) - Method in class com.jolbox.bonecp.ReplayLog
 
setArray(int, Array) - Method in class com.jolbox.bonecp.PreparedStatementHandle
setAsciiStream(String, InputStream) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
setAsciiStream(String, InputStream, long) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
setAsciiStream(String, InputStream, int) - Method in class com.jolbox.bonecp.CallableStatementHandle
setAsciiStream(int, InputStream, long) - Method in class com.jolbox.bonecp.PreparedStatementHandle
 
setAsciiStream(int, InputStream) - Method in class com.jolbox.bonecp.PreparedStatementHandle
 
setAsciiStream(int, InputStream, int) - Method in class com.jolbox.bonecp.PreparedStatementHandle
setAutoCommit(boolean) - Method in class com.jolbox.bonecp.ConnectionHandle
 
setBigDecimal(String, BigDecimal) - Method in class com.jolbox.bonecp.CallableStatementHandle
setBigDecimal(int, BigDecimal) - Method in class com.jolbox.bonecp.PreparedStatementHandle
setBinaryStream(String, InputStream) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
setBinaryStream(String, InputStream, long) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
setBinaryStream(String, InputStream, int) - Method in class com.jolbox.bonecp.CallableStatementHandle
setBinaryStream(int, InputStream) - Method in class com.jolbox.bonecp.PreparedStatementHandle
 
setBinaryStream(int, InputStream, long) - Method in class com.jolbox.bonecp.PreparedStatementHandle
 
setBinaryStream(int, InputStream, int) - Method in class com.jolbox.bonecp.PreparedStatementHandle
setBlob(String, Blob) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
setBlob(String, InputStream) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
setBlob(String, InputStream, long) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
setBlob(int, InputStream) - Method in class com.jolbox.bonecp.PreparedStatementHandle
 
setBlob(int, InputStream, long) - Method in class com.jolbox.bonecp.PreparedStatementHandle
 
setBlob(int, Blob) - Method in class com.jolbox.bonecp.PreparedStatementHandle
setBoolean(String, boolean) - Method in class com.jolbox.bonecp.CallableStatementHandle
setBoolean(int, boolean) - Method in class com.jolbox.bonecp.PreparedStatementHandle
setByte(String, byte) - Method in class com.jolbox.bonecp.CallableStatementHandle
setByte(int, byte) - Method in class com.jolbox.bonecp.PreparedStatementHandle
setBytes(String, byte[]) - Method in class com.jolbox.bonecp.CallableStatementHandle
setBytes(int, byte[]) - Method in class com.jolbox.bonecp.PreparedStatementHandle
setCatalog(String) - Method in class com.jolbox.bonecp.ConnectionHandle
 
setCharacterStream(String, Reader) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
setCharacterStream(String, Reader, long) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
setCharacterStream(String, Reader, int) - Method in class com.jolbox.bonecp.CallableStatementHandle
setCharacterStream(int, Reader, long) - Method in class com.jolbox.bonecp.PreparedStatementHandle
 
setCharacterStream(int, Reader) - Method in class com.jolbox.bonecp.PreparedStatementHandle
 
setCharacterStream(int, Reader, int) - Method in class com.jolbox.bonecp.PreparedStatementHandle
setClassLoader(ClassLoader) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets the classloader to use to load JDBC driver and hooks (set to null to use default).
setClientInfo(Properties) - Method in class com.jolbox.bonecp.ConnectionHandle
 
setClientInfo(String, String) - Method in class com.jolbox.bonecp.ConnectionHandle
 
setClob(String, Clob) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
setClob(String, Reader) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
setClob(String, Reader, long) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
setClob(int, Reader) - Method in class com.jolbox.bonecp.PreparedStatementHandle
 
setClob(int, Reader, long) - Method in class com.jolbox.bonecp.PreparedStatementHandle
 
setClob(int, Clob) - Method in class com.jolbox.bonecp.PreparedStatementHandle
setCloseConnectionWatch(boolean) - Method in class com.jolbox.bonecp.BoneCPConfig
Instruct the pool to create a helper thread to watch over connection acquires that are never released (or released twice).
setCloseConnectionWatchTimeout(long) - Method in class com.jolbox.bonecp.BoneCPConfig
Deprecated. Use BoneCPConfig.setCloseConnectionWatchTimeoutInMs(long) instead
setCloseConnectionWatchTimeout(long, TimeUnit) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets the time to wait when close connection watch threads are enabled.
setCloseConnectionWatchTimeoutInMs(long) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets the no of ms to wait when close connection watch threads are enabled.
setConfigFile(String) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets the configFile.
setConnectionHook(ConnectionHook) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets the connection hook.
setConnectionHookClassName(String) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets the connection hook class name.
setConnectionLastResetInMs(long) - Method in class com.jolbox.bonecp.ConnectionHandle
 
setConnectionLastUsedInMs(long) - Method in class com.jolbox.bonecp.ConnectionHandle
 
setConnectionTestStatement(String) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets the connection test statement.
setConnectionTimeout(long) - Method in class com.jolbox.bonecp.BoneCPConfig
Deprecated. Use BoneCPConfig.setConnectionTimeoutInMs(long) instead.
setConnectionTimeout(long, TimeUnit) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets the maximum time to wait before a call to getConnection is timed out.
setConnectionTimeoutInMs(long) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets the maximum time (in milliseconds) to wait before a call to getConnection is timed out.
setCursorName(String) - Method in class com.jolbox.bonecp.StatementHandle
 
setDatasourceBean(DataSource) - Method in class com.jolbox.bonecp.BoneCPConfig
If set, use datasourceBean.getConnection() to obtain a new connection instead of Driver.getConnection().
setDate(String, Date) - Method in class com.jolbox.bonecp.CallableStatementHandle
setDate(String, Date, Calendar) - Method in class com.jolbox.bonecp.CallableStatementHandle
setDate(int, Date) - Method in class com.jolbox.bonecp.PreparedStatementHandle
setDate(int, Date, Calendar) - Method in class com.jolbox.bonecp.PreparedStatementHandle
setDebugHandle(Object) - Method in class com.jolbox.bonecp.ConnectionHandle
Sets a debugHandle, an object that is not used by the connection pool at all but may be set by an application to track this particular connection handle for any purpose it deems fit.
setDebugHandle(Object) - Method in class com.jolbox.bonecp.hooks.AcquireFailConfig
Sets a reference to an opaque debug reference.
setDebugHandle(Object) - Method in class com.jolbox.bonecp.StatementHandle
Sets a debugHandle, an object that is not used by the connection pool at all but may be set by an application to track this particular connection handle for any purpose it deems fit.
setDefaultAutoCommit(Boolean) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets the defaultAutoCommit setting for newly created connections.
setDefaultCatalog(String) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets the defaultCatalog setting for newly created connections.
setDefaultReadOnly(Boolean) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets the defaultReadOnly setting for newly created connections.
setDefaultTransactionIsolation(String) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets the defaultTransactionIsolation.
setDefaultTransactionIsolationValue(int) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets the defaultTransactionIsolationValue.
setDisableConnectionTracking(boolean) - Method in class com.jolbox.bonecp.BoneCPConfig
If set to true, the pool will not monitor connections for proper closure.
setDisableJMX(boolean) - Method in class com.jolbox.bonecp.BoneCPConfig
Set to true to disable JMX.
setDouble(String, double) - Method in class com.jolbox.bonecp.CallableStatementHandle
setDouble(int, double) - Method in class com.jolbox.bonecp.PreparedStatementHandle
setDriverClass(String) - Method in class com.jolbox.bonecp.BoneCPDataSource
Sets driver to use (called via reflection).
setDriverProperties(Properties) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets properties that will be passed on to the driver.
setEscapeProcessing(boolean) - Method in class com.jolbox.bonecp.StatementHandle
setExternalAuth(boolean) - Method in class com.jolbox.bonecp.BoneCPConfig
If set to true, no attempts at passing in a username/password will be attempted when trying to obtain a raw (driver) connection.
setFetchDirection(int) - Method in class com.jolbox.bonecp.StatementHandle
setFetchSize(int) - Method in class com.jolbox.bonecp.StatementHandle
setFloat(String, float) - Method in class com.jolbox.bonecp.CallableStatementHandle
setFloat(int, float) - Method in class com.jolbox.bonecp.PreparedStatementHandle
setFreeConnections(TransferQueue<ConnectionHandle>) - Method in class com.jolbox.bonecp.ConnectionPartition
 
setHoldability(int) - Method in class com.jolbox.bonecp.ConnectionHandle
 
setIdleConnectionTestPeriod(long) - Method in class com.jolbox.bonecp.BoneCPConfig
Deprecated. Please use BoneCPConfig.setIdleConnectionTestPeriodInMinutes(long) or BoneCPConfig.setIdleConnectionTestPeriod(long, TimeUnit) instead
setIdleConnectionTestPeriod(long, TimeUnit) - Method in class com.jolbox.bonecp.BoneCPConfig
Wrapper method for idleConnectionTestPeriod for easier programmatic access.
setIdleConnectionTestPeriodInMinutes(long) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets the idleConnectionTestPeriod.
setIdleConnectionTestPeriodInSeconds(long) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets the idleConnectionTestPeriod.
setIdleMaxAge(long) - Method in class com.jolbox.bonecp.BoneCPConfig
Deprecated. Use BoneCPConfig.setIdleMaxAgeInMinutes(long) or BoneCPConfig.setIdleMaxAge(long, TimeUnit) instead.
setIdleMaxAge(long, TimeUnit) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets Idle max age.
setIdleMaxAgeInMinutes(long) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets Idle max age (in min).
setIdleMaxAgeInSeconds(long) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets Idle max age (in seconds).
setInitSQL(String) - Method in class com.jolbox.bonecp.BoneCPConfig
Specifies an initial SQL statement that is run only when a connection is first created.
setInReplayMode(boolean) - Method in class com.jolbox.bonecp.ConnectionHandle
 
setInt(String, int) - Method in class com.jolbox.bonecp.CallableStatementHandle
setInt(int, int) - Method in class com.jolbox.bonecp.PreparedStatementHandle
setInternalCallableStatement(CallableStatement) - Method in class com.jolbox.bonecp.CallableStatementHandle
Sets the callable statement used by this wrapper.
setInternalConnection(Connection) - Method in class com.jolbox.bonecp.ConnectionHandle
Sets the internal connection to use.
setInternalPreparedStatement(PreparedStatement) - Method in class com.jolbox.bonecp.PreparedStatementHandle
Sets the internal statement that this wrapper wraps.
setInternalStatement(Statement) - Method in class com.jolbox.bonecp.StatementHandle
Sets the internal statement used by this wrapper.
setJdbcUrl(String) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets the JDBC connection URL.
setLazyInit(boolean) - Method in class com.jolbox.bonecp.BoneCPConfig
Set to true to force the connection pool to obtain the initial connections lazily.
setLogicallyOpen() - Method in class com.jolbox.bonecp.StatementHandle
Marks this statement as being "open"
setLoginTimeout(int) - Method in class com.jolbox.bonecp.BoneCPDataSource
Sets the maximum time in seconds that this data source will wait while attempting to connect to a database.
setLogMessage(String) - Method in class com.jolbox.bonecp.hooks.AcquireFailConfig
Sets a log message.
setLogStatementsEnabled(boolean) - Method in class com.jolbox.bonecp.BoneCPConfig
If enabled, log SQL statements being executed.
setLogStatementsEnabled(boolean) - Method in class com.jolbox.bonecp.ConnectionHandle
Enable or disable logging of this connection.
setLogWriter(PrintWriter) - Method in class com.jolbox.bonecp.BoneCPDataSource
Sets the log writer for this DataSource object to the given java.io.PrintWriter object.
setLong(String, long) - Method in class com.jolbox.bonecp.CallableStatementHandle
setLong(int, long) - Method in class com.jolbox.bonecp.PreparedStatementHandle
setMaxConnectionAge(long) - Method in class com.jolbox.bonecp.BoneCPConfig
Deprecated. Please use {BoneCPConfig.setMaxConnectionAgeInSeconds(long) instead.
setMaxConnectionAge(long, TimeUnit) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets the maxConnectionAge.
setMaxConnectionAgeInSeconds(long) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets the maxConnectionAge in seconds.
setMaxConnectionsPerPartition(int) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets the maximum number of connections that will be contained in every partition.
setMaxFieldSize(int) - Method in class com.jolbox.bonecp.StatementHandle
setMaxRows(int) - Method in class com.jolbox.bonecp.StatementHandle
setMethod(Method) - Method in class com.jolbox.bonecp.ReplayLog
 
setMinConnectionsPerPartition(int) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets the minimum number of connections that will be contained in every partition.
setNCharacterStream(String, Reader) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
setNCharacterStream(String, Reader, long) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
setNCharacterStream(int, Reader) - Method in class com.jolbox.bonecp.PreparedStatementHandle
 
setNCharacterStream(int, Reader, long) - Method in class com.jolbox.bonecp.PreparedStatementHandle
 
setNClob(String, NClob) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
setNClob(String, Reader) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
setNClob(String, Reader, long) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
setNClob(int, NClob) - Method in class com.jolbox.bonecp.PreparedStatementHandle
 
setNClob(int, Reader) - Method in class com.jolbox.bonecp.PreparedStatementHandle
 
setNClob(int, Reader, long) - Method in class com.jolbox.bonecp.PreparedStatementHandle
 
setNString(String, String) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
setNString(int, String) - Method in class com.jolbox.bonecp.PreparedStatementHandle
 
setNull(String, int) - Method in class com.jolbox.bonecp.CallableStatementHandle
setNull(String, int, String) - Method in class com.jolbox.bonecp.CallableStatementHandle
setNull(int, int) - Method in class com.jolbox.bonecp.PreparedStatementHandle
setNull(int, int, String) - Method in class com.jolbox.bonecp.PreparedStatementHandle
setObject(String, Object) - Method in class com.jolbox.bonecp.CallableStatementHandle
setObject(String, Object, int) - Method in class com.jolbox.bonecp.CallableStatementHandle
setObject(String, Object, int, int) - Method in class com.jolbox.bonecp.CallableStatementHandle
setObject(int, Object) - Method in class com.jolbox.bonecp.PreparedStatementHandle
setObject(int, Object, int) - Method in class com.jolbox.bonecp.PreparedStatementHandle
setObject(int, Object, int, int) - Method in class com.jolbox.bonecp.PreparedStatementHandle
setOpenStackTrace(String) - Method in class com.jolbox.bonecp.StatementHandle
Sets the stack trace where this statement was first opened.
setOriginatingPartition(ConnectionPartition) - Method in class com.jolbox.bonecp.ConnectionHandle
Sets Originating partition
setPartitionCount(int) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets number of partitions to use.
setPassword(String) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets password to use for connections.
setPoolable(boolean) - Method in class com.jolbox.bonecp.StatementHandle
 
setPoolAvailabilityThreshold(int) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets the Pool Watch thread threshold.
setPoolName(String) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets the name of the pool for JMX and thread names.
setPreparedStatementsCacheSize(int) - Method in class com.jolbox.bonecp.BoneCPConfig
Deprecated. 
setProperties(Properties) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets the properties by reading off entries in the given parameter (where each key is equivalent to the field name)
setQueryExecuteTimeLimit(int) - Method in class com.jolbox.bonecp.BoneCPConfig
Deprecated. Use BoneCPConfig.setQueryExecuteTimeLimitInMs(long) instead.
setQueryExecuteTimeLimit(long, TimeUnit) - Method in class com.jolbox.bonecp.BoneCPConfig
Queries taking longer than this limit to execute are logged.
setQueryExecuteTimeLimitInMs(long) - Method in class com.jolbox.bonecp.BoneCPConfig
Queries taking longer than this limit to execute are logged.
setQueryTimeout(int) - Method in class com.jolbox.bonecp.StatementHandle
setReadOnly(boolean) - Method in class com.jolbox.bonecp.ConnectionHandle
 
setRef(int, Ref) - Method in class com.jolbox.bonecp.PreparedStatementHandle
setReleaseHelper(ExecutorService) - Method in class com.jolbox.bonecp.BoneCP
 
setReleaseHelperThreads(int) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets number of helper threads to create that will handle releasing a connection.
setReplayLog(List<ReplayLog>) - Method in class com.jolbox.bonecp.ConnectionHandle
Sets the transaction history log
setResult(Object) - Method in class com.jolbox.bonecp.proxy.TransactionRecoveryResult
Setter for result.
setRowId(String, RowId) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
setRowId(int, RowId) - Method in class com.jolbox.bonecp.PreparedStatementHandle
 
setSavepoint() - Method in class com.jolbox.bonecp.ConnectionHandle
 
setSavepoint(String) - Method in class com.jolbox.bonecp.ConnectionHandle
 
setSeed(long) - Method in class jsr166y.ThreadLocalRandom
Throws UnsupportedOperationException.
setServiceOrder(String) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets the queue serviceOrder.
setShort(String, short) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
setShort(int, short) - Method in class com.jolbox.bonecp.PreparedStatementHandle
setSQLXML(String, SQLXML) - Method in class com.jolbox.bonecp.CallableStatementHandle
 
setSQLXML(int, SQLXML) - Method in class com.jolbox.bonecp.PreparedStatementHandle
 
setStatementCacheSize(int) - Method in class com.jolbox.bonecp.BoneCPConfig
Deprecated. 
setStatementCloseHelperExecutor(ExecutorService) - Method in class com.jolbox.bonecp.BoneCP
Sets the statementCloseHelper field.
setStatementReleaseHelperThreads(int) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets number of statement helper threads to create that will handle releasing a statement.
setStatementsCachedPerConnection(int) - Method in class com.jolbox.bonecp.BoneCPConfig
Deprecated. 
setStatementsCacheSize(int) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets statementsCacheSize setting.
setStatisticsEnabled(boolean) - Method in class com.jolbox.bonecp.BoneCPConfig
If set to true, keep track of some more statistics for exposure via JMX.
setString(String, String) - Method in class com.jolbox.bonecp.CallableStatementHandle
setString(int, String) - Method in class com.jolbox.bonecp.PreparedStatementHandle
setTarget(Object) - Method in class com.jolbox.bonecp.ReplayLog
 
setThreadWatch(Thread) - Method in class com.jolbox.bonecp.ConnectionHandle
Sets the thread watching over this connection.
setTime(String, Time) - Method in class com.jolbox.bonecp.CallableStatementHandle
setTime(String, Time, Calendar) - Method in class com.jolbox.bonecp.CallableStatementHandle
setTime(int, Time) - Method in class com.jolbox.bonecp.PreparedStatementHandle
setTime(int, Time, Calendar) - Method in class com.jolbox.bonecp.PreparedStatementHandle
setTimestamp(String, Timestamp) - Method in class com.jolbox.bonecp.CallableStatementHandle
setTimestamp(String, Timestamp, Calendar) - Method in class com.jolbox.bonecp.CallableStatementHandle
setTimestamp(int, Timestamp) - Method in class com.jolbox.bonecp.PreparedStatementHandle
setTimestamp(int, Timestamp, Calendar) - Method in class com.jolbox.bonecp.PreparedStatementHandle
setTransactionIsolation(int) - Method in class com.jolbox.bonecp.ConnectionHandle
 
setTransactionRecoveryEnabled(boolean) - Method in class com.jolbox.bonecp.BoneCPConfig
Set to true to enable recording of all transaction activity and replay the transaction automatically in case of a connection failure.
setTypeMap(Map<String, Class<?>>) - Method in class com.jolbox.bonecp.ConnectionHandle
 
setUnableToCreateMoreTransactions(boolean) - Method in class com.jolbox.bonecp.ConnectionPartition
Sets connection creation possible status
setUnicodeStream(int, InputStream, int) - Method in class com.jolbox.bonecp.PreparedStatementHandle
Deprecated. 
setURL(String, URL) - Method in class com.jolbox.bonecp.CallableStatementHandle
setURL(int, URL) - Method in class com.jolbox.bonecp.PreparedStatementHandle
setUsername(String) - Method in class com.jolbox.bonecp.BoneCPConfig
Sets username to use for connections.
shutdown() - Method in class com.jolbox.bonecp.BoneCP
Closes off this connection pool.
size() - Method in class com.jolbox.bonecp.BoundedLinkedTransferQueue
 
size() - Method in interface com.jolbox.bonecp.IStatementCache
Returns size of the cache.
size() - Method in class com.jolbox.bonecp.StatementCache
Returns size of the cache.
size() - Method in class jsr166y.LinkedTransferQueue
Returns the number of elements in this queue.
sql - Variable in class com.jolbox.bonecp.StatementHandle
SQL Statement used for this statement.
StatementCache - Class in com.jolbox.bonecp
JDBC statement cache.
StatementCache(int, boolean, Statistics) - Constructor for class com.jolbox.bonecp.StatementCache
Creates a statement cache of given size.
statementCachingEnabled - Variable in class com.jolbox.bonecp.ConnectionHandle
Set to true if we have statement caching enabled.
StatementHandle - Class in com.jolbox.bonecp
Wrapper around JDBC Statement.
StatementHandle(Statement, String, IStatementCache, ConnectionHandle, String, boolean) - Constructor for class com.jolbox.bonecp.StatementHandle
Constructor to statement handle wrapper.
StatementHandle(Statement, ConnectionHandle, boolean) - Constructor for class com.jolbox.bonecp.StatementHandle
Constructor for empty statement (created via connection.createStatement)
StatementProxy - Interface in com.jolbox.bonecp.proxy
Just a way to get our proxy to work with driver-specific types.
StatementReleaseHelperThread - Class in com.jolbox.bonecp
A thread that monitors a queue containing statements to be closed.
StatementReleaseHelperThread(BlockingQueue<StatementHandle>, BoneCP) - Constructor for class com.jolbox.bonecp.StatementReleaseHelperThread
Helper Thread constructor.
Statistics - Class in com.jolbox.bonecp
Statistics class.
Statistics(BoneCP) - Constructor for class com.jolbox.bonecp.Statistics
BoneCP handle.
StatisticsMBean - Interface in com.jolbox.bonecp
MBean (JMX) contract.
statsLock - Variable in class com.jolbox.bonecp.ConnectionPartition
Statistics lock.
stringifyException(Throwable) - Static method in class com.jolbox.bonecp.PoolUtil
For backwards compatibility with JDK1.5 (SQLException doesn't accept the original exception).

T

take() - Method in class jsr166y.LinkedTransferQueue
 
terminateAllConnections() - Method in class com.jolbox.bonecp.BoneCP
Closes off all connections in all partitions.
terminationLock - Variable in class com.jolbox.bonecp.BoneCP
Prevent repeated termination of all connections when the DB goes down.
ThreadLocalRandom - Class in jsr166y
A random number generator isolated to the current thread.
threadUsingConnection - Variable in class com.jolbox.bonecp.ConnectionHandle
Keep track of the thread.
toString() - Method in class com.jolbox.bonecp.BoneCPConfig
 
toString() - Method in class com.jolbox.bonecp.ReplayLog
toString() - Method in class com.jolbox.bonecp.StatementHandle
 
trackConnectionFinalizer(ConnectionHandle) - Method in class com.jolbox.bonecp.ConnectionPartition
This method is a replacement for finalize() but avoids all its pitfalls (see Joshua Bloch et.
TransactionRecoveryResult - Class in com.jolbox.bonecp.proxy
Used to return multiple values in transaction recovery mode.
TransactionRecoveryResult() - Constructor for class com.jolbox.bonecp.proxy.TransactionRecoveryResult
 
transfer(E) - Method in class com.jolbox.bonecp.LIFOQueue
 
transfer(E) - Method in class jsr166y.LinkedTransferQueue
Transfers the element to a consumer, waiting if necessary to do so.
transfer(E) - Method in interface jsr166y.TransferQueue
Transfers the element to a consumer, waiting if necessary to do so.
TransferQueue<E> - Interface in jsr166y
A BlockingQueue in which producers may wait for consumers to receive elements.
tryTransfer(E) - Method in class com.jolbox.bonecp.BoundedLinkedTransferQueue
 
tryTransfer(E) - Method in class com.jolbox.bonecp.LIFOQueue
 
tryTransfer(E, long, TimeUnit) - Method in class com.jolbox.bonecp.LIFOQueue
 
tryTransfer(E) - Method in class jsr166y.LinkedTransferQueue
Transfers the element to a waiting consumer immediately, if possible.
tryTransfer(E, long, TimeUnit) - Method in class jsr166y.LinkedTransferQueue
Transfers the element to a consumer if it is possible to do so before the timeout elapses.
tryTransfer(E) - Method in interface jsr166y.TransferQueue
Transfers the element to a waiting consumer immediately, if possible.
tryTransfer(E, long, TimeUnit) - Method in interface jsr166y.TransferQueue
Transfers the element to a consumer if it is possible to do so before the timeout elapses.
tryTransferOffer(StatementHandle) - Method in class com.jolbox.bonecp.StatementHandle
Tries to move the item to a waiting consumer.

U

uncaughtException(Thread, Throwable) - Method in class com.jolbox.bonecp.CustomThreadFactory
unwrap(Class) - Method in class com.jolbox.bonecp.BoneCPDataSource
Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy.
unwrap(Class<T>) - Method in class com.jolbox.bonecp.ConnectionHandle
 
unwrap(Class<T>) - Method in class com.jolbox.bonecp.StatementHandle
 
updateCreatedConnections(int) - Method in class com.jolbox.bonecp.ConnectionPartition
Updates leased connections statistics
url - Variable in class com.jolbox.bonecp.ConnectionHandle
Connection url.
UsernamePassword - Class in com.jolbox.bonecp
Composite key handle for datasource.
UsernamePassword(String, String) - Constructor for class com.jolbox.bonecp.UsernamePassword
Default constructor.

V

valueOf(String) - Static method in enum com.jolbox.bonecp.hooks.ConnectionState
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.jolbox.bonecp.hooks.ConnectionState
Returns an array containing the constants of this enum type, in the order they are declared.

W

wasNull() - Method in class com.jolbox.bonecp.CallableStatementHandle

A B C D E F G H I J L M N O P Q R S T U V W

Copyright © 2009-2011 JolBox. All Rights Reserved.