use of org.hibernate.cfg.reveng.DefaultDatabaseCollector in project jbosstools-hibernate by jbosstools.
the class ServiceImpl method newDatabaseCollector.
@Override
public IDatabaseCollector newDatabaseCollector(IJDBCReader jdbcReader) {
assert jdbcReader instanceof IFacade;
JDBCReader jdbcReaderTarget = (JDBCReader) ((IFacade) jdbcReader).getTarget();
MetaDataDialect metadataDialect = jdbcReaderTarget.getMetaDataDialect();
return facadeFactory.createDatabaseCollector(new DefaultDatabaseCollector(metadataDialect));
}
use of org.hibernate.cfg.reveng.DefaultDatabaseCollector in project jbosstools-hibernate by jbosstools.
the class DatabaseCollectorFacadeTest method setUp.
@Before
public void setUp() throws Exception {
databaseCollector = new DefaultDatabaseCollector(new JDBCMetaDataDialect()) {
@Override
public Iterator<Entry<String, List<Table>>> getQualifierEntries() {
methodName = "getQualifierEntries";
HashMap<String, List<Table>> map = new HashMap<String, List<Table>>();
ArrayList<Table> list = new ArrayList<Table>();
list.add(new Table("foo"));
list.add(new Table("bar"));
map.put("one", list);
list = new ArrayList<Table>();
list.add(new Table("fubar"));
map.put("two", list);
return map.entrySet().iterator();
}
};
databaseCollectorFacade = new AbstractDatabaseCollectorFacade(FACADE_FACTORY, databaseCollector) {
};
}
use of org.hibernate.cfg.reveng.DefaultDatabaseCollector in project jbosstools-hibernate by jbosstools.
the class DatabaseCollectorFacadeTest method setUp.
@Before
public void setUp() throws Exception {
databaseCollector = new DefaultDatabaseCollector(new JDBCMetaDataDialect()) {
@Override
public Iterator<Entry<String, List<Table>>> getQualifierEntries() {
methodName = "getQualifierEntries";
HashMap<String, List<Table>> map = new HashMap<String, List<Table>>();
ArrayList<Table> list = new ArrayList<Table>();
list.add(new Table("foo"));
list.add(new Table("bar"));
map.put("one", list);
list = new ArrayList<Table>();
list.add(new Table("fubar"));
map.put("two", list);
return map.entrySet().iterator();
}
};
databaseCollectorFacade = new AbstractDatabaseCollectorFacade(FACADE_FACTORY, databaseCollector) {
};
}
use of org.hibernate.cfg.reveng.DefaultDatabaseCollector in project jbosstools-hibernate by jbosstools.
the class DatabaseCollectorFacadeTest method setUp.
@Before
public void setUp() throws Exception {
databaseCollector = new DefaultDatabaseCollector(new JDBCMetaDataDialect()) {
@Override
public Iterator<Entry<String, List<Table>>> getQualifierEntries() {
methodName = "getQualifierEntries";
HashMap<String, List<Table>> map = new HashMap<String, List<Table>>();
ArrayList<Table> list = new ArrayList<Table>();
list.add(new Table("foo"));
list.add(new Table("bar"));
map.put("one", list);
list = new ArrayList<Table>();
list.add(new Table("fubar"));
map.put("two", list);
return map.entrySet().iterator();
}
};
databaseCollectorFacade = new AbstractDatabaseCollectorFacade(FACADE_FACTORY, databaseCollector) {
};
}
use of org.hibernate.cfg.reveng.DefaultDatabaseCollector in project jbosstools-hibernate by jbosstools.
the class DatabaseCollectorFacadeTest method setUp.
@Before
public void setUp() throws Exception {
databaseCollector = new DefaultDatabaseCollector(new JDBCMetaDataDialect()) {
@Override
public Iterator<Entry<String, List<Table>>> getQualifierEntries() {
methodName = "getQualifierEntries";
HashMap<String, List<Table>> map = new HashMap<String, List<Table>>();
ArrayList<Table> list = new ArrayList<Table>();
list.add(new Table("foo"));
list.add(new Table("bar"));
map.put("one", list);
list = new ArrayList<Table>();
list.add(new Table("fubar"));
map.put("two", list);
return map.entrySet().iterator();
}
};
databaseCollectorFacade = new AbstractDatabaseCollectorFacade(FACADE_FACTORY, databaseCollector) {
};
}
Aggregations