snaq.db |
|
Java Source File Name | Type | Comment |
AutoCommitValidator.java | Class | Validates database connections by issuing a setAutoCommit(true)
method call on the connection. |
CacheConnection.java | Class | Connection wrapper that implements statement caching. |
CachedCallableStatement.java | Class | CallableStatement wrapper that provides caching support. |
CachedPreparedStatement.java | Class | PreparedStatement wrapper that provides caching support. |
CachedStatement.java | Class | Statement wrapper that provides methods for caching support. |
ConnectionPool.java | Class | Implementation of a database connection pool. |
ConnectionPoolEvent.java | Class | Event for ConnectionPool objects. |
ConnectionPoolEventAdapter.java | Class | Adapter implementation for handling PoolEvents for an ObjectPool. |
ConnectionPoolListener.java | Interface | Listener for ConnectionPoolEvent objects.
Listeners should ensure the implementations of the listed methods return
quickly. |
ConnectionPoolManager.java | Class | Class to provide access and management for multiple connection pools
defined in a properties file or object.
Clients get access to each defined instance through one of the
static getInstance() methods and can then check-out and check-in
database connections from the pools defined by that manager.
Each successful call to a getInstance() method also increments
an internal counter which keeps a record of the number of clients which hold
a reference to that particular pool manager. |
ConnectionValidator.java | Interface | Interface for validating database connections.
This interface can be implemented by a class in order to provide custom
database connection validation. |
PasswordDecoder.java | Interface | Interface for decoding database passwords.
This interface can be implemented by a class in order to provide custom
database password decoding. |
RotDecoder.java | Class | Decodes passwords using the simple Rot13 algorithm. |
SQLUpdate.java | Class | Command-line utility to send SQL commands to a database.
This class is useful for easily creating a large number of database tables
and/or records from a user-defined file.
It relies on the ConnectionPoolManager class to assist
with the creation of a connection to the database, which in turn requires
the appropriate dbpool.properties file in the classpath.
Usage: java snaq.db.SQLUpdate <pool> <input file> [<separator>]
where pool is the name of the connection pool as defined in
the dbpool.properties file, input file is the name of the text
file containing the SQL statements to be issued to the defined database,
and separator is an optional parameter to specify a delimiter
for the SQL statements in the file. |
StatementListener.java | Interface | Interface for a StatementListener. |