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

A

abort(Executor) - Method in class snaq.db.CacheConnection
 
addBatch() - Method in class snaq.db.CachedPreparedStatement
 
addBatch(String) - Method in class snaq.db.CachedStatement
 
addConnectionPoolListener(ConnectionPoolListener) - Method in class snaq.db.ConnectionPool
Adds a ConnectionPoolListener to the event notification list.
addConnectionPoolManagerListener(ConnectionPoolManagerListener) - Method in class snaq.db.ConnectionPoolManager
Adds a ConnectionPoolManagerListener to the event notification list.
addObjectPoolListener(ObjectPoolListener<T>) - Method in class snaq.util.ObjectPool
Adds an listener to the event notification list.
AutoCommitValidator - Class in snaq.db
Validates database connections by issuing a setAutoCommit(true) method call on the connection.
AutoCommitValidator() - Constructor for class snaq.db.AutoCommitValidator
 

C

cacheable - Variable in class snaq.db.CachedStatement
Flag indicating whether the statement can be cached.
CacheConnection - Class in snaq.db
Connection wrapper that implements statement caching.
CacheConnection(ConnectionPool, Connection) - Constructor for class snaq.db.CacheConnection
Creates a new CacheConnection object, using the supplied Connection.
CachedCallableStatement - Class in snaq.db
CallableStatement wrapper that provides caching support.
CachedCallableStatement(String, CallableStatement) - Constructor for class snaq.db.CachedCallableStatement
Creates a new CachedCallableStatement instance, using the supplied CallableStatement.
CachedPreparedStatement - Class in snaq.db
PreparedStatement wrapper that provides caching support.
CachedPreparedStatement(String, PreparedStatement) - Constructor for class snaq.db.CachedPreparedStatement
Creates a new CachedPreparedStatement object, using the supplied PreparedStatement.
CachedStatement - Class in snaq.db
Statement wrapper that provides methods for caching support.
CachedStatement(Statement) - Constructor for class snaq.db.CachedStatement
Creates a new CachedStatement instance, using the supplied Statement.
cancel() - Method in class snaq.db.CachedStatement
 
checkIn(T) - Method in class snaq.util.ObjectPool
Checks an object into the pool, and notifies other threads that may be waiting for one to become available.
CHECKIN - Static variable in class snaq.util.ObjectPoolEvent
 
checking - Variable in class snaq.db.CachedStatement
Flag indicating a temporary "checking" status (used internally).
checkOut() - Method in class snaq.util.ObjectPool
Checks out an item from the pool.
checkOut(long) - Method in class snaq.util.ObjectPool
Checks out an item from the pool.
CHECKOUT - Static variable in class snaq.util.ObjectPoolEvent
 
checkResults(ResultSet) - Method in class snaq.db.QueryValidator
Checks the results of the SQL query to see if it indicates a valid connection.
checkResults(ResultSet) - Method in class snaq.db.SimpleQueryValidator
Checks the results of the SQL query to see if it indicates a valid connection.
clearBatch() - Method in class snaq.db.CachedStatement
 
clearParameters() - Method in class snaq.db.CachedPreparedStatement
 
clearWarnings() - Method in class snaq.db.CacheConnection
 
clearWarnings() - Method in class snaq.db.CachedStatement
 
close() - Method in class snaq.db.CacheConnection
Overrides method to provide caching support.
close() - Method in class snaq.db.CachedStatement
Overridden to provide caching support.
close() - Method in class snaq.db.SQLUpdate
Closes the current database connection.
close() - Method in class snaq.util.logging.LogUtil
Closes the log.
closeOnCompletion() - Method in class snaq.db.CachedStatement
 
commit() - Method in class snaq.db.CacheConnection
 
compareTo(ConnectionPoolManager) - Method in class snaq.db.ConnectionPoolManager
Compares this object with the specified object for order.
compareTo(ObjectPool<T>) - Method in class snaq.util.ObjectPool
Compares this object with the specified object for order.
ConnectionPool - Class in snaq.db
Implementation of a database connection pool.
ConnectionPool(String, int, int, int, long, String, String, String) - Constructor for class snaq.db.ConnectionPool
Creates a new ConnectionPool instance.
ConnectionPool(String, int, int, long, String, String, String) - Constructor for class snaq.db.ConnectionPool
Creates a new ConnectionPool instance (with minPool=0).
ConnectionPool(String, int, int, int, long, String, Properties) - Constructor for class snaq.db.ConnectionPool
Creates a new ConnectionPool instance.
ConnectionPool(String, int, int, long, String, Properties) - Constructor for class snaq.db.ConnectionPool
Creates a new ConnectionPool instance (with minPool=0).
ConnectionPoolEvent - Class in snaq.db
Event for signalling changes in ConnectionPool instances.
ConnectionPoolEvent(ObjectPool<CacheConnection>, int) - Constructor for class snaq.db.ConnectionPoolEvent
 
ConnectionPoolEventAdapter - Class in snaq.db
Adapter implementation for handling ConnectionPoolEvent objects for ConnectionPool instances.
ConnectionPoolEventAdapter() - Constructor for class snaq.db.ConnectionPoolEventAdapter
 
ConnectionPoolListener - Interface in snaq.db
Listener for ConnectionPoolEvent instances.
ConnectionPoolManager - Class in snaq.db
Class to provide access and management for multiple connection pools defined in a properties file or object.
ConnectionPoolManagerEvent - Class in snaq.db
Event for signalling changes in ConnectionPoolManager instances.
ConnectionPoolManagerEvent(ConnectionPoolManager) - Constructor for class snaq.db.ConnectionPoolManagerEvent
 
ConnectionPoolManagerListener - Interface in snaq.db
Listener for ConnectionPoolManagerEvent instances.
ConnectionValidator - Interface in snaq.db
Interface for validating database connections.
create() - Method in class snaq.db.ConnectionPool
Creates a new Connection object.
create() - Method in class snaq.util.ObjectPool
Object creation method.
createArrayOf(String, Object[]) - Method in class snaq.db.CacheConnection
 
createBlob() - Method in class snaq.db.CacheConnection
 
createClob() - Method in class snaq.db.CacheConnection
 
createConnectionPool() - Method in class snaq.db.DBPoolDataSource
Creates a new DBPoolDataSource instance.
createInstance(Properties) - Static method in class snaq.db.ConnectionPoolManager
Creates a singleton instance of the ConnectionPoolManager for the specified Properties object.
createNClob() - Method in class snaq.db.CacheConnection
 
createObjectPoolMBean(ObjectPool<T>) - Static method in class snaq.util.JmxUtils
Creates a ModelMBean for the specified ObjectPool.
createSQLXML() - Method in class snaq.db.CacheConnection
 
createStatement() - Method in class snaq.db.CacheConnection
Overrides method to provide caching support.
createStatement(int, int) - Method in class snaq.db.CacheConnection
Overrides method to provide caching support.
createStatement(int, int, int) - Method in class snaq.db.CacheConnection
Overrides method to provide caching support.
createStruct(String, Object[]) - Method in class snaq.db.CacheConnection
 

D

DBPoolDataSource - Class in snaq.db
A DataSource implementation which produces Connection instances.
DBPoolDataSource() - Constructor for class snaq.db.DBPoolDataSource
Creates a new DBPoolDataSource instance.
DBPoolDataSourceFactory - Class in snaq.db
Factory for creating instances of the DBPoolDataSource class.
DBPoolDataSourceFactory() - Constructor for class snaq.db.DBPoolDataSourceFactory
 
DBPoolLegacyFormatter - Class in snaq.util.logging
Implementation of a simple single-line log Formatter for use with the Java Logging API.
DBPoolLegacyFormatter() - Constructor for class snaq.util.logging.DBPoolLegacyFormatter
 
debug(String) - Method in class snaq.util.logging.LogUtil
If debug is enabled, writes a message to the log.
debug(String, String) - Method in class snaq.util.logging.LogUtil
If debug is enabled, writes a message to the log with an optional prefix.
debug(String, Throwable) - Method in class snaq.util.logging.LogUtil
If debug is enabled, writes a message with a Throwable to the log file.
decode(String) - Method in interface snaq.db.PasswordDecoder
Returns a char array representing the decoded version of the specified encoded password.
decode(String) - Method in class snaq.db.RotDecoder
 
destroy(CacheConnection) - Method in class snaq.db.ConnectionPool
Closes the specified CacheConnection object.
destroy(T) - Method in class snaq.util.ObjectPool
Object destruction method.
dispatchEvent(E) - Method in class snaq.util.EventDispatcher
Schedules the specified event for listener notification.
doStatement(String) - Method in class snaq.db.SQLUpdate
Issues a statement to the database.
driver - Variable in class snaq.db.DBPoolDataSource
Driver to use for database access.

E

equals(Object) - Method in class snaq.db.ConnectionPoolManager
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class snaq.util.ObjectPool
Indicates whether some other object is "equal to" this one.
EventDispatcher<L extends EventListener,E extends EventObject> - Class in snaq.util
Utility class to perform asynchronous event dispatch.
EventDispatcher(List<L>, EventNotifier<L, E>) - Constructor for class snaq.util.EventDispatcher
 
EventNotifier<L extends EventListener,E extends EventObject> - Interface in snaq.util
Interface defining an object that can notify an event listener.
execute() - Method in class snaq.db.CachedPreparedStatement
 
execute(String) - Method in class snaq.db.CachedStatement
 
