public class PostgresSniffer extends Object implements DbAdapterFactory, DbAdapterDetector
Modifier and Type | Field and Description |
---|---|
protected AdhocObjectFactory |
objectFactory |
Constructor and Description |
---|
PostgresSniffer(AdhocObjectFactory objectFactory) |
Modifier and Type | Method and Description |
---|---|
DbAdapter |
createAdapter(DatabaseMetaData md)
Returns an instance of DbAdapter if the factory detects that it knows how to handle
the database.
|
protected AdhocObjectFactory objectFactory
public PostgresSniffer(AdhocObjectFactory objectFactory)
public DbAdapter createAdapter(DatabaseMetaData md) throws SQLException
DbAdapterFactory
createAdapter
in interface DbAdapterDetector
createAdapter
in interface DbAdapterFactory
SQLException
Copyright © 2001–2014 Apache Cayenne. All rights reserved.