Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cayenne.dba
Interface DbAdapterFactory

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

    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
Author:
  Andrus Adamchik

Method Summary
`DbAdapter` | `createAdapter(java.sql.DatabaseMetaData md)` Returns an instance of DbAdapter if the factory detects that it knows how to handle the database.

Method Detail

### createAdapter

    DbAdapter createAdapter(java.sql.DatabaseMetaData md)
                            throws java.sql.SQLException

  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:
    `java.sql.SQLException`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2006 Apache.org All Rights Reserved.