Class DB2Sniffer
java.lang.Object
org.apache.cayenne.dba.db2.DB2Sniffer
- All Implemented Interfaces:
DbAdapterDetector
- Since:
- 1.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.cayenne.di.AdhocObjectFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.
-
Field Details
-
objectFactory
protected final org.apache.cayenne.di.AdhocObjectFactory objectFactory
-
-
Constructor Details
-
DB2Sniffer
public DB2Sniffer(org.apache.cayenne.di.AdhocObjectFactory objectFactory)
-
-
Method Details
-
createAdapter
Description copied from interface:DbAdapterDetectorReturns 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.- Specified by:
createAdapterin interfaceDbAdapterDetector- Throws:
SQLException
-