Package org.tentackle.db

Database Abstraction Layer.

See:
          Description

Interface Summary
CommitTxRunnable A Runnable that gets invoked before commit.
ConnectionManager Connection Manager for local connections.
JDBC connections are never used directly.
DbCursor<T extends DbObject> A database cursor.
Provides a cursor operating on a set of data objects retrieved from a server.
DbObject.CopyAllToDbLogger The logger for DbObject.copyAllToDb(org.tentackle.db.Db, boolean, org.tentackle.db.DbObject.CopyAllToDbLogger).
DbPool A pool of logical Db connections.
ErrorHandler Interface for an error handler, i.e.
IdSource Abstraction for a generic source of ID numbers.
IdSourceConnector The connector establishes a connection to an IdSource.
ModificationThread.SerialRunnable Special runnable invoked from within the ModificationThread whenever a serial on a table has changed.
RollbackTxRunnable A Runnable that gets invoked before rollback.
 

Class Summary
Binary Datatype for storing arbitrary (binary) data in a database.
CachedDbCursor<T extends DbObject> A caching cursor.
Db A logical database connection.
DbGlobal Db globals.
DbObject Database object.
DbObject.IdComparator<T extends DbObject> Compares the IDs.
DbObject.NameComparator<T extends DbObject> Compares the string representation (toString()).
DbObject.NameIdComparator<T extends DbObject> Compares the names + IDs.
DbObjectClassVariables Holds static class variables for classes derived from DbObject.
DbOperation A DbOperation provides methods that are not part of DbObjects and is associated to a Db-connection.
DbPreferences Database backend for the Preferences API.
Tentackle preferences are stored in a database rather than a file(unix) or registry(windows).
DbPreferencesFactory Factory for DbPreferences.
DbPreferencesKey A preferences key/value pair stored in the database.
DbPreferencesNode Preferences Node stored in the database.
DefaultConnectionManager The default implementation of a connection manager.
Each Db will get its own physical connection.
DefaultDbPool An implementation of a database pool.
It allows min/max sizes, fixed increments and timeouts for unused instances.
DefaultErrorHandler The default database error handler.
IdSourceConfigurator Configurator for an IdSource.
LegacyDbObject Abstract class defining some essential basics for objects *not* derived from DbObject.
Useful to access non-tentackle-based database tables.
LegacyDbObjectClassVariables Minimal class variables for LegacyDbObjects.
Locales Localized strings for the db package.
ManagedConnection A jdbc connection managed by the ConnectionManager.
The connection provides some additional features such as a prepared statement cache and translates SQLExceptions to DbRuntimeExceptions.
ModificationCounter Counter to track modifications for a class/table.
There is one ModificationCounter-object per DbObject-class *AND* Db-connection.
ModificationLog Logging for object modifications.
Modifications to DbObjects can be logged to a so-called modification log (aka: modlog).
Most applications will use the modlog for asynchroneous database coupling.
ModificationThread Thread to monitor the modification table.
Runs on a separate db connection and invokes runnables if modifications are detected.
MpxConnectionManager Multiplexing connection manager.
A connection manager for applications with a large number of Db instances, e.g.
ObjectId A DbObject implementing IdSource used to create unique object IDs.
OracleHelper Oracle-specific utility methods.
PartialDbObject Partial implementation of a DbObject that is an abstract super class in a table-per-class mapping.
PooledPreparedStatement Pooled prepared statement.
PreparedStatementWrapper A wrapper for prepared statements.
Will catch and report SQLExceptions and keep track of being used only once after Db.getPreparedStatement(int).
Query A database query.
Combines the generation of an sql-string and parameter set for the ResultSetWrapper.
ResultSetWrapper A wrapper for ResultSets.
SimpleDbCursor<T extends DbObject> A simple implementation of a DbCursor.
The cursor operates on a ResultSetWrapper for local connections and on a RemoteDbCursor for remote connections to an application server.
SqlHelper Some common methods for SQL-Processing.
StatementWrapper A wrapper for sql statements.
Will catch and report SQLExceptions and keep track of being used only once after Db.createStatement().
TableSerialExpirationBacklog Keeps a backlog of expiration sets.
Used in RMI-servers to reduce database roundtrips for clients requesting the expiration info for their local caches.
UserInfo Information about the user connecting to a database.
 

Exception Summary
DbRuntimeException Database runtime exception.
 

Package org.tentackle.db Description

Database Abstraction Layer.

Provides the persistence layer for java objects, the so-called O/R-mapping.



Copyright © 2001-2008 Harald Krake, Bergstr. 48, 78098 Triberg, Germany, harald@krake.de