Package org.apache.cayenne.dba.derby
Class DerbySniffer
java.lang.Object
org.apache.cayenne.dba.derby.DerbySniffer
- All Implemented Interfaces:
- DbAdapterDetector
public class DerbySniffer extends Object implements DbAdapterDetector
Creates a DerbyAdapter if Apache Derby database is detected.
- Since:
- 1.2
- 
Field SummaryFields Modifier and Type Field Description protected AdhocObjectFactoryobjectFactory
- 
Constructor SummaryConstructors Constructor Description DerbySniffer(AdhocObjectFactory objectFactory)
- 
Method SummaryModifier and Type Method Description DbAdaptercreateAdapter(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.
- 
Field Details- 
objectFactory
 
- 
- 
Constructor Details- 
DerbySniffer
 
- 
- 
Method Details- 
createAdapterDescription 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 interface- DbAdapterDetector
- Throws:
- SQLException
 
 
-