Search in sources :

Example 6 with DfDatabaseTypeFacadeProp

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();
}
Also used : DfUniqueKeyFkExtractorFactory(org.dbflute.logic.jdbc.metadata.supplement.factory.DfUniqueKeyFkExtractorFactory) DfDatabaseTypeFacadeProp(org.dbflute.properties.facade.DfDatabaseTypeFacadeProp)

Example 7 with DfDatabaseTypeFacadeProp

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);
}
Also used : DfDatabaseTypeFacadeProp(org.dbflute.properties.facade.DfDatabaseTypeFacadeProp)

Example 8 with DfDatabaseTypeFacadeProp

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;
}
Also used : DfSequenceExtractorFactory(org.dbflute.logic.jdbc.metadata.sequence.factory.DfSequenceExtractorFactory) DfDatabaseTypeFacadeProp(org.dbflute.properties.facade.DfDatabaseTypeFacadeProp) DfDatabaseProperties(org.dbflute.properties.DfDatabaseProperties)

Example 9 with DfDatabaseTypeFacadeProp

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);
}
Also used : DfDatabaseTypeFacadeProp(org.dbflute.properties.facade.DfDatabaseTypeFacadeProp) DfBasicProperties(org.dbflute.properties.DfBasicProperties)

Aggregations

DfDatabaseTypeFacadeProp (org.dbflute.properties.facade.DfDatabaseTypeFacadeProp)9 DfCurrentSchemaConnector (org.dbflute.logic.jdbc.connection.DfCurrentSchemaConnector)2 DfBasicProperties (org.dbflute.properties.DfBasicProperties)2 DfDatabaseProperties (org.dbflute.properties.DfDatabaseProperties)2 DfSequenceExtractorFactory (org.dbflute.logic.jdbc.metadata.sequence.factory.DfSequenceExtractorFactory)1 DfUniqueKeyFkExtractorFactory (org.dbflute.logic.jdbc.metadata.supplement.factory.DfUniqueKeyFkExtractorFactory)1 DfRepsSequenceHandlerFactory (org.dbflute.logic.replaceschema.takefinally.sequence.factory.DfRepsSequenceHandlerFactory)1 DfSequenceIdentityProperties (org.dbflute.properties.DfSequenceIdentityProperties)1