Class DBAdapter

java.lang.Object
org.eclipse.net4j.spi.db.DBAdapter
All Implemented Interfaces:
IDBAdapter, IDBAdapterID
Direct Known Subclasses:
DerbyAdapter, H2Adapter, HSQLDBAdapter, MYSQLAdapter, PostgreSQLAdapter

public abstract class DBAdapter extends Object implements IDBAdapter
A useful base class for implementing custom DB adapters.

Service providers should subclass this type rather than implement IDBAdapter directly. The subclass must provide a stable name and version that identify the adapter's database system and behavior. The registry compares names case-insensitively and compares dot-separated numeric version components; trailing zero components do not create a distinct registration.

Providers contributing an adapter through the database adapter extension point should ensure that the descriptor's name and version agree with the adapter created by the provider. The descriptor identity is used for registration and lookup, and remains authoritative if the created adapter reports different metadata.

Author:
Eike Stepper