use of org.dbflute.properties.facade.DfDatabaseTypeFacadeProp in project dbflute-core by dbflute.
the class DfForeignKeyExtractor method createUniqueKeyFkExtractor.
protected DfUniqueKeyFkExtractor createUniqueKeyFkExtractor(Connection conn, UnifiedSchema unifiedSchema) {
final DfDatabaseTypeFacadeProp facadeProp = new DfDatabaseTypeFacadeProp(getBasicProperties());
final DfUniqueKeyFkExtractorFactory factory = new DfUniqueKeyFkExtractorFactory(conn, unifiedSchema, facadeProp);
return factory.createUniqueKeyFkExtractor();
}
use of org.dbflute.properties.facade.DfDatabaseTypeFacadeProp in project dbflute-core by dbflute.
the class DfUniqueKeyExtractor method extractUniqueKeyMetaData.
protected ResultSet extractUniqueKeyMetaData(DatabaseMetaData metaData, UnifiedSchema unifiedSchema, String tableName, boolean retry) throws SQLException {
final boolean uniqueKeyOnly = true;
final DfDatabaseTypeFacadeProp prop = getDatabaseTypeFacadeProp();
return DfIndexExtractor.delegateExtractIndexInfoMetaData(metaData, unifiedSchema, tableName, uniqueKeyOnly, retry, prop);
}
use of org.dbflute.properties.facade.DfDatabaseTypeFacadeProp in project dbflute-core by dbflute.
the class DfSchemaXmlSerializer method createSequenceExtractorFactory.
protected DfSequenceExtractorFactory createSequenceExtractorFactory(DfSchemaSource dataSource) {
final DfDatabaseTypeFacadeProp facadeProp = getProperties().getBasicProperties().getDatabaseTypeFacadeProp();
final DfDatabaseProperties databaseProp = getDatabaseProperties();
final DfSequenceExtractorFactory factory = new DfSequenceExtractorFactory(dataSource, facadeProp, databaseProp);
if (_suppressAdditionalSchema) {
factory.suppressAdditionalSchema();
}
return factory;
}
use of org.dbflute.properties.facade.DfDatabaseTypeFacadeProp in project dbflute-core by dbflute.
the class DfSchemaXmlReader method doCreateAs.
public static DfSchemaXmlReader doCreateAs(String schemaXml, DfGenetateXmlReadingFilter readingFilter) {
final DfBasicProperties basicProp = DfBuildProperties.getInstance().getBasicProperties();
final DfDatabaseTypeFacadeProp facadeProp = basicProp.getDatabaseTypeFacadeProp();
final String databaseType = facadeProp.getTargetDatabase();
return new DfSchemaXmlReader(schemaXml, databaseType, readingFilter);
}
Aggregations