Search in sources :

Example 1 with OutsideSqlSelectExecution

use of org.dbflute.bhv.core.execution.OutsideSqlSelectExecution in project dbflute-core by dbflute.

the class AbstractOutsideSqlSelectCommand method createOutsideSqlSelectExecution.

protected SqlExecution createOutsideSqlSelectExecution(OutsideSqlContext outsideSqlContext) {
    // - - - - - - - - - - - - - - - - - - - - - - -
    // The attribute of Specified-OutsideSqlContext.
    // - - - - - - - - - - - - - - - - - - - - - - -
    final Object pmb = outsideSqlContext.getParameterBean();
    final String suffix = buildDbmsSuffix();
    final String sql = outsideSqlContext.readFilteredOutsideSql(_sqlFileEncoding, suffix);
    // - - - - - - - - - - - - -
    // Create ResultSetHandler.
    // - - - - - - - - - - - - -
    final TnResultSetHandler handler = createOutsideSqlSelectResultSetHandler();
    // - - - - - - - - - - -
    // Create SqlExecution.
    // - - - - - - - - - - -
    final OutsideSqlSelectExecution execution = createOutsideSqlSelectExecution(pmb, sql, handler);
    execution.setRemoveBlockComment(isRemoveBlockComment(outsideSqlContext));
    execution.setRemoveLineComment(isRemoveLineComment(outsideSqlContext));
    execution.setFormatSql(outsideSqlContext.isFormatSql());
    execution.setOutsideSqlFilter(_outsideSqlFilter);
    return execution;
}
Also used : TnResultSetHandler(org.dbflute.s2dao.jdbc.TnResultSetHandler) OutsideSqlSelectExecution(org.dbflute.bhv.core.execution.OutsideSqlSelectExecution)

Aggregations

OutsideSqlSelectExecution (org.dbflute.bhv.core.execution.OutsideSqlSelectExecution)1 TnResultSetHandler (org.dbflute.s2dao.jdbc.TnResultSetHandler)1