Search in sources :

Example 1 with DfSequenceExtractorFactory

use of org.dbflute.logic.jdbc.metadata.sequence.factory.DfSequenceExtractorFactory in project dbflute-core by dbflute.

the class DfSchemaXmlSerializer method extractSequenceMap.

protected Map<String, DfSequenceMeta> extractSequenceMap() {
    final DfSequenceExtractorFactory factory = createSequenceExtractorFactory(_dataSource);
    final DfSequenceExtractor sequenceExtractor = factory.createSequenceExtractor();
    Map<String, DfSequenceMeta> sequenceMap = null;
    if (sequenceExtractor != null) {
        sequenceMap = sequenceExtractor.extractSequenceMap();
    }
    return sequenceMap;
}
Also used : DfSequenceMeta(org.dbflute.logic.jdbc.metadata.info.DfSequenceMeta) DfSequenceExtractorFactory(org.dbflute.logic.jdbc.metadata.sequence.factory.DfSequenceExtractorFactory) DfSequenceExtractor(org.dbflute.logic.jdbc.metadata.sequence.DfSequenceExtractor)

Example 2 with DfSequenceExtractorFactory

use of org.dbflute.logic.jdbc.metadata.sequence.factory.DfSequenceExtractorFactory in project dbflute-core by dbflute.

the class DfSequenceIdentityProperties method getSequenceMap.

public Map<String, DfSequenceMeta> getSequenceMap(DfSchemaSource dataSource) {
    if (_sequenceMap != null) {
        return _sequenceMap;
    }
    final DfSequenceExtractorFactory factory = createSequenceExtractorFactory(dataSource);
    final DfSequenceExtractor sequenceExtractor = factory.createSequenceExtractor();
    Map<String, DfSequenceMeta> sequenceMap = null;
    if (sequenceExtractor != null) {
        sequenceMap = sequenceExtractor.extractSequenceMap();
    }
    if (sequenceMap != null) {
        _sequenceMap = sequenceMap;
    } else {
        _sequenceMap = DfCollectionUtil.emptyMap();
    }
    return _sequenceMap;
}
Also used : DfSequenceMeta(org.dbflute.logic.jdbc.metadata.info.DfSequenceMeta) DfSequenceExtractorFactory(org.dbflute.logic.jdbc.metadata.sequence.factory.DfSequenceExtractorFactory) DfSequenceExtractor(org.dbflute.logic.jdbc.metadata.sequence.DfSequenceExtractor)

Example 3 with DfSequenceExtractorFactory

use of org.dbflute.logic.jdbc.metadata.sequence.factory.DfSequenceExtractorFactory 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)

Aggregations

DfSequenceExtractorFactory (org.dbflute.logic.jdbc.metadata.sequence.factory.DfSequenceExtractorFactory)3 DfSequenceMeta (org.dbflute.logic.jdbc.metadata.info.DfSequenceMeta)2 DfSequenceExtractor (org.dbflute.logic.jdbc.metadata.sequence.DfSequenceExtractor)2 DfDatabaseProperties (org.dbflute.properties.DfDatabaseProperties)1 DfDatabaseTypeFacadeProp (org.dbflute.properties.facade.DfDatabaseTypeFacadeProp)1