execute(String, int) - Method in class snaq.db.CachedStatement
 
execute(String, int[]) - Method in class snaq.db.CachedStatement
 
execute(String, String[]) - Method in class snaq.db.CachedStatement
 
executeBatch() - Method in class snaq.db.CachedStatement
 
executeQuery() - Method in class snaq.db.CachedPreparedStatement
 
executeQuery(String) - Method in class snaq.db.CachedStatement
 
executeUpdate() - Method in class snaq.db.CachedPreparedStatement
 
executeUpdate(String) - Method in class snaq.db.CachedStatement
 
executeUpdate(String, int) - Method in class snaq.db.CachedStatement
 
executeUpdate(String, int[]) - Method in class snaq.db.CachedStatement
 
executeUpdate(String, String[]) - Method in class snaq.db.CachedStatement
 

F

flush() - Method in class snaq.util.ObjectPool
Flushes the pool of all currently available items, emptying the pool.
flushOpenCallableStatements() - Method in class snaq.db.CacheConnection
Flushes the open CallableStatement cache for this connection.
flushOpenNonCacheableStatements() - Method in class snaq.db.CacheConnection
Flushes the non-cacheable Statement instances for this connection.
flushOpenPreparedStatements() - Method in class snaq.db.CacheConnection
Flushes the open PreparedStatement cache for this connection.
flushOpenStatements() - Method in class snaq.db.CacheConnection
Flushes the open Statement cache for this connection.
flushSpareCallableStatements() - Method in class snaq.db.CacheConnection
Flushes the spare CallableStatement cache for this connection.
flushSparePreparedStatements() - Method in class snaq.db.CacheConnection
Flushes the spare PreparedStatement cache for this connection.
flushSpareStatements() - Method in class snaq.db.CacheConnection
Flushes the spare Statement caches for this connection.
format(LogRecord) - Method in class snaq.util.logging.TerseFormatter
Deprecated.
 
freeConnection(Connection) - Method in class snaq.db.ConnectionPool
Returns a Connection to the pool (for internal use only).

G

getArray(int) - Method in class snaq.db.CachedCallableStatement
 
getArray(String) - Method in class snaq.db.CachedCallableStatement
 
getAutoCommit() - Method in class snaq.db.CacheConnection
 
getBigDecimal(int, int) - Method in class snaq.db.CachedCallableStatement
 
getBigDecimal(int) - Method in class snaq.db.CachedCallableStatement
 
getBigDecimal(String) - Method in class snaq.db.CachedCallableStatement
 
getBlob(int) - Method in class snaq.db.CachedCallableStatement
 
getBlob(String) - Method in class snaq.db.CachedCallableStatement
 
getBoolean(int) - Method in class snaq.db.CachedCallableStatement
 
getBoolean(String) - Method in class snaq.db.CachedCallableStatement
 
getByte(int) - Method in class snaq.db.CachedCallableStatement
 
getByte(String) - Method in class snaq.db.CachedCallableStatement
 
getBytes(int) - Method in class snaq.db.CachedCallableStatement
 
getBytes(String) - Method in class snaq.db.CachedCallableStatement
 
getCatalog() - Method in class snaq.db.CacheConnection
 
getCharacterStream(int) - Method in class snaq.db.CachedCallableStatement
 
getCharacterStream(String) - Method in class snaq.db.CachedCallableStatement
 
getCheckedOut() - Method in class snaq.util.ObjectPool
Returns the number of items that are currently checked-out.
getCheckedOut() - Method in class snaq.util.ObjectPoolEvent
 
getClientInfo(String) - Method in class snaq.db.CacheConnection
 
getClientInfo() - Method in class snaq.db.CacheConnection
 
getClob(int) - Method in class snaq.db.CachedCallableStatement
 
getClob(String) - Method in class snaq.db.CachedCallableStatement
 
getConnection() - Method in class snaq.db.CacheConnection
 
getConnection() - Method in class snaq.db.CachedStatement
 
getConnection() - Method in class snaq.db.ConnectionPool
Gets a Connection from the pool.
getConnection(long) - Method in class snaq.db.ConnectionPool
Gets a Connection from the pool, waiting a maximum of timeout milliseconds for one to become available, returning null if not.
getConnection(String) - Method in class snaq.db.ConnectionPoolManager
Returns an open Connection from the specified ConnectionPool.
getConnection(String, long) - Method in class snaq.db.ConnectionPoolManager
Returns an open Connection from the specified pool.
getConnection() - Method in class snaq.db.DBPoolDataSource
Attempts to establish a connection with the database.
getConnection(String, String) - Method in class snaq.db.DBPoolDataSource
Attempts to establish a connection with the database.
getConnectionPool() - Method in class snaq.db.ConnectionPoolEvent
 
getConnectionPoolManager() - Method in class snaq.db.ConnectionPoolManagerEvent
 
getCustomLogger() - Method in class snaq.util.ObjectPool
Returns the custom LogUtil instance being used, or null if it doesn't exist.
getDate(int) - Method in class snaq.db.CachedCallableStatement
 
getDate(int, Calendar) - Method in class snaq.db.CachedCallableStatement
 
getDate(String) - Method in class snaq.db.CachedCallableStatement
 
getDate(String, Calendar) - Method in class snaq.db.CachedCallableStatement
 
getDateFormat() - Method in class snaq.util.logging.TerseFormatter
Deprecated.
 
getDelegateConnection() - Method in class snaq.db.CacheConnection
Returns the delegate Connection instance for which this provides a wrapper.
getDescription() - Method in class snaq.db.DBPoolDataSource
Returns the description of this DataSource.
getDouble(int) - Method in class snaq.db.CachedCallableStatement
 
getDouble(String) - Method in class snaq.db.CachedCallableStatement
 
getDriverClassName() - Method in class snaq.db.DBPoolDataSource
Returns the fully-qualified class name for the JDBC driver to use.
getFetchDirection() - Method in class snaq.db.CachedStatement
 
getFetchSize() - Method in class snaq.db.CachedStatement
 
getFloat(int) - Method in class snaq.db.CachedCallableStatement
 
getFloat(String) - Method in class snaq.db.CachedCallableStatement
 
getFreeCount() - Method in class snaq.util.ObjectPool
Returns the number of items held in the pool that are free to be checked-out.
getFreeCount() - Method in class snaq.util.ObjectPoolEvent
 
getGeneratedKeys() - Method in class snaq.db.CachedStatement
 
getHoldability() - Method in class snaq.db.CacheConnection
 
getIdleTimeout() - Method in class snaq.db.DBPoolDataSource
Returns the idle timeout (seconds) for connections in the underlying ConnectionPool.
getIdleTimeout() - Method in class snaq.util.ObjectPool
Returns the idle timeout for unused items in the pool.
getIdleTimeout() - Method in class snaq.util.ObjectPoolEvent
 
getIdleTimeoutMultiplier() - Method in class snaq.db.ConnectionPool
 
getIdleTimeoutMultiplier() - Method in class snaq.util.ObjectPool
Returns the multiplier for adjusting the idle timeout unit.
getIdleTimeoutUnadjusted() - Method in class snaq.util.ObjectPool
Returns the idle timeout for unused items in the pool (in milliseconds).
getInstance(String, String) - Static method in class snaq.db.ConnectionPoolManager
Returns the singleton instance of the ConnectionPoolManager for the specified properties file.
getInstance(String) - Static method in class snaq.db.ConnectionPoolManager
Returns the singleton instance of the ConnectionPoolManager for the specified properties file.
getInstance(File, String) - Static method in class snaq.db.ConnectionPoolManager
Returns the singleton instance of the ConnectionPoolManager for the specified properties file.
getInstance(File) - Static method in class snaq.db.ConnectionPoolManager
Returns the singleton instance of the ConnectionPoolManager for the specified properties file.
getInstance() - Static method in class snaq.db.ConnectionPoolManager
Returns the standard singleton instance of the ConnectionPoolManager.
getInstances() - Static method in class snaq.db.ConnectionPoolManager
Returns a Set containing all the current ConnectionPoolManager instances.
getInt(int) - Method in class snaq.db.CachedCallableStatement
 
getInt(String) - Method in class snaq.db.CachedCallableStatement
 
getLoginTimeout() - Method in class snaq.db.DBPoolDataSource
 
getLogWriter() - Method in class snaq.db.DBPoolDataSource
Retrieves the log writer for this DataSource.
getLogWriter() - Method in class snaq.util.logging.LogUtil
Returns the current PrintWriter used to write to the log.
getLong(int) - Method in class snaq.db.CachedCallableStatement
 
getLong(String) - Method in class snaq.db.CachedCallableStatement
 
getMajorVersion() - Static method in class snaq.db.JDBCInfo
 
getMaxFieldSize() - Method in class snaq.db.CachedStatement
 
getMaximumCleaningInterval() - Method in class snaq.db.ConnectionPool
Specifies the maximum time interval between cleaning attempts of the Cleaner thread.
getMaximumCleaningInterval() - Method in class snaq.util.ObjectPool
Specifies the maximum time interval between cleaning attempts of the Cleaner thread (milliseconds).
getMaxPool() - Method in class snaq.db.DBPoolDataSource
Returns the maximum number of pooled connections in the underlying ConnectionPool.
getMaxPool() - Method in class snaq.util.ObjectPool
Returns the maximum number of items that can be pooled.
getMaxPool() - Method in class snaq.util.ObjectPoolEvent
 
