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