Search in sources :

Example 11 with DfOutsideSqlProperties

use of org.dbflute.properties.DfOutsideSqlProperties in project dbflute-core by dbflute.

the class DfProcedureExtractor method filterByProperty.

// -----------------------------------------------------
// Filter by Property
// ------------------
protected List<DfProcedureMeta> filterByProperty(List<DfProcedureMeta> procedureList) {
    if (_suppressFilterByProperty) {
        return procedureList;
    }
    final DfOutsideSqlProperties prop = getOutsideSqlProperties();
    final List<DfProcedureMeta> resultList = new ArrayList<DfProcedureMeta>();
    log("...Filtering procedures by the property: before=" + procedureList.size());
    int passedCount = 0;
    for (DfProcedureMeta meta : procedureList) {
        if (isTargetByProperty(meta, prop)) {
            resultList.add(meta);
        } else {
            ++passedCount;
        }
    }
    if (passedCount == 0) {
        log(" -> All procedures are target: count=" + procedureList.size());
    }
    return resultList;
}
Also used : DfOutsideSqlProperties(org.dbflute.properties.DfOutsideSqlProperties) ArrayList(java.util.ArrayList) DfProcedureMeta(org.dbflute.logic.jdbc.metadata.info.DfProcedureMeta)

Aggregations

DfOutsideSqlProperties (org.dbflute.properties.DfOutsideSqlProperties)11 DfProcedureMeta (org.dbflute.logic.jdbc.metadata.info.DfProcedureMeta)4 Properties (java.util.Properties)3 ArrayList (java.util.ArrayList)2 File (java.io.File)1 CallableStatement (java.sql.CallableStatement)1 Connection (java.sql.Connection)1 ResultSet (java.sql.ResultSet)1 SQLException (java.sql.SQLException)1 DBDef (org.dbflute.dbway.DBDef)1 DfProcedureExecutionMetaGettingFailureException (org.dbflute.exception.DfProcedureExecutionMetaGettingFailureException)1 DfSqlFileRunnerExecute (org.dbflute.helper.jdbc.sqlfile.DfSqlFileRunnerExecute)1 ExceptionMessageBuilder (org.dbflute.helper.message.ExceptionMessageBuilder)1 DfColumnMeta (org.dbflute.logic.jdbc.metadata.info.DfColumnMeta)1 DfProcedureColumnMeta (org.dbflute.logic.jdbc.metadata.info.DfProcedureColumnMeta)1 DfProcedureColumnType (org.dbflute.logic.jdbc.metadata.info.DfProcedureColumnMeta.DfProcedureColumnType)1 DfProcedureNotParamResultMeta (org.dbflute.logic.jdbc.metadata.info.DfProcedureNotParamResultMeta)1 DfProcedureSynonymMeta (org.dbflute.logic.jdbc.metadata.info.DfProcedureSynonymMeta)1 DfProcedureNativeTranslatorOracle (org.dbflute.logic.jdbc.metadata.procedure.DfProcedureNativeTranslatorOracle)1 DfProcedureSynonymExtractor (org.dbflute.logic.jdbc.metadata.synonym.DfProcedureSynonymExtractor)1