use of org.jboss.tools.hibernate.runtime.common.IFacade in project jbosstools-hibernate by jbosstools.
the class ServiceImpl method newSchemaExport.
@Override
public ISchemaExport newSchemaExport(IConfiguration hcfg) {
ISchemaExport result = null;
if (hcfg instanceof IFacade) {
SchemaExport schemaExport = new SchemaExport((Configuration) ((IFacade) hcfg).getTarget());
result = facadeFactory.createSchemaExport(schemaExport);
}
return result;
}
use of org.jboss.tools.hibernate.runtime.common.IFacade 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.jboss.tools.hibernate.runtime.common.IFacade 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.jboss.tools.hibernate.runtime.common.IFacade in project jbosstools-hibernate by jbosstools.
the class ServiceImpl method newSchemaExport.
@Override
public ISchemaExport newSchemaExport(IConfiguration hcfg) {
ISchemaExport result = null;
if (hcfg instanceof IFacade) {
SchemaExport schemaExport = new SchemaExport((Configuration) ((IFacade) hcfg).getTarget());
result = facadeFactory.createSchemaExport(schemaExport);
}
return result;
}
use of org.jboss.tools.hibernate.runtime.common.IFacade 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));
}
Aggregations