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

A

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) - 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

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 - Static variable in class snaq.util.ObjectPoolEvent
 
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.util.logging.LogUtil
Closes the log.
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) - 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.
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.
ConnectionPoolManagerListener - Interface in snaq.db
Listener for ConnectionPoolManagerEvent instances.
ConnectionValidator - Interface in snaq.db
Interface for validating database connections.
createArrayOf(String, Object[]) - Method in class snaq.db.CacheConnection
 
createBlob() - Method in class snaq.db.CacheConnection
 
createClob() - Method in class snaq.db.CacheConnection
 
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) - Static method in class snaq.db.jmx.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
 
dispatchEvent(E) - Method in class snaq.util.EventDispatcher
Schedules the specified event for listener notification.

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.
format(LogRecord) - Method in class snaq.util.logging.TerseFormatter
 

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.
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
 
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.
getExpiryTime() - Method in class snaq.db.DBPoolDataSource
Deprecated. Use DBPoolDataSource.getIdleTimeout() instead.
getExpiryTime() - Method in class snaq.util.ObjectPool
Deprecated. Replaced by ObjectPool.getIdleTimeout().
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
 
getHitRate() - Method in class snaq.util.ObjectPool
Deprecated. Replaced by ObjectPool.getPoolHitRate() which returns a unit-scaled measure instead of a percentage.
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
 
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
 
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
 
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
 
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() - 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.
getOpenNonCachableStatementCount() - Method in class snaq.db.CacheConnection
Returns the current number of non-cachable 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.util.ObjectPool
Returns a summary string for this pool's parameters.
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 class name of the PasswordDecoder to use with this DataSource.
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.
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.
getPoolSize() - Method in class snaq.db.ConnectionPool
Deprecated. Use ObjectPool.getMaxPool() instead.
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
 
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.
getUsername() - Method in class snaq.db.DBPoolDataSource
Deprecated. Use DBPoolDataSource.getUser() method instead.
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 class name of the ConnectionValidator to use with this DataSource.
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
 
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(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.
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.db.jmx
Utility class for providing DBPool JMX support.
JmxUtils() - Constructor for class snaq.db.jmx.JmxUtils
 

L

loadTextFile(File) - Static method in class snaq.db.SQLUpdate
Loads a text file into a string.
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.
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.

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
Allows command-line issuing of SQL statements to a database defined in the pool manager properties file.
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) - Method in class snaq.util.ObjectPoolEventAdapter
 
maxPoolLimitExceeded(ObjectPoolEvent) - Method in interface snaq.util.ObjectPoolListener
Called when a check-out request causes the poolSize limit to be exceeded.
maxPoolLimitExceeded(ObjectPoolEvent) - 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) - Method in class snaq.util.ObjectPoolEventAdapter
 
maxPoolLimitReached(ObjectPoolEvent) - Method in interface snaq.util.ObjectPoolListener
Called when a check-out request causes the poolSize limit to be reached.
maxPoolLimitReached(ObjectPoolEvent) - 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) - Method in class snaq.util.ObjectPoolEventAdapter
 
maxSizeLimitError(ObjectPoolEvent) - Method in interface snaq.util.ObjectPoolListener
Called when a check-out request attempts to exceed the maxSize limit.
maxSizeLimitError(ObjectPoolEvent) - 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) - Method in class snaq.util.ObjectPoolEventAdapter
 
maxSizeLimitReached(ObjectPoolEvent) - Method in interface snaq.util.ObjectPoolListener
Called when a check-out request causes the maxSize limit to be reached.
maxSizeLimitReached(ObjectPoolEvent) - Method in class snaq.util.PoolTracer
 

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.
ObjectPoolEvent - Class in snaq.util
Event for ObjectPool instances.
ObjectPoolEvent(ObjectPool, int) - Constructor for class snaq.util.ObjectPoolEvent
Creates a new PoolEvent.
ObjectPoolEventAdapter - Class in snaq.util
Adapter implementation for handling ObjectPoolEvent instances for an ObjectPool.
ObjectPoolEventAdapter() - Constructor for class snaq.util.ObjectPoolEventAdapter
 
ObjectPoolListener - 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_FLUSHED - Static variable in class snaq.util.ObjectPoolEvent
 
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) - Method in class snaq.util.ObjectPoolEventAdapter
 
