コード例 #1
0
 /**
  * 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, Sample1ConditionValue value) {
   if (value.getLessThan() == null) {
     return;
   }
   conditionList.add(buildBindClause(columnName, value.getLessThanLocation()));
 }
コード例 #2
0
 /**
  * Is valid registration?
  *
  * @param conditionValue Condition value. (NotNull)
  * @param value Value. (NotNull)
  * @param callerName Caller name. (NotNull)
  * @return Determination.
  */
 public boolean isValidRegistration(
     Sample1ConditionValue conditionValue, Object value, String callerName) {
   if (value == null) {
     return false;
   }
   if (conditionValue.hasLessThan()) {
     if (conditionValue.equalLessThan(value)) {
       _log.warn("The value has already registered at " + callerName + ": value=" + value);
       return false;
     } else {
       conditionValue.overrideLessThan(value);
       return false;
     }
   }
   return true;
 }
コード例 #3
0
 /**
  * This method implements super#doSetupConditionValue().
  *
  * @param conditionValue Condition value. (NotNull)
  * @param value Value. (NotNull)
  * @param location Location. (NotNull)
  */
 protected void doSetupConditionValue(
     Sample1ConditionValue conditionValue, Object value, String location) {
   conditionValue.setLessThan(value).setLessThanLocation(location);
 }