コード例 #1
0
  /**
   * Sets the value of <code>priority</code>.
   *
   * <p>If the new value is the same as the old value, this method has no effect, i.e. if you
   * specify a new value, than {@see isPriorityChanged()} will return true. If you specify the same
   * value as the old value isPriorityChanged() will return the same as it did before calling <code>
   * setPriority(...)</code>.
   *
   * @throws IllegalArgumentException if the value is <code>null</code> (since <code>priority</code>
   *     is not nullable)
   * @since Iteration2
   */
  public void setPriority(int value) {
    if (manager.isNull(value)) {
      throw new java.lang.IllegalArgumentException("priority is not nullable, null given");
    }

    if (de.fu.bakery.orm.java.GenericRelationManager.compareValues(_priority, value) == 0) return;
    changed_priority = true;
    _priority = value;
  }
コード例 #2
0
ファイル: Timeslot.java プロジェクト: scravy/SceTris
  /**
   * Sets the value of <code>startingTime</code>.
   *
   * <p>If the new value is the same as the old value, this method has no effect, i.e. if you
   * specify a new value, than {@see isStartingTimeChanged()} will return true. If you specify the
   * same value as the old value isStartingTimeChanged() will return the same as it did before
   * calling <code>setStartingTime(...)</code>.
   *
   * @throws IllegalArgumentException if the value is <code>null</code> (since <code>startingTime
   *     </code> is not nullable)
   * @since Iteration2
   */
  public Timeslot setStartingTime(java.sql.Time value) {
    if (manager.isNull(value)) {
      throw new java.lang.IllegalArgumentException("startingTime is not nullable, null given");
    }

    if (de.fu.bakery.orm.java.GenericRelationManager.compareValues(_startingTime, value) == 0)
      return this;
    changed_startingTime = true;
    _startingTime = value;
    return this;
  }
コード例 #3
0
  /**
   * Sets the value of <code>room</code>.
   *
   * <p>If the new value is the same as the old value, this method has no effect, i.e. if you
   * specify a new value, than {@see isRoomChanged()} will return true. If you specify the same
   * value as the old value isRoomChanged() will return the same as it did before calling <code>
   * setRoom(...)</code>.
   *
   * @throws IllegalArgumentException if the value is <code>null</code> (since <code>room</code> is
   *     not nullable)
   * @since Iteration2
   */
  public void setRoom(Room value) {
    if (manager.isNull(value)) {
      throw new java.lang.IllegalArgumentException("room is not nullable, null given");
    }

    if (de.fu.bakery.orm.java.GenericRelationManager.compareValues(ref_room, value._id) == 0)
      return;
    changed_room = true;
    ref_room = value._id;
    fetched_room = true;
    _room = value;
  }
コード例 #4
0
  /**
   * Sets the value of <code>elementInstance</code>.
   *
   * <p>If the new value is the same as the old value, this method has no effect, i.e. if you
   * specify a new value, than {@see isElementInstanceChanged()} will return true. If you specify
   * the same value as the old value isElementInstanceChanged() will return the same as it did
   * before calling <code>setElementInstance(...)</code>.
   *
   * @throws IllegalArgumentException if the value is <code>null</code> (since <code>elementInstance
   *     </code> is not nullable)
   * @since Iteration2
   */
  public void setElementInstance(CourseElementInstance value) {
    if (manager.isNull(value)) {
      throw new java.lang.IllegalArgumentException("elementInstance is not nullable, null given");
    }

    if (de.fu.bakery.orm.java.GenericRelationManager.compareValues(ref_elementInstance, value._id)
        == 0) return;
    changed_elementInstance = true;
    ref_elementInstance = value._id;
    fetched_elementInstance = true;
    _elementInstance = value;
  }
コード例 #5
0
  /**
   * Sets the value of <code>year</code>.
   *
   * <p>If the new value is the same as the old value, this method has no effect, i.e. if you
   * specify a new value, than {@see isYearChanged()} will return true. If you specify the same
   * value as the old value isYearChanged() will return the same as it did before calling <code>
   * setYear(...)</code>.
   *
   * @throws IllegalArgumentException if the value is <code>null</code> (since <code>year</code> is
   *     not nullable)
   * @since Iteration2
   */
  public CourseRecommendedForYear setYear(Year value) {
    if (manager.isNull(value)) {
      throw new java.lang.IllegalArgumentException("year is not nullable, null given");
    }

    if (de.fu.bakery.orm.java.GenericRelationManager.compareValues(ref_year, value._id) == 0)
      return this;
    changed_year = true;
    ref_year = value._id;
    fetched_year = true;
    _year = value;
    return this;
  }
コード例 #6
0
ファイル: Timeslot.java プロジェクト: scravy/SceTris
  /**
   * Sets the value of <code>day</code>.
   *
   * <p>If the new value is the same as the old value, this method has no effect, i.e. if you
   * specify a new value, than {@see isDayChanged()} will return true. If you specify the same value
   * as the old value isDayChanged() will return the same as it did before calling <code>setDay(...)
   * </code>.
   *
   * @throws IllegalArgumentException if the value is <code>null</code> (since <code>day</code> is
   *     not nullable)
   * @since Iteration2
   */
  public Timeslot setDay(Day value) {
    if (manager.isNull(value)) {
      throw new java.lang.IllegalArgumentException("day is not nullable, null given");
    }

    if (de.fu.bakery.orm.java.GenericRelationManager.compareValues(ref_day, value._id) == 0)
      return this;
    changed_day = true;
    ref_day = value._id;
    fetched_day = true;
    _day = value;
    return this;
  }
コード例 #7
0
 public boolean isValidTimekey(java.sql.Timestamp key) {
   return de.fu.bakery.orm.java.GenericRelationManager.compareValues(_timekey, key) == 0;
 }