poolCheckIn(ObjectPoolEvent) - Method in interface snaq.util.ObjectPoolListener
Called when an item is checked back in to the pool.
poolCheckIn(ObjectPoolEvent) - 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) - Method in class snaq.util.ObjectPoolEventAdapter
 
poolCheckOut(ObjectPoolEvent) - Method in interface snaq.util.ObjectPoolListener
Called when an item is checked out of the pool.
poolCheckOut(ObjectPoolEvent) - 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) - Method in class snaq.util.ObjectPoolEventAdapter
 
poolFlushed(ObjectPoolEvent) - Method in interface snaq.util.ObjectPoolListener
Called when the pool is flushed of all free/unused items.
poolFlushed(ObjectPoolEvent) - 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) - Method in class snaq.util.ObjectPoolEventAdapter
 
poolInitCompleted(ObjectPoolEvent) - Method in interface snaq.util.ObjectPoolListener
Called when the pool's ObjectPool.init(int) method has completed.
poolInitCompleted(ObjectPoolEvent) - 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) - Method in class snaq.util.ObjectPoolEventAdapter
 
poolParametersChanged(ObjectPoolEvent) - Method in interface snaq.util.ObjectPoolListener
Called when the pool's parameters are changed.
poolParametersChanged(ObjectPoolEvent) - 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) - Method in class snaq.util.ObjectPoolEventAdapter
 
poolReleased(ObjectPoolEvent) - 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) - Method in class snaq.util.PoolTracer
 
PoolTracer - Class in snaq.util
Class to create a simple trace of pool usage statistics to a log file.
PoolTracer(ObjectPool, PrintWriter, boolean) - Constructor for class snaq.util.PoolTracer
Creates a new PoolTracer which logs to the specified PrintWriter.
PoolTracer(ObjectPool, File) - Constructor for class snaq.util.PoolTracer
Creates a new PoolTracer which logs to the specified file.
PoolTracer(ObjectPool, 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.
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
 

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 deregisters 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) - 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
Deregisters a registered shutdown hook for this ConnectionPoolManager instance.
removeShutdownHook() - Method in class snaq.util.ObjectPool
Deregisters 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.
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
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 fully-qualified class name for the JDBC driver to use.
setEscapeProcessing(boolean) - Method in class snaq.db.CachedStatement
 
setExpiryTime(int) - Method in class snaq.db.DBPoolDataSource
Deprecated. Use DBPoolDataSource.setIdleTimeout(int) instead.
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
 
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 with this DataSource.
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
 
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
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.
setUsername(String) - Method in class snaq.db.DBPoolDataSource
Deprecated. Use DBPoolDataSource.setUser(String) method instead.
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 with this DataSource.
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
Utility classes to enhance the standard JDBC functionality.
snaq.db.jmx - package snaq.db.jmx
Classes to provide Java Management Extensions (JMX) support for the snaq.db package.
snaq.util - package snaq.util
Utility classes providing useful functionality for various programming tasks.
snaq.util.logging - package snaq.util.logging
Class to provide/enhance logging support.
splitSQL(String, String) - Static method in class snaq.db.SQLUpdate
Splits the specified text input into separate SQL statements.
SQLUpdate - Class in snaq.db
Command-line utility to send SQL commands to a database.
SQLUpdate(String) - Constructor for class snaq.db.SQLUpdate
 
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
Implementation of a simple single-line log Formatter for use with the Java Logging API.
TerseFormatter(boolean, boolean, boolean, boolean) - Constructor for class snaq.util.logging.TerseFormatter
Creates a new TerseFormatter instance.
TerseFormatter(boolean, boolean, boolean) - Constructor for class snaq.util.logging.TerseFormatter
Creates a new TerseFormatter instance.
TerseFormatter() - Constructor for class snaq.util.logging.TerseFormatter
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) - Method in class snaq.util.ObjectPoolEventAdapter
 
validationError(ObjectPoolEvent) - Method in interface snaq.util.ObjectPoolListener
Called when an item is found to be invalid.
validationError(ObjectPoolEvent) - Method in class snaq.util.PoolTracer
 

W

wasNull() - Method in class snaq.db.CachedCallableStatement
 

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