CB - The type of condition-bean.PARAMETER - The type of parameter.public class HpQDRParameter<CB extends ConditionBean,PARAMETER> extends Object
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected String |
_function |
protected DerivedReferrerOption |
_option |
protected HpQDRSetupper<CB> |
_setupper |
protected SubQuery<CB> |
_subQuery |
| コンストラクタと説明 |
|---|
HpQDRParameter(String function,
SubQuery<CB> subQuery,
DerivedReferrerOption option,
HpQDRSetupper<CB> setupper) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected void |
assertFromToDateBothExistsOrOneSideAllowed(Date fromDate,
Date toDate,
FromToOption option) |
protected void |
assertFromToNotCalledUnsupported(Date fromDate,
Date toDate,
FromToOption option) |
protected void |
assertFromToOption(FromToOption option) |
protected void |
assertFromToOptionCall(ConditionOptionCall<FromToOption> opLambda) |
protected void |
assertParameterFromNotNull(Object fromValue) |
protected void |
assertParameterNotNull(Object value) |
protected void |
assertParameterToNotNull(Object toValue) |
protected void |
assertRangeOfNotCalledUnsupported(Number minNumber,
Number maxNumber,
RangeOfOption option) |
protected void |
assertRangeOfNumberBothExistsOrOneSideAllowed(Number minNumber,
Number maxNumber,
RangeOfOption option) |
protected void |
assertRangeOfOption(RangeOfOption option) |
protected void |
assertRangeOfOptionCall(ConditionOptionCall<RangeOfOption> opLambda) |
protected FromToOption |
createFromToOption(ConditionOptionCall<FromToOption> opLambda) |
protected RangeOfOption |
createRangeOfOption(ConditionOptionCall<RangeOfOption> opLambda) |
protected void |
dispatchFromTo(PARAMETER fromValue,
PARAMETER toValue) |
protected void |
doBetween(PARAMETER fromValue,
PARAMETER toValue) |
protected void |
doFromTo(Date fromDate,
Date toDate,
FromToOption option) |
protected void |
doRangeOf(Number minNumber,
Number maxNumber,
RangeOfOption option) |
void |
equal(PARAMETER value)
Set up the operand 'equal' and the value of parameter.
|
void |
fromTo(Date fromDate,
Date toDate,
ConditionOptionCall<FromToOption> opLambda)
Set up the comparison 'FromTo' and the values of parameter.
|
void |
fromTo(LocalDate fromDate,
LocalDate toDate,
ConditionOptionCall<FromToOption> opLambda)
Set up the comparison 'FromTo' and the values of parameter.
|
void |
fromTo(LocalDateTime fromDate,
LocalDateTime toDate,
ConditionOptionCall<FromToOption> opLambda)
Set up the comparison 'FromTo' and the values of parameter.
|
protected String |
getBetweenKeyword() |
protected TimeZone |
getDBFluteSystemFinalTimeZone() |
protected TimeZone |
getFromToConversionTimeZone() |
void |
greaterEqual(PARAMETER value)
Set up the operand 'greaterEqual' and the value of parameter.
|
void |
greaterThan(PARAMETER value)
Set up the operand 'greaterThan' and the value of parameter.
|
void |
isNotNull()
Set up the operand 'isNull' and the value of parameter.
|
void |
isNull()
Set up the operand 'isNull' and the value of parameter.
|
static boolean |
isOperandIsNull(String operand) |
void |
lessEqual(PARAMETER value)
Set up the operand 'lessEqual' and the value of parameter.
|
void |
lessThan(PARAMETER value)
Set up the operand 'lessThan' and the value of parameter.
|
protected FromToOption |
newFromToOption() |
protected RangeOfOption |
newRangeOfOption() |
void |
notEqual(PARAMETER value)
Set up the operand 'notEqual' and the value of parameter.
|
void |
rangeOf(Number minNumber,
Number maxNumber,
ConditionOptionCall<RangeOfOption> opLambda)
Set up the comparison 'RangeOf' and the values of parameter.
|
protected Date |
toDate(Object obj) |
protected final String _function
protected final SubQuery<CB extends ConditionBean> _subQuery
protected final DerivedReferrerOption _option
protected final HpQDRSetupper<CB extends ConditionBean> _setupper
public HpQDRParameter(String function, SubQuery<CB> subQuery, DerivedReferrerOption option, HpQDRSetupper<CB> setupper)
public void equal(PARAMETER value)
cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() {
protected void query(PurchaseCB subCB) {
subCB.specify().columnPurchasePrice(); // If the type is Integer...
subCB.query().setPaymentCompleteFlg_Equal_True();
}
}).equal(123); // This parameter should be Integer!
value - The value of parameter for the specified column. (NotNull)public void notEqual(PARAMETER value)
cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() {
protected void query(PurchaseCB subCB) {
subCB.specify().columnPurchasePrice(); // If the type is Integer...
subCB.query().setPaymentCompleteFlg_Equal_True();
}
}).notEqual(123); // This parameter should be Integer!
value - The value of parameter for the specified column. (NotNull)public void greaterThan(PARAMETER value)
cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() {
protected void query(PurchaseCB subCB) {
subCB.specify().columnPurchasePrice(); // If the type is Integer...
subCB.query().setPaymentCompleteFlg_Equal_True();
}
}).greaterThan(123); // This parameter should be Integer!
value - The value of parameter for the specified column. (NotNull)public void lessThan(PARAMETER value)
cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() {
protected void query(PurchaseCB subCB) {
subCB.specify().columnPurchasePrice(); // If the type is Integer...
subCB.query().setPaymentCompleteFlg_Equal_True();
}
}).lessThan(123); // This parameter should be Integer!
value - The value of parameter for the specified column. (NotNull)public void greaterEqual(PARAMETER value)
cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() {
protected void query(PurchaseCB subCB) {
subCB.specify().columnPurchasePrice(); // If the type is Integer...
subCB.query().setPaymentCompleteFlg_Equal_True();
}
}).greaterEqual(123); // This parameter should be Integer!
value - The value of parameter for the specified column. (NotNull)public void lessEqual(PARAMETER value)
cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() {
protected void query(PurchaseCB subCB) {
subCB.specify().columnPurchasePrice(); // If the type is Integer...
subCB.query().setPaymentCompleteFlg_Equal_True();
}
}).lessEqual(123); // This parameter should be Integer!
value - The value of parameter for the specified column. (NotNull)public void isNull()
cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() {
protected void query(PurchaseCB subCB) {
subCB.specify().columnPurchasePrice();
subCB.query().setPaymentCompleteFlg_Equal_True();
}
}).isNull(); // no parameter
public void isNotNull()
cb.query().derivedPurchaseList().max(new SubQuery<PurchaseCB>() {
protected void query(PurchaseCB subCB) {
subCB.specify().columnPurchasePrice();
subCB.query().setPaymentCompleteFlg_Equal_True();
}
}).isNotNull(); // no parameter
public void rangeOf(Number minNumber, Number maxNumber, ConditionOptionCall<RangeOfOption> opLambda)
cb.query().derivedPurchaseList().max(purchasCB -> { purchasCB.specify().columnPurchasePrice(); purchasCB.query().setPaymentCompleteFlg_Equal_True(); }).rangeOf(2000, 2999, op -> {}); // PURCHASE_PRICE between 2000 and 2999
The option is allowed to be set only allowOneSide(). You cannot use greaterThan() and orIsNull() and so on...
minNumber - The minimum number of parameter for the specified column. (basically NotNull: null allowed if one-side allowed)maxNumber - The maximum number of parameter for the specified column. (basically NotNull: null allowed if one-side allowed)opLambda - The callback for option of range-of. (NotNull)protected void doRangeOf(Number minNumber, Number maxNumber, RangeOfOption option)
protected RangeOfOption createRangeOfOption(ConditionOptionCall<RangeOfOption> opLambda)
protected RangeOfOption newRangeOfOption()
public void fromTo(LocalDate fromDate, LocalDate toDate, ConditionOptionCall<FromToOption> opLambda)
cb.query().derivedPurchaseList().max(purchasCB -> { purchasCB.specify().columnPurchaseDatetime(); purchasCB.query().setPaymentCompleteFlg_Equal_True(); }).fromTo(toLocalDate("2012/02/05"), toLocalDate("2012/04/07"), op -> op.compareAsMonth()); // PURCHASE_DATETIME between 2012/02/01 00:00:00 and 2012/04/30 23:59:59.999
fromDate - The 'from' local date of parameter for the specified column. (basically NotNull: null allowed if one-side allowed)toDate - The 'to' local date of parameter for the specified column. (basically NotNull: null allowed if one-side allowed)opLambda - The callback for option of from-to. (NotNull)public void fromTo(LocalDateTime fromDate, LocalDateTime toDate, ConditionOptionCall<FromToOption> opLambda)
cb.query().derivedPurchaseList().max(purchasCB -> { purchasCB.specify().columnPurchaseDatetime(); purchasCB.query().setPaymentCompleteFlg_Equal_True(); }).fromTo(toLocalDateTime("2012/02/05"), toLocalDateTime("2012/04/07"), op -> op.compareAsMonth()); // PURCHASE_DATETIME between 2012/02/01 00:00:00 and 2012/04/30 23:59:59.999
fromDate - The 'from' local date-time of parameter for the specified column. (basically NotNull: null allowed if one-side allowed)toDate - The 'to' local date-time of parameter for the specified column. (basically NotNull: null allowed if one-side allowed)opLambda - The callback for option of from-to. (NotNull)public void fromTo(Date fromDate, Date toDate, ConditionOptionCall<FromToOption> opLambda)
cb.query().derivedPurchaseList().max(purchasCB -> { purchasCB.specify().columnPurchaseDatetime(); purchasCB.query().setPaymentCompleteFlg_Equal_True(); }).fromTo(toTimestamp("2012/02/05"), toTimestamp("2012/04/07"), op -> op.compareAsMonth()); // PURCHASE_DATETIME between 2012/02/01 00:00:00 and 2012/04/30 23:59:59.999
fromDate - The 'from' date of parameter for the specified column. (basically NotNull: null allowed if one-side allowed)toDate - The 'to' date of parameter for the specified column. (basically NotNull: null allowed if one-side allowed)opLambda - The callback for option of from-to. (NotNull)protected FromToOption createFromToOption(ConditionOptionCall<FromToOption> opLambda)
protected FromToOption newFromToOption()
protected void doFromTo(Date fromDate, Date toDate, FromToOption option)
protected String getBetweenKeyword()
protected TimeZone getFromToConversionTimeZone()
protected TimeZone getDBFluteSystemFinalTimeZone()
protected void assertParameterNotNull(Object value)
protected void assertRangeOfOptionCall(ConditionOptionCall<RangeOfOption> opLambda)
protected void assertRangeOfOption(RangeOfOption option)
protected void assertRangeOfNotCalledUnsupported(Number minNumber, Number maxNumber, RangeOfOption option)
protected void assertRangeOfNumberBothExistsOrOneSideAllowed(Number minNumber, Number maxNumber, RangeOfOption option)
protected void assertFromToOptionCall(ConditionOptionCall<FromToOption> opLambda)
protected void assertFromToOption(FromToOption option)
protected void assertFromToNotCalledUnsupported(Date fromDate, Date toDate, FromToOption option)
protected void assertFromToDateBothExistsOrOneSideAllowed(Date fromDate, Date toDate, FromToOption option)
protected void assertParameterFromNotNull(Object fromValue)
protected void assertParameterToNotNull(Object toValue)
public static boolean isOperandIsNull(String operand)
Copyright © 2014–2015 The DBFlute Project. All rights reserved.