DbAdapterDetector (cayenne-doc: Cayenne Documentation 5.0-M2 API)
Description: declaration: package: org.apache.cayenne.configuration.runtime, interface: DbAdapterDetector

# Interface DbAdapterDetector

All Known Implementing Classes:
  `DB2Sniffer, DerbySniffer, FirebirdSniffer, FrontBaseSniffer, H2Sniffer, HSQLDBSniffer, IngresSniffer, MariaDBSniffer, MySQLSniffer, OracleSniffer, PostgresSniffer, SQLiteSniffer, SQLServerSniffer, SybaseSniffer`

public interface DbAdapterDetector
A factory interface providing DbAdapter based on JDBC metadata. It allows custom DbAdapters to contribute database detection algorithms to `DefaultDbAdapterFactory`.

Since:
  3.1

- ## Method Summary

  Modifier and Type
  Method
  Description
  `DbAdapter`
  `createAdapter(DatabaseMetaData md)`
  Returns an instance of DbAdapter if the factory detects that it knows how to handle the database or null if the database is not known to the factory, thus allowing multiple factories to be chained.

- ## Method Details

  - ### createAdapter

    DbAdapter createAdapter(DatabaseMetaData md) throws SQLException
    Returns an instance of DbAdapter if the factory detects that it knows how to handle the database or null if the database is not known to the factory, thus allowing multiple factories to be chained.
    Throws:
      `SQLException`