Search in sources :

Example 1 with DfSequenceExtractor

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

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

Aggregations

DfSequenceMeta (org.dbflute.logic.jdbc.metadata.info.DfSequenceMeta)2 DfSequenceExtractor (org.dbflute.logic.jdbc.metadata.sequence.DfSequenceExtractor)2 DfSequenceExtractorFactory (org.dbflute.logic.jdbc.metadata.sequence.factory.DfSequenceExtractorFactory)2