- 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
-
- CachedCallableStatement - Class in snaq.db
-
- CachedCallableStatement(String, CallableStatement) - Constructor for class snaq.db.CachedCallableStatement
-
- CachedPreparedStatement - Class in snaq.db
-
- CachedPreparedStatement(String, PreparedStatement) - Constructor for class snaq.db.CachedPreparedStatement
-
- CachedStatement - Class in snaq.db
-
Statement wrapper that provides methods for caching support.
- CachedStatement(Statement) - Constructor for class snaq.db.CachedStatement
-
- 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.
- 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.
- 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
-
- ConnectionPoolEvent(ObjectPool<CacheConnection>, ObjectPoolEvent.Type) - Constructor for class snaq.db.ConnectionPoolEvent
-
- ConnectionPoolEventAdapter - Class in snaq.db
-
- ConnectionPoolEventAdapter() - Constructor for class snaq.db.ConnectionPoolEventAdapter
-
- ConnectionPoolListener - Interface in snaq.db
-
- 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
-
- ConnectionPoolManagerEvent(ConnectionPoolManager) - Constructor for class snaq.db.ConnectionPoolManagerEvent
-
- ConnectionPoolManagerListener - Interface in snaq.db
-
- ConnectionValidator - Interface in snaq.db
-
Interface for validating database connections.
- contextDestroyed(ServletContextEvent) - Method in class snaq.db.DBPoolServletContextListener
-
- contextInitialized(ServletContextEvent) - Method in class snaq.db.DBPoolServletContextListener
-
- create() - Method in class snaq.db.ConnectionPool
-
- 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
-
- 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
-
- 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
-
- 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
-
- getConnectionProperty(String) - Method in class snaq.db.DBPoolDataSource
-
Returns the driver property for the specified key.
- 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
-
- 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
-
- getOpenStatementCount() - Method in class snaq.db.CacheConnection
-
- 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
-
- getPasswordDecoderClassName() - Method in class snaq.db.DBPoolDataSource
-
- getPool() - Method in class snaq.db.CacheConnection
-
Returns the ConnectionPool to which this CacheConnection belongs.
- getPool(String) - Method in class snaq.db.ConnectionPoolManager
-
- 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
-
- getSparePreparedStatementCount() - Method in class snaq.db.CacheConnection
-
- 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
-
- getValidatorClassName() - Method in class snaq.db.DBPoolDataSource
-
- getVersionString() - Static method in class snaq.db.JDBCInfo
-
- getWarnings() - Method in class snaq.db.CacheConnection
-
- getWarnings() - Method in class snaq.db.CachedStatement
-
- 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.
- 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
-
- isCachingCallableStatements() - Method in class snaq.db.ConnectionPool
-
Returns whether the pool caches CallableStatement instances for each connection.
- isCachingPreparedStatements() - Method in class snaq.db.CacheConnection
-
- 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
-
- 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
-
- 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.
- PasswordDecoder - Interface in snaq.db
-
Interface for decoding database passwords.
- pool - Variable in class snaq.db.DBPoolDataSource
-
ConnectionPool instance used to source connections.
- POOL_NAME_PREFIX - Static variable in class snaq.db.DBPoolDataSource
-
Name prefix to use for ConnectionPool instance (JNDI name is appended).
- 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
-
- 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
-
- 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.
- 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
-
- 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
-
- release(long) - Method in class snaq.db.DBPoolDataSource
-
Releases the delegate
ConnectionPool instance allowing the
specified timeout before forcibly destroying connections.
- release() - Method in class snaq.util.ObjectPool
-
Releases all items from the pool, and shuts the pool down.
- release(long) - Method in class snaq.util.ObjectPool
-
Releases all items from the pool, and shuts the pool down, allowing
timeout milliseconds for the connections to be gracefully returned
to the pool before they are forcibly destroyed.
- releaseAsync() - Method in class snaq.db.DBPoolDataSource
-
- releaseAsync(long) - Method in class snaq.db.DBPoolDataSource
-
- releaseAsync() - Method in class snaq.util.ObjectPool
-
Releases all items from the pool, and shuts the pool down.
- releaseAsync(long) - Method in class snaq.util.ObjectPool
-
Releases all items from the pool, and shuts the pool down.
- releaseConnectionPool() - Method in class snaq.db.DBPoolDataSource
-
- releaseForcibly() - Method in class snaq.db.DBPoolDataSource
-
- releaseForcibly() - Method in class snaq.util.ObjectPool
-
- releaseImmediately() - Method in class snaq.db.DBPoolDataSource
-
- releaseImmediately() - Method in class snaq.util.ObjectPool
-
Immediately 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
-
- removeConnectionPoolManagerListener(ConnectionPoolManagerListener) - Method in class snaq.db.ConnectionPoolManager
-
- 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
-
- 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
-
- setCachePreparedStatements(boolean) - Method in class snaq.db.CacheConnection
-
- 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
-
- setConnectionProperty(String, String) - Method in class snaq.db.DBPoolDataSource
-
Sets the driver property for the specified key.
- 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
-
- setPasswordDecoderClassName(String) - Method in class snaq.db.DBPoolDataSource
-
- 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
-
- 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
-