getMaxRows() - Method in class snaq.db.CachedStatement
 
getMaxSize() - Method in class snaq.db.DBPoolDataSource
Returns the maximum number of connections in the underlying ConnectionPool.
getMaxSize() - Method in class snaq.util.ObjectPool
Returns the maximum number of items that can be created.
getMaxSize() - Method in class snaq.util.ObjectPoolEvent
 
getMessageFormatInstance() - Method in class snaq.util.PoolTracer
Returns the current MessageFormat instance used for formatting log messages.
getMetaData() - Method in class snaq.db.CacheConnection
 
getMetaData() - Method in class snaq.db.CachedPreparedStatement
 
getMinimumCleaningInterval() - Method in class snaq.db.ConnectionPool
Specifies the minimum time interval between cleaning attempts of the Cleaner thread.
getMinimumCleaningInterval() - Method in class snaq.util.ObjectPool
Specifies the minimum time interval between cleaning attempts of the Cleaner thread (milliseconds).
getMinorVersion() - Static method in class snaq.db.JDBCInfo
 
getMinPool() - Method in class snaq.db.DBPoolDataSource
Returns the minimum number of pooled connections in the underlying ConnectionPool.
getMinPool() - Method in class snaq.util.ObjectPool
Returns the minimum number of items that should be kept pooled.
getMinPool() - Method in class snaq.util.ObjectPoolEvent
 
getMoreResults() - Method in class snaq.db.CachedStatement
 
getMoreResults(int) - Method in class snaq.db.CachedStatement
 
getName() - Method in class snaq.db.ConnectionPoolManager
Returns the pool manager's name.
getName() - Method in class snaq.db.DBPoolDataSource
Returns the JNDI name of the DBPoolDataSource instance.
getName() - Method in class snaq.util.ObjectPool
Returns the pool name.
getNCharacterStream(int) - Method in class snaq.db.CachedCallableStatement
 
getNCharacterStream(String) - Method in class snaq.db.CachedCallableStatement
 
getNClob(int) - Method in class snaq.db.CachedCallableStatement
 
getNClob(String) - Method in class snaq.db.CachedCallableStatement
 
getNetworkTimeout() - Method in class snaq.db.CacheConnection
 
getNString(int) - Method in class snaq.db.CachedCallableStatement
 
getNString(String) - Method in class snaq.db.CachedCallableStatement
 
getObject(int) - Method in class snaq.db.CachedCallableStatement
 
getObject(int, Map<String, Class<?>>) - Method in class snaq.db.CachedCallableStatement
 
getObject(String) - Method in class snaq.db.CachedCallableStatement
 
getObject(String, Map<String, Class<?>>) - Method in class snaq.db.CachedCallableStatement
 
getObject(int, Class<T>) - Method in class snaq.db.CachedCallableStatement
 
getObject(String, Class<T>) - Method in class snaq.db.CachedCallableStatement
 
getObject() - Method in class snaq.util.TimeWrapper
Returns the object referenced by this wrapper.
getObjectInstance(Object, Name, Context, Hashtable<?, ?>) - Method in class snaq.db.DBPoolDataSourceFactory
Creates a DBPoolDataSource instance using the location or reference information specified.
getOpenCallableStatementCount() - Method in class snaq.db.CacheConnection
Returns the current number of CallableStatement instances that are in use.
getOpenNonCacheableStatementCount() - Method in class snaq.db.CacheConnection
Returns the current number of non-cacheable statements that are in use.
getOpenPreparedStatementCount() - Method in class snaq.db.CacheConnection
Returns the current number of PreparedStatement instances that are in use (not including CallableStatement instances).
getOpenStatementCount() - Method in class snaq.db.CacheConnection
Returns the current number of Statement instances that are in use (not including PreparedStatement or CallableStatement instances).
getParameterMetaData() - Method in class snaq.db.CachedPreparedStatement
 
getParametersString() - Method in class snaq.db.CachedStatement
Returns a string description of the ResultSet parameters.
getParametersString() - Method in class snaq.util.ObjectPool
Returns a summary string of the pool's parameters.
getParentLogger() - Method in class snaq.db.DBPoolDataSource
 
getPassword() - Method in class snaq.db.DBPoolDataSource
Returns the password to use with this DataSource.
getPasswordDecoder() - Method in class snaq.db.ConnectionPool
Returns the current PasswordDecoder class.
getPasswordDecoderClassName() - Method in class snaq.db.DBPoolDataSource
Returns the fully-qualified class name of the PasswordDecoder.
getPool() - Method in class snaq.db.CacheConnection
Returns the ConnectionPool to which this CacheConnection belongs.
getPool(String) - Method in class snaq.db.ConnectionPoolManager
Returns one of the ConnectionPool instances by name.
getPool() - Method in class snaq.util.ObjectPoolEvent
Returns the pool for which this event was created.
getPoolClass() - Method in class snaq.util.ObjectPool
Returns the class to use for the pool collection.
getPoolHitRate() - Method in class snaq.util.ObjectPool
Returns hit rate of the pool (between 0 and 1).
getPoolHitRate() - Method in class snaq.util.ObjectPoolEvent
 
getPoolMissRate() - Method in class snaq.util.ObjectPool
Returns miss rate of the pool (between 0 and 1).
getPools() - Method in class snaq.db.ConnectionPoolManager
Returns all the current ConnectionPool instances maintained by this manager.
getQueryString() - Method in class snaq.db.QueryValidator
Returns the SQL query string to be issued to the database.
getQueryString() - Method in class snaq.db.SimpleQueryValidator
Returns the SQL query string to be issued to the database.
getQueryTimeout() - Method in class snaq.db.CachedStatement
 
getRef(int) - Method in class snaq.db.CachedCallableStatement
 
getRef(String) - Method in class snaq.db.CachedCallableStatement
 
getRequestCount() - Method in class snaq.util.ObjectPool
Returns the number of check-out requests that have been made to the pool since either its creation or the last time the ObjectPool.resetHitCounter() method was called.
getResultSet() - Method in class snaq.db.CachedStatement
 
getResultSetConcurrency() - Method in class snaq.db.CachedStatement
 
getResultSetHoldability() - Method in class snaq.db.CachedStatement
 
getResultSetType() - Method in class snaq.db.CachedStatement
 
getRowId(int) - Method in class snaq.db.CachedCallableStatement
 
getRowId(String) - Method in class snaq.db.CachedCallableStatement
 
getSchema() - Method in class snaq.db.CacheConnection
 
getSelectionStrategy() - Method in class snaq.db.DBPoolDataSource
Returns a string denoting the pool selection strategy to use (one of LIFO/FIFO/RANDOM).
getShort(int) - Method in class snaq.db.CachedCallableStatement
 
getShort(String) - Method in class snaq.db.CachedCallableStatement
 
getSize() - Method in class snaq.util.ObjectPool
Returns the total number of objects held (available and checked-out).
getSize() - Method in class snaq.util.ObjectPoolEvent
 
getSpareCallableStatementCount() - Method in class snaq.db.CacheConnection
Returns the current number of spare CallableStatement instances that are cached.
getSparePreparedStatementCount() - Method in class snaq.db.CacheConnection
Returns the current number of spare PreparedStatement instances that are cached.
getSpareStatementCount() - Method in class snaq.db.CacheConnection
Returns the current number of spare Statements that are cached.
getSQLXML(int) - Method in class snaq.db.CachedCallableStatement
 
getSQLXML(String) - Method in class snaq.db.CachedCallableStatement
 
getString(int) - Method in class snaq.db.CachedCallableStatement
 
getString(String) - Method in class snaq.db.CachedCallableStatement
 
getTime(int) - Method in class snaq.db.CachedCallableStatement
 
getTime(int, Calendar) - Method in class snaq.db.CachedCallableStatement
 
getTime(String) - Method in class snaq.db.CachedCallableStatement
 
getTime(String, Calendar) - Method in class snaq.db.CachedCallableStatement
 
getTimestamp(int) - Method in class snaq.db.CachedCallableStatement
 
getTimestamp(int, Calendar) - Method in class snaq.db.CachedCallableStatement
 
getTimestamp(String) - Method in class snaq.db.CachedCallableStatement
 
getTimestamp(String, Calendar) - Method in class snaq.db.CachedCallableStatement
 
getTransactionIsolation() - Method in class snaq.db.CacheConnection
 
getType() - Method in class snaq.util.ObjectPoolEvent
Returns the type of event this object represents.
getTypeMap() - Method in class snaq.db.CacheConnection
 
getTypeString() - Method in class snaq.util.ObjectPoolEvent
Returns the type of event this object represents as a string.
getUpdateCount() - Method in class snaq.db.CachedStatement
 
getURL(int) - Method in class snaq.db.CachedCallableStatement
 
getURL(String) - Method in class snaq.db.CachedCallableStatement
 
getUrl() - Method in class snaq.db.DBPoolDataSource
Returns the JDBC URL to use with this DataSource.
getUser() - Method in class snaq.db.DBPoolDataSource
Returns the username to use with this DataSource.
getValidationQuery() - Method in class snaq.db.DBPoolDataSource
Returns the SQL query string to issue for connection validation.
getValidator() - Method in class snaq.db.ConnectionPool
Returns the current ConnectionValidator class.
getValidatorClassName() - Method in class snaq.db.DBPoolDataSource
Returns the fully-qualified class name of the ConnectionValidator.
getVersionString() - Static method in class snaq.db.JDBCInfo
 
