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;
}
Aggregations