test-db2.cayenne.adapter = org.apache.cayenne.dba.db2.DB2Adapter test-db2.jdbc.username = test test-db2.jdbc.password = secret test-db2.jdbc.url = jdbc:db2://servername:50000/databasename test-db2.jdbc.driver = com.ibm.db2.jcc.DB2Driver
979899100101102103104105106107
.bindList(DefaultDbAdapterFactory.DETECTORS_LIST) .add(new OpenBaseSniffer()) .add(new FrontBaseSniffer()) .add(new IngresSniffer()) .add(new SQLiteSniffer()) .add(new DB2Sniffer()) .add(new H2Sniffer()) .add(new HSQLDBSniffer()) .add(new SybaseSniffer()) .add(new DerbySniffer()) .add(new SQLServerSniffer())
107108109110111112113114115116117
8687888990919293949596
// TODO: this is cloned from ServerModule... figure out how to reuse // this list binder.bindList(Constants.SERVER_ADAPTER_DETECTORS_LIST).add(new OpenBaseSniffer(objectFactory)) .add(new FrontBaseSniffer(objectFactory)).add(new IngresSniffer(objectFactory)) .add(new SQLiteSniffer(objectFactory)).add(new DB2Sniffer(objectFactory)) .add(new H2Sniffer(objectFactory)).add(new HSQLDBSniffer(objectFactory)) .add(new SybaseSniffer(objectFactory)).add(new DerbySniffer(objectFactory)) .add(new SQLServerSniffer(objectFactory)).add(new OracleSniffer(objectFactory)) .add(new PostgresSniffer(objectFactory)).add(new MySQLSniffer(objectFactory));
139140141142143144145146147148149
.bindList(Constants.SERVER_ADAPTER_DETECTORS_LIST) .add(new OpenBaseSniffer(objectFactory)) .add(new FrontBaseSniffer(objectFactory)) .add(new IngresSniffer(objectFactory)) .add(new SQLiteSniffer(objectFactory)) .add(new DB2Sniffer(objectFactory)) .add(new H2Sniffer(objectFactory)) .add(new HSQLDBSniffer(objectFactory)) .add(new SybaseSniffer(objectFactory)) .add(new DerbySniffer(objectFactory)) .add(new SQLServerSniffer(objectFactory))
.add(new FirebirdSniffer(objectFactory)) .add(new OpenBaseSniffer(objectFactory)) .add(new FrontBaseSniffer(objectFactory)) .add(new IngresSniffer(objectFactory)) .add(new SQLiteSniffer(objectFactory)) .add(new DB2Sniffer(objectFactory)) .add(new H2Sniffer(objectFactory)) .add(new HSQLDBSniffer(objectFactory)) .add(new SybaseSniffer(objectFactory)) .add(new DerbySniffer(objectFactory)) .add(new SQLServerSniffer(objectFactory))
93949596979899100101102103
135136137138139140141142143144145