getWarnings() - Method in class snaq.db.CacheConnection
 
getWarnings() - Method in class snaq.db.CachedStatement
 

H

halt() - Method in class snaq.util.EventDispatcher
Halts this thread (use instead of Thread.stop()).
hashCode() - Method in class snaq.db.ConnectionPoolManager
Returns a hash code value for the object.
hashCode() - Method in class snaq.util.ObjectPool
Returns a hash code value for the object.

I

init() - Method in class snaq.util.ObjectPool
Initializes the pool with the default (i.e.
init(int) - Method in class snaq.util.ObjectPool
Asynchronously initializes up to the specified number of items in the pool.
INIT_COMPLETED - Static variable in class snaq.util.ObjectPoolEvent
 
isAsyncDestroy() - Method in class snaq.util.ObjectPool
Returns whether asynchronous object destruction is enabled.
isCachingAllStatements() - Method in class snaq.db.CacheConnection
Returns whether caching of all Statement instances is enabled.
isCachingCallableStatements() - Method in class snaq.db.CacheConnection
Returns whether caching of CallableStatement instances is enabled.
isCachingCallableStatements() - Method in class snaq.db.ConnectionPool
Returns whether the pool caches CallableStatement instances for each connection.
isCachingPreparedStatements() - Method in class snaq.db.CacheConnection
Returns whether caching of PreparedStatement instances is enabled.
isCachingPreparedStatements() - Method in class snaq.db.ConnectionPool
Returns whether the pool caches PreparedStatement instances for each connection.
isCachingStatements() - Method in class snaq.db.CacheConnection
Returns whether caching of standard Statement instances is enabled.
isCachingStatements() - Method in class snaq.db.ConnectionPool
Returns whether the pool caches Statement instances for each connection.
isClosed() - Method in class snaq.db.CacheConnection
 
isClosed() - Method in class snaq.db.CachedStatement
 
isCloseOnCompletion() - Method in class snaq.db.CachedStatement
 
isDebug() - Method in class snaq.util.logging.LogUtil
Returns whether debug logging is enabled.
isDirty() - Method in class snaq.db.CacheConnection
Determines if this object is "dirty" (i.e.
isDirty() - Method in interface snaq.util.Reusable
Determines if this object is "dirty" (i.e.
isExpired() - Method in class snaq.util.TimeWrapper
Whether this item has expired.
isLogging() - Method in class snaq.util.logging.LogUtil
Returns whether calls to the logging methods actually write to the log.
isMaxPoolLimitExceeded() - Method in class snaq.util.ObjectPoolEvent
 
isMaxPoolLimitReached() - Method in class snaq.util.ObjectPoolEvent
 
isMaxSizeLimitError() - Method in class snaq.util.ObjectPoolEvent
 
isMaxSizeLimitReached() - Method in class snaq.util.ObjectPoolEvent
 
isPoolable() - Method in class snaq.db.CachedStatement
Returns whether this statement is poolable.
isPoolCheckIn() - Method in class snaq.util.ObjectPoolEvent
 
isPoolCheckOut() - Method in class snaq.util.ObjectPoolEvent
 
isPoolFlushed() - Method in class snaq.util.ObjectPoolEvent
 
isPoolInitCompleted() - Method in class snaq.util.ObjectPoolEvent
 
isPoolParametersChanged() - Method in class snaq.util.ObjectPoolEvent
 
isPoolReleased() - Method in class snaq.util.ObjectPoolEvent
 
isReadOnly() - Method in class snaq.db.CacheConnection
 
isRecycleAfterDelegateUse() - Method in class snaq.db.ConnectionPool
Returns whether connections may be recycled if the underlying raw/delegate connection has been used.
isReleased() - Method in class snaq.db.ConnectionPoolManager
Returns whether this instance has been released (and therefore is unusable).
isReleased() - Method in class snaq.util.ObjectPool
Returns whether the pool has been released (and can no longer be used).
isValid(Connection) - Method in class snaq.db.AutoCommitValidator
Determines whether the specified connection is good to use.
isValid(int) - Method in class snaq.db.CacheConnection
 
isValid(CacheConnection) - Method in class snaq.db.ConnectionPool
Validates a CacheConnection object.
isValid(Connection) - Method in interface snaq.db.ConnectionValidator
Determines whether the specified connection is good to use.
isValid(Connection) - Method in class snaq.db.QueryValidator
Determines whether the specified connection is good to use.
isValid(T) - Method in class snaq.util.ObjectPool
Object validation method.
isValidationError() - Method in class snaq.util.ObjectPoolEvent
 
isWrapperFor(Class<?>) - Method in class snaq.db.CacheConnection
 
isWrapperFor(Class<?>) - Method in class snaq.db.CachedStatement
 
isWrapperFor(Class<?>) - Method in class snaq.db.DBPoolDataSource
 

J

JDBCInfo - Class in snaq.db
Simple command-line application to output basic details of the host Java Virtual Machine and its JDBC version compatibility.
JmxUtils - Class in snaq.util
Utility class for providing ObjectPool JMX support.
JmxUtils() - Constructor for class snaq.util.JmxUtils
 

L

loadTextFile(File) - Static method in class snaq.db.SQLUpdate
Loads a text file into a string.
log(String) - Method in class snaq.db.DBPoolDataSource
Writes a message to the log.
log(String, Throwable) - Method in class snaq.db.DBPoolDataSource
Writes a message with a Throwable to the log file.
log(String) - Method in class snaq.util.logging.LogUtil
Writes a message to the log.
log(String, String) - Method in class snaq.util.logging.LogUtil
Writes a message to the log with an optional prefix.
log(String, String, Throwable) - Method in class snaq.util.logging.LogUtil
Writes a message with a Throwable to the log file.
log(String, Throwable) - Method in class snaq.util.logging.LogUtil
Writes a message with a Throwable to the log file.
log(Throwable) - Method in class snaq.util.logging.LogUtil
Writes a Throwable to the log file.
log - Variable in class snaq.util.ObjectPool
SLF4J logger instance for writing log entries.
log_debug(String) - Method in class snaq.db.CacheConnection
Logging relay method (to prefix pool name).
log_debug(String, Throwable) - Method in class snaq.db.CacheConnection
Logging relay method (to prefix pool name).
log_debug(String) - Method in class snaq.db.ConnectionPoolManager
Logging relay method (to prefix pool name).
log_debug(String, Throwable) - Method in class snaq.db.ConnectionPoolManager
Logging relay method (to prefix pool name).
log_debug(String) - Method in class snaq.util.ObjectPool
Logging relay method (to prefix pool name).
log_debug(String, Throwable) - Method in class snaq.util.ObjectPool
Logging relay method (to prefix pool name).
log_error(String) - Method in class snaq.db.ConnectionPoolManager
Logging relay method (to prefix pool name).
log_error(String, Throwable) - Method in class snaq.db.ConnectionPoolManager
Logging relay method (to prefix pool name).
log_error(String) - Method in class snaq.util.ObjectPool
Logging relay method (to prefix pool name).
log_error(String, Throwable) - Method in class snaq.util.ObjectPool
Logging relay method (to prefix pool name).
log_info(String) - Method in class snaq.db.ConnectionPoolManager
Logging relay method (to prefix pool name).
log_info(String, Throwable) - Method in class snaq.db.ConnectionPoolManager
Logging relay method (to prefix pool name).
log_info(String) - Method in class snaq.util.ObjectPool
Logging relay method (to prefix pool name).
log_info(String, Throwable) - Method in class snaq.util.ObjectPool
Logging relay method (to prefix pool name).
log_trace(String) - Method in class snaq.db.ConnectionPoolManager
Logging relay method (to prefix pool name).
log_trace(String, Throwable) - Method in class snaq.db.ConnectionPoolManager
Logging relay method (to prefix pool name).
log_trace(String) - Method in class snaq.util.ObjectPool
Logging relay method (to prefix pool name).
log_trace(String, Throwable) - Method in class snaq.util.ObjectPool
Logging relay method (to prefix pool name).
log_warn(String) - Method in class snaq.db.CacheConnection
Logging relay method (to prefix pool name).
log_warn(String, Throwable) - Method in class snaq.db.CacheConnection
Logging relay method (to prefix pool name).
log_warn(String) - Method in class snaq.db.ConnectionPoolManager
Logging relay method (to prefix pool name).
log_warn(String, Throwable) - Method in class snaq.db.ConnectionPoolManager
Logging relay method (to prefix pool name).
log_warn(String) - Method in class snaq.util.ObjectPool
Logging relay method (to prefix pool name).
log_warn(String, Throwable) - Method in class snaq.util.ObjectPool
Logging relay method (to prefix pool name).
logger - Variable in class snaq.db.CacheConnection
SLF4J logger instance for writing log entries.
logger - Static variable in class snaq.db.DBPoolDataSource
SLF4J shared instance for writing log entries.
logger - Static variable in class snaq.db.DBPoolDataSourceFactory
SLF4J shared instance for writing log entries.
logger - Static variable in class snaq.db.SQLUpdate
SLF4J shared instance for writing log entries.
logPoolStats(ObjectPoolEvent<T>) - Method in class snaq.util.PoolTracer
Writes an entry containing the pool statistics to the log file.
LogUtil - Class in snaq.util.logging
Class providing simple logging and debug functionality, which can be easily instantiated and used as a logging object.
LogUtil() - Constructor for class snaq.util.logging.LogUtil
Creates a new Logger with logging disabled.
LogUtil(File) - Constructor for class snaq.util.logging.LogUtil
Creates a new Logger which writes to the specified file.
logWriter - Variable in class snaq.db.DBPoolDataSource
PrintWriter instance used for logging.

M

main(String[]) - Static method in class snaq.db.JDBCInfo
 
main(String[]) - Static method in class snaq.db.RotDecoder
Method included as convenience for testing.
main(String[]) - Static method in class snaq.db.SQLUpdate
 
MAX_POOL_LIMIT_EXCEEDED - Static variable in class snaq.util.ObjectPoolEvent
 
MAX_POOL_LIMIT_REACHED - Static variable in class snaq.util.ObjectPoolEvent
 
MAX_SIZE_LIMIT_ERROR - Static variable in class snaq.util.ObjectPoolEvent
 
MAX_SIZE_LIMIT_REACHED - Static variable in class snaq.util.ObjectPoolEvent
 
maxPoolLimitExceeded(ConnectionPoolEvent) - Method in class snaq.db.ConnectionPoolEventAdapter
 
maxPoolLimitExceeded(ConnectionPoolEvent) - Method in interface snaq.db.ConnectionPoolListener
Called when a check-out request causes the maxPool limit to be exceeded.
maxPoolLimitExceeded(ConnectionPoolEvent) - Method in class snaq.db.DBPoolDataSource
 
maxPoolLimitExceeded(ObjectPoolEvent<E>) - Method in class snaq.util.ObjectPoolEventAdapter
 
maxPoolLimitExceeded(ObjectPoolEvent<E>) - Method in interface snaq.util.ObjectPoolListener
Called when a check-out request causes the poolSize limit to be exceeded.
maxPoolLimitExceeded(ObjectPoolEvent<T>) - Method in class snaq.util.PoolTracer
 
maxPoolLimitReached(ConnectionPoolEvent) - Method in class snaq.db.ConnectionPoolEventAdapter
 
maxPoolLimitReached(ConnectionPoolEvent) - Method in interface snaq.db.ConnectionPoolListener
Called when a check-out request causes the maxPool limit to be reached.
maxPoolLimitReached(ConnectionPoolEvent) - Method in class snaq.db.DBPoolDataSource
 
maxPoolLimitReached(ObjectPoolEvent<E>) - Method in class snaq.util.ObjectPoolEventAdapter
 
maxPoolLimitReached(ObjectPoolEvent<E>) - Method in interface snaq.util.ObjectPoolListener
Called when a check-out request causes the poolSize limit to be reached.
maxPoolLimitReached(ObjectPoolEvent<T>) - Method in class snaq.util.PoolTracer
 
maxSizeLimitError(ConnectionPoolEvent) - Method in class snaq.db.ConnectionPoolEventAdapter
 
maxSizeLimitError(ConnectionPoolEvent) - Method in interface snaq.db.ConnectionPoolListener
Called when a check-out request attempts to exceed the maxSize limit.
maxSizeLimitError(ConnectionPoolEvent) - Method in class snaq.db.DBPoolDataSource
 
maxSizeLimitError(ObjectPoolEvent<E>) - Method in class snaq.util.ObjectPoolEventAdapter
 
maxSizeLimitError(ObjectPoolEvent<E>) - Method in interface snaq.util.ObjectPoolListener
Called when a check-out request attempts to exceed the maxSize limit.
maxSizeLimitError(ObjectPoolEvent<T>) - Method in class snaq.util.PoolTracer
 
maxSizeLimitReached(ConnectionPoolEvent) - Method in class snaq.db.ConnectionPoolEventAdapter
 
maxSizeLimitReached(ConnectionPoolEvent) - Method in interface snaq.db.ConnectionPoolListener
Called when a check-out request causes the maxSize limit to be reached.
maxSizeLimitReached(ConnectionPoolEvent) - Method in class snaq.db.DBPoolDataSource
 
maxSizeLimitReached(ObjectPoolEvent<E>) - Method in class snaq.util.ObjectPoolEventAdapter
 
maxSizeLimitReached(ObjectPoolEvent<E>) - Method in interface snaq.util.ObjectPoolListener
Called when a check-out request causes the maxSize limit to be reached.
maxSizeLimitReached(ObjectPoolEvent<T>) - Method in class snaq.util.PoolTracer
 
MSG_STATEMENT_CLOSED - Static variable in class snaq.db.CachedStatement
Exception message for trying to used a closed statement.

N

nativeSQL(String) - Method in class snaq.db.CacheConnection
 
notifyListener(L, E) - Method in interface snaq.util.EventNotifier
Notifies the specified listener of the specified event.

O

ObjectPool<T extends Reusable> - Class in snaq.util
Base class for a pool system implementation.
ObjectPool(String, int, int, int, long) - Constructor for class snaq.util.ObjectPool
Creates new object pool.
ObjectPool(String, int, int, long) - Constructor for class snaq.util.ObjectPool
Creates new object pool (with minPool=0).
ObjectPool.Strategy - Enum in snaq.util
Enumeration of selection strategies.
ObjectPoolEvent<T extends Reusable> - Class in snaq.util
Event for ObjectPool instances.
ObjectPoolEvent(ObjectPool<T>, int) - Constructor for class snaq.util.ObjectPoolEvent
Creates a new PoolEvent.
ObjectPoolEventAdapter<E extends Reusable> - Class in snaq.util
Adapter implementation for handling ObjectPoolEvent instances for an ObjectPool.
ObjectPoolEventAdapter() - Constructor for class snaq.util.ObjectPoolEventAdapter
 
ObjectPoolListener<E extends Reusable> - Interface in snaq.util
Listener interface for ObjectPoolEvent objects.

P

PARAMETERS_CHANGED - Static variable in class snaq.util.ObjectPoolEvent
 
PasswordDecoder - Interface in snaq.db
Interface for decoding database passwords.
pool - Variable in class snaq.db.DBPoolDataSource
ConnectionPool instance used to source connections.
POOL_FLUSHED - Static variable in class snaq.util.ObjectPoolEvent
 
POOL_NAME_PREFIX - Static variable in class snaq.db.DBPoolDataSource
Name prefix to use for ConnectionPool instance (JNDI name is appended).
POOL_RELEASED - Static variable in class snaq.util.ObjectPoolEvent
 
poolCheckIn(ConnectionPoolEvent) - Method in class snaq.db.ConnectionPoolEventAdapter
 
poolCheckIn(ConnectionPoolEvent) - Method in interface snaq.db.ConnectionPoolListener
Called when a connection is checked back in to the pool.
poolCheckIn(ConnectionPoolEvent) - Method in class snaq.db.DBPoolDataSource
 
poolCheckIn(ObjectPoolEvent<E>) - Method in class snaq.util.ObjectPoolEventAdapter
 
poolCheckIn(ObjectPoolEvent<E>) - Method in interface snaq.util.ObjectPoolListener
Called when an item is checked back in to the pool.
poolCheckIn(ObjectPoolEvent<T>) - Method in class snaq.util.PoolTracer
 
poolCheckOut(ConnectionPoolEvent) - Method in class snaq.db.ConnectionPoolEventAdapter
 
poolCheckOut(ConnectionPoolEvent) - Method in interface snaq.db.ConnectionPoolListener
Called when a connection is checked out of the pool.
poolCheckOut(ConnectionPoolEvent) - Method in class snaq.db.DBPoolDataSource
 
poolCheckOut(ObjectPoolEvent<E>) - Method in class snaq.util.ObjectPoolEventAdapter
 
poolCheckOut(ObjectPoolEvent<E>) - Method in interface snaq.util.ObjectPoolListener
Called when an item is checked out of the pool.
poolCheckOut(ObjectPoolEvent<T>) - Method in class snaq.util.PoolTracer
 
poolFlushed(ConnectionPoolEvent) - Method in class snaq.db.ConnectionPoolEventAdapter
 
poolFlushed(ConnectionPoolEvent) - Method in interface snaq.db.ConnectionPoolListener
Called when the pool is flushed of free/unused connections.
poolFlushed(ConnectionPoolEvent) - Method in class snaq.db.DBPoolDataSource
 
poolFlushed(ObjectPoolEvent<E>) - Method in class snaq.util.ObjectPoolEventAdapter
 
poolFlushed(ObjectPoolEvent<E>) - Method in interface snaq.util.ObjectPoolListener
Called when the pool is flushed of all free/unused items.
poolFlushed(ObjectPoolEvent<T>) - Method in class snaq.util.PoolTracer
 
poolInitCompleted(ConnectionPoolEvent) - Method in class snaq.db.ConnectionPoolEventAdapter
 
poolInitCompleted(ConnectionPoolEvent) - Method in interface snaq.db.ConnectionPoolListener
Called when the pool's ObjectPool.init(int) method has completed.
poolInitCompleted(ConnectionPoolEvent) - Method in class snaq.db.DBPoolDataSource
 
poolInitCompleted(ObjectPoolEvent<E>) - Method in class snaq.util.ObjectPoolEventAdapter
 
poolInitCompleted(ObjectPoolEvent<E>) - Method in interface snaq.util.ObjectPoolListener
Called when the pool's ObjectPool.init(int) method has completed.
poolInitCompleted(ObjectPoolEvent<T>) - Method in class snaq.util.PoolTracer
 
poolManagerInstancesChanged(ConnectionPoolManagerEvent) - Method in interface snaq.db.ConnectionPoolManagerListener
Called when the internally-referenced ConnectionPoolManager instances collection has changed.
poolManagerReleased(ConnectionPoolManagerEvent) - Method in interface snaq.db.ConnectionPoolManagerListener
Called when a ConnectionPoolManager is released.
poolParametersChanged(ConnectionPoolEvent) - Method in class snaq.db.ConnectionPoolEventAdapter
 
poolParametersChanged(ConnectionPoolEvent) - Method in interface snaq.db.ConnectionPoolListener
Called when the pool's parameters are changed.
poolParametersChanged(ConnectionPoolEvent) - Method in class snaq.db.DBPoolDataSource
 
poolParametersChanged(ObjectPoolEvent<E>) - Method in class snaq.util.ObjectPoolEventAdapter
 
poolParametersChanged(ObjectPoolEvent<E>) - Method in interface snaq.util.ObjectPoolListener
Called when the pool's parameters are changed.
poolParametersChanged(ObjectPoolEvent<T>) - Method in class snaq.util.PoolTracer
 
poolReleased(ConnectionPoolEvent) - Method in class snaq.db.ConnectionPoolEventAdapter
 
poolReleased(ConnectionPoolEvent) - Method in interface snaq.db.ConnectionPoolListener
Called when the pool is released (no more events are fired by the pool after this event).
poolReleased(ConnectionPoolEvent) - Method in class snaq.db.DBPoolDataSource
 
poolReleased(ObjectPoolEvent<E>) - Method in class snaq.util.ObjectPoolEventAdapter
 
poolReleased(ObjectPoolEvent<E>) - Method in interface snaq.util.ObjectPoolListener
Called when the pool is released (no more events are fired by the pool after this event).
poolReleased(ObjectPoolEvent<T>) - Method in class snaq.util.PoolTracer
 
PoolTracer<T extends Reusable> - Class in snaq.util
Class to create a simple trace of pool usage statistics to a log file.
PoolTracer(ObjectPool<T>, PrintWriter, boolean) - Constructor for class snaq.util.PoolTracer
Creates a new PoolTracer which logs to the specified PrintWriter.
PoolTracer(ObjectPool<T>, File) - Constructor for class snaq.util.PoolTracer
Creates a new PoolTracer which logs to the specified file.
PoolTracer(ObjectPool<T>, String) - Constructor for class snaq.util.PoolTracer
Creates a new ObjectPoolAudit which logs to the specified File.
PoolTracer(Properties) - Constructor for class snaq.util.PoolTracer
Creates a new PoolTracer which logs to the specified file.
postRelease() - Method in class snaq.db.ConnectionPool
 
postRelease() - Method in class snaq.util.ObjectPool
Method to give a sub-class the opportunity to cleanup resources after the pool is officially released.
prepareCall(String) - Method in class snaq.db.CacheConnection
Overrides method to provide caching support.
prepareCall(String, int, int) - Method in class snaq.db.CacheConnection
Overrides method to provide caching support.
prepareCall(String, int, int, int) - Method in class snaq.db.CacheConnection
Overrides method to provide caching support.
prepareStatement(String) - Method in class snaq.db.CacheConnection
Overrides method to provide caching support.
prepareStatement(String, int, int) - Method in class snaq.db.CacheConnection
Overrides method to provide caching support.
prepareStatement(String, int, int, int) - Method in class snaq.db.CacheConnection
Overrides method to provide caching support.
prepareStatement(String, int) - Method in class snaq.db.CacheConnection
 
prepareStatement(String, int[]) - Method in class snaq.db.CacheConnection
 
prepareStatement(String, String[]) - Method in class snaq.db.CacheConnection
 
preRelease() - Method in class snaq.db.ConnectionPool
 
preRelease() - Method in class snaq.util.ObjectPool
Method to give a sub-class the opportunity to cleanup resources before the pool is officially released.

Q

QueryValidator - Class in snaq.db
Abstract ConnectionValidator implementation that validates database connections by issuing a SQL query.
QueryValidator() - Constructor for class snaq.db.QueryValidator
 

R

recycle() - Method in class snaq.db.CacheConnection
Puts the connection back in a state where it can be reused.
recycle() - Method in class snaq.db.CachedPreparedStatement
Overridden to add PreparedStatement specific code.
recycle() - Method in class snaq.db.CachedStatement
 
recycle() - Method in interface snaq.util.Reusable
Cleans an object to put it in a state in which it can be reused.
registerGlobalShutdownHook() - Static method in class snaq.db.ConnectionPoolManager
Registers a shutdown hook for all current and future ConnectionPoolManager instances to ensure they are released if the JVM exits with any managers having not been released.
registerMBean() - Method in class snaq.db.ConnectionPool
Registers this pool with the platform MBean server.
registerOutParameter(int, int) - Method in class snaq.db.CachedCallableStatement
 
registerOutParameter(int, int, int) - Method in class snaq.db.CachedCallableStatement
 
registerOutParameter(int, int, String) - Method in class snaq.db.CachedCallableStatement
 
registerOutParameter(String, int) - Method in class snaq.db.CachedCallableStatement
 
registerOutParameter(String, int, int) - Method in class snaq.db.CachedCallableStatement
 
registerOutParameter(String, int, String) - Method in class snaq.db.CachedCallableStatement
 
registerShutdownHook() - Method in class snaq.db.ConnectionPoolManager
Registers a shutdown hook for this ConnectionPoolManager instance to ensure it is released if the JVM exits
registerShutdownHook() - Method in class snaq.db.DBPoolDataSource
Registers a shutdown hook for this ConnectionPoolManager instance to ensure it is released if the JVM exits
registerShutdownHook() - Method in class snaq.util.ObjectPool
Registers a shutdown hook for this ConnectionPoolManager instance to ensure it is released if the JVM exits
release() - Method in class snaq.db.CacheConnection
Destroys the wrapped Connection instance.
release() - Method in class snaq.db.CachedCallableStatement
Overridden to provide caching support.
release() - Method in class snaq.db.CachedPreparedStatement
Overridden to provide caching support.
release() - Method in class snaq.db.CachedStatement
Overridden to provide caching support.
release() - Method in class snaq.db.ConnectionPoolManager
Releases all resources for this ConnectionPoolManager, and unregisters JDBC drivers if necessary.
release() - Method in class snaq.db.DBPoolDataSource
Releases the delegate ConnectionPool instance.
release() - Method in class snaq.util.ObjectPool
Releases all items from the pool, and shuts the pool down.
releaseAsync() - Method in class snaq.db.DBPoolDataSource
Asynchronously releases the delegate ConnectionPool instance.
releaseAsync() - Method in class snaq.util.ObjectPool
Releases all items from the pool, and shuts the pool down.
releaseConnectionPool() - Method in class snaq.db.DBPoolDataSource
Releases (cleans up resources of) the internal ConnectionPool instance.
releaseForcibly() - Method in class snaq.db.DBPoolDataSource
Forcibly releases the delegate ConnectionPool instance.
releaseForcibly() - Method in class snaq.util.ObjectPool
Forcibly releases all items from the pool, and shuts the pool down.
releaseSavepoint(Savepoint) - Method in class snaq.db.CacheConnection
 
removeConnectionPoolListener(ConnectionPoolListener) - Method in class snaq.db.ConnectionPool
Removes a ConnectionPoolListener from the event notification list.
removeConnectionPoolManagerListener(ConnectionPoolManagerListener) - Method in class snaq.db.ConnectionPoolManager
Removes a ConnectionPoolManagerListener from the event notification list.
removeGlobalShutdownHook() - Static method in class snaq.db.ConnectionPoolManager
Removes a registered global shutdown hook for all current and future ConnectionPoolManager instances.
removeObjectPoolListener(ObjectPoolListener<T>) - Method in class snaq.util.ObjectPool
Removes a listener from the event notification list.
removeShutdownHook() - Method in class snaq.db.ConnectionPoolManager
Removes a registered shutdown hook for this ConnectionPoolManager instance.
removeShutdownHook() - Method in class snaq.db.DBPoolDataSource
Unregisters a registered shutdown hook for this ConnectionPoolManager instance.
removeShutdownHook() - Method in class snaq.util.ObjectPool
Unregisters a registered shutdown hook for this ConnectionPoolManager instance.
resetHitCounter() - Method in class snaq.util.ObjectPool
Resets the counters for determining the pool's hit/miss rates.
Reusable - Interface in snaq.util
Interface for an object that can be reused.
rollback() - Method in class snaq.db.CacheConnection
 
rollback(Savepoint) - Method in class snaq.db.CacheConnection
 
RotDecoder - Class in snaq.db
Decodes passwords using the simple ROT13 algorithm.
RotDecoder() - Constructor for class snaq.db.RotDecoder
 
run() - Method in class snaq.util.EventDispatcher
 

S

Select1Validator - Class in snaq.db
Validates database connections by issuing the SQL query: "SELECT 1".
Select1Validator() - Constructor for class snaq.db.Select1Validator
Creates a new Select1Validator instance.
separator - Variable in class snaq.util.logging.TerseFormatter
Deprecated.
Separator string (between log-entry info and log message).
setArray(int, Array) - Method in class snaq.db.CachedPreparedStatement
 
setAsciiStream(String, InputStream, int) - Method in class snaq.db.CachedCallableStatement
 
setAsciiStream(String, InputStream, long) - Method in class snaq.db.CachedCallableStatement
 
setAsciiStream(String, InputStream) - Method in class snaq.db.CachedCallableStatement
 
setAsciiStream(int, InputStream, int) - Method in class snaq.db.CachedPreparedStatement
 
setAsciiStream(int, InputStream, long) - Method in class snaq.db.CachedPreparedStatement
 
setAsciiStream(int, InputStream) - Method in class snaq.db.CachedPreparedStatement
 
setAsyncDestroy(boolean) - Method in class snaq.util.ObjectPool
Determines whether to perform asynchronous object destruction.
setAutoCommit(boolean) - Method in class snaq.db.CacheConnection
 
setBigDecimal(String, BigDecimal) - Method in class snaq.db.CachedCallableStatement
 
setBigDecimal(int, BigDecimal) - Method in class snaq.db.CachedPreparedStatement
 
setBinaryStream(String, InputStream, int) - Method in class snaq.db.CachedCallableStatement
 
setBinaryStream(String, InputStream, long) - Method in class snaq.db.CachedCallableStatement
 
setBinaryStream(String, InputStream) - Method in class snaq.db.CachedCallableStatement
 
setBinaryStream(int, InputStream, int) - Method in class snaq.db.CachedPreparedStatement
 
setBinaryStream(int, InputStream, long) - Method in class snaq.db.CachedPreparedStatement
 
setBinaryStream(int, InputStream) - Method in class snaq.db.CachedPreparedStatement
 
setBlob(String, InputStream, long) - Method in class snaq.db.CachedCallableStatement
 
setBlob(String, Blob) - Method in class snaq.db.CachedCallableStatement
 
setBlob(String, InputStream) - Method in class snaq.db.CachedCallableStatement
 
setBlob(int, Blob) - Method in class snaq.db.CachedPreparedStatement
 
setBlob(int, InputStream, long) - Method in class snaq.db.CachedPreparedStatement
 
setBlob(int, InputStream) - Method in class snaq.db.CachedPreparedStatement
 
setBoolean(String, boolean) - Method in class snaq.db.CachedCallableStatement
 
setBoolean(int, boolean) - Method in class snaq.db.CachedPreparedStatement
 
setByte(String, byte) - Method in class snaq.db.CachedCallableStatement
 
setByte(int, byte) - Method in class snaq.db.CachedPreparedStatement
 
setBytes(String, byte[]) - Method in class snaq.db.CachedCallableStatement
 
setBytes(int, byte[]) - Method in class snaq.db.CachedPreparedStatement
 
setCacheAll(boolean) - Method in class snaq.db.CacheConnection
Sets whether to use caching for all types of Statement.
setCacheCallableStatements(boolean) - Method in class snaq.db.CacheConnection
Sets whether to use caching for CallableStatement instances.
setCachePreparedStatements(boolean) - Method in class snaq.db.CacheConnection
Sets whether to use caching for PreparedStatement instances.
setCacheStatements(boolean) - Method in class snaq.db.CacheConnection
Sets whether to use caching for Statement instances.
setCaching(boolean) - Method in class snaq.db.ConnectionPool
Determines whether to perform statement caching.
setCaching(boolean, boolean, boolean) - Method in class snaq.db.ConnectionPool
Determines whether to perform statement caching.
setCatalog(String) - Method in class snaq.db.CacheConnection
 
setCharacterStream(String, Reader, int) - Method in class snaq.db.CachedCallableStatement
 
setCharacterStream(String, Reader, long) - Method in class snaq.db.CachedCallableStatement
 
setCharacterStream(String, Reader) - Method in class snaq.db.CachedCallableStatement
 
setCharacterStream(int, Reader, int) - Method in class snaq.db.CachedPreparedStatement
 
setCharacterStream(int, Reader, long) - Method in class snaq.db.CachedPreparedStatement
 
setCharacterStream(int, Reader) - Method in class snaq.db.CachedPreparedStatement
 
setClientInfo(String, String) - Method in class snaq.db.CacheConnection
 
setClientInfo(Properties) - Method in class snaq.db.CacheConnection
 
setClob(String, Reader, long) - Method in class snaq.db.CachedCallableStatement
 
setClob(String, Clob) - Method in class snaq.db.CachedCallableStatement
 
setClob(String, Reader) - Method in class snaq.db.CachedCallableStatement
 
setClob(int, Clob) - Method in class snaq.db.CachedPreparedStatement
 
setClob(int, Reader, long) - Method in class snaq.db.CachedPreparedStatement
 
setClob(int, Reader) - Method in class snaq.db.CachedPreparedStatement
 
setCursorName(String) - Method in class snaq.db.CachedStatement
 
setDate(String, Date) - Method in class snaq.db.CachedCallableStatement
 
setDate(String, Date, Calendar) - Method in class snaq.db.CachedCallableStatement
 
setDate(int, Date) - Method in class snaq.db.CachedPreparedStatement
 
setDate(int, Date, Calendar) - Method in class snaq.db.CachedPreparedStatement
 
setDateFormat(DateFormat) - Method in class snaq.util.logging.LogUtil
Sets the date formatter for the logging.
setDateFormat(DateFormat) - Method in class snaq.util.logging.TerseFormatter
Deprecated.
Sets the DateFormat instance to use for formatting log entries.
setDateFormat(DateFormat) - Method in class snaq.util.PoolTracer
Sets the date formatter for the logging.
setDebug(boolean) - Method in class snaq.util.logging.LogUtil
Determines whether to perform debug logging.
setDescription(String) - Method in class snaq.db.DBPoolDataSource
Sets the description of this DataSource.
setDouble(String, double) - Method in class snaq.db.CachedCallableStatement
 
setDouble(int, double) - Method in class snaq.db.CachedPreparedStatement
 
setDriverClassName(String) - Method in class snaq.db.DBPoolDataSource
Sets the class name for the JDBC driver to use.
setEscapeProcessing(boolean) - Method in class snaq.db.CachedStatement
 
setFetchDirection(int) - Method in class snaq.db.CachedStatement
 
setFetchSize(int) - Method in class snaq.db.CachedStatement
 
setFloat(String, float) - Method in class snaq.db.CachedCallableStatement
 
setFloat(int, float) - Method in class snaq.db.CachedPreparedStatement
 
setHoldability(int) - Method in class snaq.db.CacheConnection
 
setIdleTimeout(int) - Method in class snaq.db.DBPoolDataSource
Sets the idle timeout (seconds) for connections in the underlying ConnectionPool.
setInt(String, int) - Method in class snaq.db.CachedCallableStatement
 
setInt(int, int) - Method in class snaq.db.CachedPreparedStatement
 
setLog(PrintWriter) - Method in class snaq.util.logging.LogUtil
Sets the log stream and enables logging.
setLog(PrintWriter, boolean) - Method in class snaq.util.logging.LogUtil
Sets the log stream and enables logging.
setLog(PrintWriter) - Method in class snaq.util.ObjectPool
Sets the custom log stream.
setLogging(boolean) - Method in class snaq.util.logging.LogUtil
Determines whether calls to the logging methods actually write to the log.
setLoginTimeout(int) - Method in class snaq.db.DBPoolDataSource
Sets the maximum time in seconds that this DataSource will wait while attempting to connect to a database.
setLogWriter(PrintWriter) - Method in class snaq.db.DBPoolDataSource
Sets the log writer for this DataSource to the given PrintWriter.
setLong(String, long) - Method in class snaq.db.CachedCallableStatement
 
setLong(int, long) - Method in class snaq.db.CachedPreparedStatement
 
setMaxFieldSize(int) - Method in class snaq.db.CachedStatement
 
setMaxPool(int) - Method in class snaq.db.DBPoolDataSource
Sets the maximum number of pooled connections in the underlying ConnectionPool.
setMaxRows(int) - Method in class snaq.db.CachedStatement
 
setMaxSize(int) - Method in class snaq.db.DBPoolDataSource
Sets the maximum number of connections in the underlying ConnectionPool.
setMessageFormat(MessageFormat) - Method in class snaq.util.PoolTracer
Sets the MessageFormat instance used for formatting log messages.
setMinPool(int) - Method in class snaq.db.DBPoolDataSource
Sets the minimum number of pooled connections in the underlying ConnectionPool.
setName(String) - Method in class snaq.db.DBPoolDataSource
Sets the JNDI name of the DBPoolDataSource instance.
setNCharacterStream(String, Reader, long) - Method in class snaq.db.CachedCallableStatement
 
setNCharacterStream(String, Reader) - Method in class snaq.db.CachedCallableStatement
 
setNCharacterStream(int, Reader, long) - Method in class snaq.db.CachedPreparedStatement
 
setNCharacterStream(int, Reader) - Method in class snaq.db.CachedPreparedStatement
 
setNClob(String, NClob) - Method in class snaq.db.CachedCallableStatement
 
setNClob(String, Reader, long) - Method in class snaq.db.CachedCallableStatement
 
setNClob(String, Reader) - Method in class snaq.db.CachedCallableStatement
 
setNClob(int, NClob) - Method in class snaq.db.CachedPreparedStatement
 
setNClob(int, Reader, long) - Method in class snaq.db.CachedPreparedStatement
 
setNClob(int, Reader) - Method in class snaq.db.CachedPreparedStatement
 
setNetworkTimeout(Executor, int) - Method in class snaq.db.CacheConnection
 
setNString(String, String) - Method in class snaq.db.CachedCallableStatement
 
setNString(int, String) - Method in class snaq.db.CachedPreparedStatement
 
setNull(String, int) - Method in class snaq.db.CachedCallableStatement
 
setNull(String, int, String) - Method in class snaq.db.CachedCallableStatement
 
setNull(int, int) - Method in class snaq.db.CachedPreparedStatement
 
setNull(int, int, String) - Method in class snaq.db.CachedPreparedStatement
 
setObject(String, Object) - Method in class snaq.db.CachedCallableStatement
 
setObject(String, Object, int) - Method in class snaq.db.CachedCallableStatement
 
setObject(String, Object, int, int) - Method in class snaq.db.CachedCallableStatement
 
setObject(int, Object, int, int) - Method in class snaq.db.CachedPreparedStatement
 
setObject(int, Object, int) - Method in class snaq.db.CachedPreparedStatement
 
setObject(int, Object) - Method in class snaq.db.CachedPreparedStatement
 
setParameters(int, int, long) - Method in class snaq.util.ObjectPool
Sets the pooling parameters (excluding minPool).
setParameters(int, int, int, long) - Method in class snaq.util.ObjectPool
Sets the pooling parameters.
setPassword(String) - Method in class snaq.db.DBPoolDataSource
Sets the password to use with this DataSource.
setPasswordDecoder(PasswordDecoder) - Method in class snaq.db.ConnectionPool
Sets the PasswordDecoder class.
setPasswordDecoderClassName(String) - Method in class snaq.db.DBPoolDataSource
Sets the class name of the PasswordDecoder to use.
setPoolable(boolean) - Method in class snaq.db.CachedStatement
Sets whether this statement should be considered poolable.
setQueryTimeout(int) - Method in class snaq.db.CachedStatement
 
setReadOnly(boolean) - Method in class snaq.db.CacheConnection
 
setRecycleAfterDelegateUse(boolean) - Method in class snaq.db.ConnectionPool
Sets whether the connection may be recycled if the underlying raw/delegate connection has been used (default: false).
setRef(int, Ref) - Method in class snaq.db.CachedPreparedStatement
 
setRowId(String, RowId) - Method in class snaq.db.CachedCallableStatement
 
setRowId(int, RowId) - Method in class snaq.db.CachedPreparedStatement
 
setSavepoint() - Method in class snaq.db.CacheConnection
 
setSavepoint(String) - Method in class snaq.db.CacheConnection
 
setSchema(String) - Method in class snaq.db.CacheConnection
 
setSelectionStrategy(String) - Method in class snaq.db.DBPoolDataSource
Sets the class name for the JDBC driver to use.
setSelectionStrategy(ObjectPool.Strategy) - Method in class snaq.util.ObjectPool
Sets the pool selection strategy.
setSeparator(String) - Method in class snaq.util.logging.LogUtil
Sets the separator string between the date and log message (default ": ").
setSeparator(String) - Method in class snaq.util.logging.TerseFormatter
Deprecated.
Sets the separator string between the date and log message (default ": ").
setShort(String, short) - Method in class snaq.db.CachedCallableStatement
 
setShort(int, short) - Method in class snaq.db.CachedPreparedStatement
 
setSQLXML(String, SQLXML) - Method in class snaq.db.CachedCallableStatement
 
setSQLXML(int, SQLXML) - Method in class snaq.db.CachedPreparedStatement
 
setString(String, String) - Method in class snaq.db.CachedCallableStatement
 
setString(int, String) - Method in class snaq.db.CachedPreparedStatement
 
setTime(String, Time) - Method in class snaq.db.CachedCallableStatement
 
setTime(String, Time, Calendar) - Method in class snaq.db.CachedCallableStatement
 
setTime(int, Time) - Method in class snaq.db.CachedPreparedStatement
 
setTime(int, Time, Calendar) - Method in class snaq.db.CachedPreparedStatement
 
setTimestamp(String, Timestamp) - Method in class snaq.db.CachedCallableStatement
 
setTimestamp(String, Timestamp, Calendar) - Method in class snaq.db.CachedCallableStatement
 
setTimestamp(int, Timestamp) - Method in class snaq.db.CachedPreparedStatement
 
setTimestamp(int, Timestamp, Calendar) - Method in class snaq.db.CachedPreparedStatement
 
setTransactionIsolation(int) - Method in class snaq.db.CacheConnection
 
setTypeMap(Map<String, Class<?>>) - Method in class snaq.db.CacheConnection
 
setUnicodeStream(int, InputStream, int) - Method in class snaq.db.CachedPreparedStatement
 
setURL(String, URL) - Method in class snaq.db.CachedCallableStatement
 
setURL(int, URL) - Method in class snaq.db.CachedPreparedStatement
 
setUrl(String) - Method in class snaq.db.DBPoolDataSource
Sets the JDBC URL to use with this DataSource.
setUser(String) - Method in class snaq.db.DBPoolDataSource
Sets the username to use with this DataSource.
setValidationQuery(String) - Method in class snaq.db.DBPoolDataSource
Sets the SQL query string to issue for connection validation.
setValidator(ConnectionValidator) - Method in class snaq.db.ConnectionPool
Sets the validator class for Connection instances.
setValidatorClassName(String) - Method in class snaq.db.DBPoolDataSource
Sets the class name of the ConnectionValidator to use.
SimpleQueryValidator - Class in snaq.db
ConnectionValidator implementation that validates database connections by issuing a SQL query, and simply checking if the query succeeded or failed.
SimpleQueryValidator(String) - Constructor for class snaq.db.SimpleQueryValidator
Creates a new SimpleQueryValidator instance using the specified SQL query string.
SimpleQueryValidator(String, boolean) - Constructor for class snaq.db.SimpleQueryValidator
Creates a new SimpleQueryValidator instance using the specified SQL query string.
snaq.db - package snaq.db
Classes implementing core DBPool functionality, related utilities.
snaq.util - package snaq.util
Utility classes providing useful functionality for various programming tasks.
snaq.util.logging - package snaq.util.logging
Classes to provide/enhance logging support.
splitSQL(String, String) - Static method in class snaq.db.SQLUpdate
Splits the specified text input into separate SQL statements.
sql - Variable in class snaq.db.CachedPreparedStatement
 
SQLUpdate - Class in snaq.db
Command-line utility to send SQL commands to a database.
SQLUpdate(String) - Constructor for class snaq.db.SQLUpdate
 
SQLUpdate(Connection) - Constructor for class snaq.db.SQLUpdate
 
st - Variable in class snaq.db.CachedStatement
Delegate Statement instance.
start() - Method in class snaq.util.EventDispatcher
 
statementClosed(CachedStatement) - Method in class snaq.db.CacheConnection
Callback invoked when a CachedStatement is closed.

T

TerseFormatter - Class in snaq.util.logging
Deprecated.
This class may be removed in future, and users are encouraged to use SLF4J logging.
TerseFormatter(boolean, boolean, boolean, boolean) - Constructor for class snaq.util.logging.TerseFormatter
Deprecated.
Creates a new TerseFormatter instance.
TerseFormatter(boolean, boolean, boolean) - Constructor for class snaq.util.logging.TerseFormatter
Deprecated.
Creates a new TerseFormatter instance.
TerseFormatter() - Constructor for class snaq.util.logging.TerseFormatter
Deprecated.
Creates a new TerseFormatter instance (all details displayed).
TimeWrapper<E> - Class in snaq.util
Time-tracking wrapper class for an object.
TimeWrapper(E, long) - Constructor for class snaq.util.TimeWrapper
Creates a new wrapped object.
toString() - Method in class snaq.db.CachedPreparedStatement
 
toString() - Method in class snaq.db.ConnectionPoolManager
Returns a descriptive string for this instance.
toString() - Method in class snaq.db.DBPoolDataSource
 
toString() - Method in class snaq.util.ObjectPool
Returns a descriptive string for this pool instance.
toString() - Method in class snaq.util.ObjectPoolEvent
 

U

unregisterMBean() - Method in class snaq.db.ConnectionPool
Removes this pool from the platform MBean server registration list.
unwrap(Class<T>) - Method in class snaq.db.CacheConnection
 
unwrap(Class<T>) - Method in class snaq.db.CachedStatement
 
unwrap(Class<T>) - Method in class snaq.db.DBPoolDataSource
 

V

VALIDATION_ERROR - Static variable in class snaq.util.ObjectPoolEvent
 
validationError(ConnectionPoolEvent) - Method in class snaq.db.ConnectionPoolEventAdapter
 
validationError(ConnectionPoolEvent) - Method in interface snaq.db.ConnectionPoolListener
Called when a connection is found to be invalid.
validationError(ConnectionPoolEvent) - Method in class snaq.db.DBPoolDataSource
 
validationError(ObjectPoolEvent<E>) - Method in class snaq.util.ObjectPoolEventAdapter
 
validationError(ObjectPoolEvent<E>) - Method in interface snaq.util.ObjectPoolListener
Called when an item is found to be invalid.
validationError(ObjectPoolEvent<T>) - Method in class snaq.util.PoolTracer
 
valueOf(String) - Static method in enum snaq.util.ObjectPool.Strategy
Returns the enum constant of this type with the specified name.
values() - Static method in enum snaq.util.ObjectPool.Strategy
Returns an array containing the constants of this enum type, in the order they are declared.

W

wasNull() - Method in class snaq.db.CachedCallableStatement
 
writeLogEntry(String) - Method in class snaq.util.logging.LogUtil
Writes a message to the log.
A C D E F G H I J L M N O P Q R S T U V W 

Copyright © 2013. All Rights Reserved.