Package org.apache.openjpa.lib.jdbc
Database Connectivity
Includes an implementation of the DataSource
APIs
around a normal JDBC 1.x driver. Implements logging and the ability to
customize JDBC behavior. Also includes a framework for firing and
consuming JDBC-related events.
-
Interface Summary Interface Description ConnectionDecorator A connection decorator can wrapConnection
s before they are returned to the user to add functionality.JDBCListener A listener for allJDBCEvent
s that occur.LoggingConnectionDecorator.SQLWarningHandler Interface that allows customization of what to do whenSQLWarning
s occur. -
Class Summary Class Description AbstractJDBCListener An abstract implementation of theJDBCListener
listener.ConfiguringConnectionDecorator Connection decorator that can configure some properties of the underlying connection.DataSourceLogs Provies basic logging facilities to a DataSource.DecoratingDataSource Delegating data source that maintains a list ofConnectionDecorator
s.DelegatingCallableStatement CallableStatement
that delegates to an internal statement.DelegatingConnection Wrapper around an existing connection.DelegatingDatabaseMetaData Wrapper around a DatabaseMetaData instance.DelegatingDataSource Wrapper around an existing data source.DelegatingPreparedStatement Wrapper around an existing statement.DelegatingResultSet Wrapper around an existing result set.DelegatingStatement Wrapper around an existing statement.JDBCEvent A JDBC event.JDBCEventConnectionDecorator Manages the firing ofJDBCEvent
s.LoggingConnectionDecorator AConnectionDecorator
that creates logging connections andReportingSQLException
s.SQLFormatter Converts single-line SQL strings into nicely-formatted multi-line, indented statements. -
Exception Summary Exception Description ReportingSQLException ASQLException
that contains information about theStatement
SQL that caused the exception.