Search in sources :

Example 1 with RangeOfOption

use of org.dbflute.cbean.coption.RangeOfOption in project dbflute-core by dbflute.

the class ConditionKey method resolveCalculationColumn.

protected ColumnRealName resolveCalculationColumn(ColumnRealName columnRealName, ConditionOption option) {
    if (option == null) {
        return columnRealName;
    }
    if (option instanceof RangeOfOption) {
        final RangeOfOption rangeOfOption = (RangeOfOption) option;
        if (rangeOfOption.hasCalculationRange()) {
            final HpCalcSpecification<ConditionBean> calculationRange = rangeOfOption.getCalculationRange();
            final String calculated = calculationRange.buildStatementToSpecifidName(columnRealName.toString());
            return toColumnRealName(calculated);
        }
    }
    return columnRealName;
}
Also used : RangeOfOption(org.dbflute.cbean.coption.RangeOfOption) ConditionBean(org.dbflute.cbean.ConditionBean)

Example 2 with RangeOfOption

use of org.dbflute.cbean.coption.RangeOfOption in project dbflute-core by dbflute.

the class HpQDRParameter method createRangeOfOption.

protected RangeOfOption createRangeOfOption(ConditionOptionCall<RangeOfOption> opLambda) {
    assertRangeOfOptionCall(opLambda);
    final RangeOfOption op = newRangeOfOption();
    opLambda.callback(op);
    return op;
}
Also used : RangeOfOption(org.dbflute.cbean.coption.RangeOfOption)

Example 3 with RangeOfOption

use of org.dbflute.cbean.coption.RangeOfOption in project dbflute-core by dbflute.

the class AbstractConditionQuery method xcROOP.

// -----------------------------------------------------
// RangeOf
// -------
protected RangeOfOption xcROOP(ConditionOptionCall<RangeOfOption> opCall) {
    // called by template: createRangeOfOption()
    final RangeOfOption op = newRangeOfOption();
    opCall.callback(op);
    return op;
}
Also used : RangeOfOption(org.dbflute.cbean.coption.RangeOfOption)

Aggregations

RangeOfOption (org.dbflute.cbean.coption.RangeOfOption)3 ConditionBean (org.dbflute.cbean.ConditionBean)1