org.apache.cayenne.dba

## Interface DbAdapterFactory

- All Known Implementing Classes:
    DB2Sniffer, DerbySniffer, FrontBaseSniffer, H2Sniffer, HSQLDBSniffer, IngresSniffer, MySQLSniffer, OpenBaseSniffer, OracleSniffer, PostgresSniffer, SQLiteSniffer, SQLServerSniffer, SybaseSniffer

  Deprecated.
  since 3.1 in favor of `DbAdapterFactory` configured via dependency injection.

      @Deprecated
      public interface DbAdapterFactory

  Defines a conditional factory for a specific DbAdapter. Note that the factory can potentially return different (or differently configured) DbAdapters for the same database based on version information and other metadata.
  Since:
    1.2

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `DbAdapter` | `createAdapter(DatabaseMetaData md)` Deprecated. Returns an instance of DbAdapter if the factory detects that it knows how to handle the database.

- - ### Method Detail

    - #### createAdapter

          DbAdapter createAdapter(DatabaseMetaData md)
                                  throws SQLException

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

Copyright © 2001–2014 Apache Cayenne. All rights reserved.