/** * This method implements super#doAddWhereClause(). * * @param conditionList Condition list. (NotNull) * @param columnName Column name. (NotNull) * @param value Condition value. (NotNull) */ protected void doAddWhereClause( java.util.List<String> conditionList, String columnName, Sample2ConditionValue value) { if (value.getNotInScope() == null) { return; } conditionList.add(buildBindClause(columnName, value.getNotInScopeLocation(), "('a1', 'a2')")); }
/** * Is valid registration? * * @param conditionValue Condition value. (NotNull) * @param value Value. (NotNull) * @param callerName Caller name. (NotNull) * @return Determination. */ public boolean isValidRegistration( Sample2ConditionValue conditionValue, Object value, String callerName) { if (value == null) { return false; } if (value instanceof java.util.List && ((java.util.List<?>) value).isEmpty()) { return false; } if (value instanceof java.util.List) { if (conditionValue.hasNotInScope()) { if (conditionValue.equalNotInScope(((java.util.List<?>) value))) { _log.warn("The value has already registered at " + callerName + ": value=" + value); return false; } else { conditionValue.overrideNotInScope(((java.util.List<?>) value)); return false; } } } return true; }
/** * This method implements super#doSetupConditionValue(). * * @param conditionValue Condition value. (NotNull) * @param value Value. (NotNull) * @param location Location. (NotNull) */ protected void doSetupConditionValue( Sample2ConditionValue conditionValue, Object value, String location) { conditionValue.setNotInScope((java.util.List<?>) value).setNotInScopeLocation(location); }