Search in sources :

Example 6 with ConditionKey

use of org.dbflute.cbean.ckey.ConditionKey in project dbflute-core by dbflute.

the class AbstractConditionQuery method handleInvalidQueryList.

protected void handleInvalidQueryList(List<ConditionKey> keyList, List<? extends Object> valueList, String columnDbName) {
    if (keyList.size() != valueList.size()) {
        String msg = "The argument 'keyList' should have the same size as 'valueList':";
        msg = msg + " keyList=" + keyList + ", valueList=" + valueList;
        throw new IllegalArgumentException(msg);
    }
    final HpInvalidQueryInfo[] invalidQueryInfoAry = new HpInvalidQueryInfo[keyList.size()];
    int index = 0;
    for (ConditionKey key : keyList) {
        final Object value = valueList.get(index);
        invalidQueryInfoAry[index] = xcreateInvalidQueryInfo(key, value, columnDbName);
        ++index;
    }
    xdoHandleInvalidQuery(columnDbName, invalidQueryInfoAry);
}
Also used : HpInvalidQueryInfo(org.dbflute.cbean.chelper.HpInvalidQueryInfo) ConditionKey(org.dbflute.cbean.ckey.ConditionKey)

Aggregations

ConditionKey (org.dbflute.cbean.ckey.ConditionKey)6 LocalDate (java.time.LocalDate)2 Date (java.util.Date)2 ConditionKeyPrepareResult (org.dbflute.cbean.ckey.ConditionKeyPrepareResult)2 HpInvalidQueryInfo (org.dbflute.cbean.chelper.HpInvalidQueryInfo)1 HpMobCaseWhenElement (org.dbflute.cbean.chelper.HpMobCaseWhenElement)1