Interface IDBAdapterID

All Known Subinterfaces:
IDBAdapter
All Known Implementing Classes:
DBAdapter, DelegatingDBAdapter, DerbyAdapter, EmbeddedDerbyAdapter, H2Adapter, HSQLDBAdapter, MYSQLAdapter, PostgreSQLAdapter

public interface IDBAdapterID
Identifies a database adapter by its database-system name and development version.

Names are matched case-insensitively. Versions are interpreted as dot-separated numeric components, so that, for example, 8, 8.0, and 8.0.0 denote the same logical version. Implementations must therefore expose stable name and version values for the lifetime of the identified adapter.

This interface intentionally does not extend Comparable. Consumers that need a canonical, sortable value can use the registry's sorted result methods or the framework's internal ID implementation.

Since:
4.14
Author:
Eike Stepper
No Implement
This interface is not intended to be implemented by clients.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the adapter name as supplied by its provider.
    Returns the adapter version as supplied by its provider.
  • Method Details

    • getName

      String getName()
      Returns the adapter name as supplied by its provider. Lookup compares names case-insensitively, but does not otherwise normalize the value exposed here.
      Returns:
      the adapter name
    • getVersion

      String getVersion()
      Returns the adapter version as supplied by its provider. Lookup compares the dot-separated numeric components, ignoring trailing zero components; formatting such as leading zeroes is retained in this returned value.
      Returns:
      the adapter version