Search in sources :

Example 6 with OutsideSqlOption

use of org.dbflute.outsidesql.OutsideSqlOption in project dbflute-core by dbflute.

the class OutsideSqlCallCommand method generateSpecifiedOutsideSqlUniqueKey.

protected String generateSpecifiedOutsideSqlUniqueKey() {
    final String methodName = getCommandName();
    final String path = _outsideSqlPath;
    final Object pmb = _parameterBean;
    final OutsideSqlOption option = _outsideSqlOption;
    return OutsideSqlContext.generateSpecifiedOutsideSqlUniqueKey(methodName, path, pmb, option, null);
}
Also used : OutsideSqlOption(org.dbflute.outsidesql.OutsideSqlOption)

Example 7 with OutsideSqlOption

use of org.dbflute.outsidesql.OutsideSqlOption in project dbflute-core by dbflute.

the class AbstractOutsideSqlCommand method setupOutsideSqlContextProperty.

protected void setupOutsideSqlContextProperty(OutsideSqlContext context) {
    final String path = _outsideSqlPath;
    final Object pmb = _parameterBean;
    final OutsideSqlOption option = _outsideSqlOption;
    context.setOutsideSqlPath(path);
    context.setParameterBean(pmb);
    context.setResultType(getResultType());
    context.setMethodName(getCommandName());
    context.setStatementConfig(option.getStatementConfig());
    context.setTableDbName(option.getTableDbName());
    context.setOffsetByCursorForcedly(option.isAutoPaging());
    context.setLimitByCursorForcedly(option.isAutoPaging());
    context.setOutsideSqlFilter(_outsideSqlFilter);
    context.setRemoveBlockComment(option.isRemoveBlockComment());
    context.setRemoveLineComment(option.isRemoveLineComment());
    context.setFormatSql(option.isFormatSql());
    context.setNonSpecifiedColumnAccessAllowed(option.isNonSpecifiedColumnAccessAllowed());
    context.setInternalDebug(ResourceContext.isInternalDebug());
    context.setupBehaviorQueryPathIfNeeds();
}
Also used : OutsideSqlOption(org.dbflute.outsidesql.OutsideSqlOption)

Aggregations

OutsideSqlOption (org.dbflute.outsidesql.OutsideSqlOption)7 DBDef (org.dbflute.dbway.DBDef)1 OutsideSqlExecutorFactory (org.dbflute.outsidesql.factory.OutsideSqlExecutorFactory)1