DB
defines the interface for a Torque database adapter. Support for new databases is added by implementing this interface. A couple of default settings is provided by subclassing AbstractDBAdapter
. The new database adapter and its corresponding JDBC driver need to be registered in the service configuration file. The Torque database adapters exist to present a uniform interface to database access across all available databases. Once the necessary adapters have been written and configured, transparent swapping of databases is theoretically supported with zero code changes and minimal configuration file modifications. All database adapters need to be thread safe, as they are instantiated only once fore a given configured database and may be accessed simultaneously from several threads. * @author Jon S. Stevens @author Brett McLaughlin @author Daniel Rall @author Augustin Vidovic @author Thomas Vandahl @author Greg Monroe @version $Id: Adapter.java 1450486 2013-02-26 22:18:00Z tfischer $
|
|
|
|