Search in sources :

Example 1 with DfDbCommentExtractorSQLServer

use of org.dbflute.logic.jdbc.metadata.comment.DfDbCommentExtractorSQLServer in project dbflute-core by dbflute.

the class DfDbCommentExtractorFactory method createDbCommentExtractor.

// ===================================================================================
// Create
// ======
/**
 * @return The extractor of DB comments. (NullAllowed)
 */
public DfDbCommentExtractor createDbCommentExtractor() {
    if (_databaseTypeFacadeProp.isDatabaseMySQL()) {
        final DfDbCommentExtractorMySQL extractor = new DfDbCommentExtractorMySQL();
        extractor.setDataSource(_dataSource);
        extractor.setUnifiedSchema(_unifiedSchema);
        return extractor;
    } else if (_databaseTypeFacadeProp.isDatabaseOracle()) {
        final DfDbCommentExtractorOracle extractor = new DfDbCommentExtractorOracle();
        extractor.setDataSource(_dataSource);
        extractor.setUnifiedSchema(_unifiedSchema);
        return extractor;
    } else if (_databaseTypeFacadeProp.isDatabaseSQLServer()) {
        final DfDbCommentExtractorSQLServer extractor = new DfDbCommentExtractorSQLServer();
        extractor.setDataSource(_dataSource);
        extractor.setUnifiedSchema(_unifiedSchema);
        return extractor;
    }
    return null;
}
Also used : DfDbCommentExtractorMySQL(org.dbflute.logic.jdbc.metadata.comment.DfDbCommentExtractorMySQL) DfDbCommentExtractorSQLServer(org.dbflute.logic.jdbc.metadata.comment.DfDbCommentExtractorSQLServer) DfDbCommentExtractorOracle(org.dbflute.logic.jdbc.metadata.comment.DfDbCommentExtractorOracle)

Aggregations

DfDbCommentExtractorMySQL (org.dbflute.logic.jdbc.metadata.comment.DfDbCommentExtractorMySQL)1 DfDbCommentExtractorOracle (org.dbflute.logic.jdbc.metadata.comment.DfDbCommentExtractorOracle)1 DfDbCommentExtractorSQLServer (org.dbflute.logic.jdbc.metadata.comment.DfDbCommentExtractorSQLServer)1