// ---------------------------------------------------------------------
// ---    File generated by Oracle ADF Business Components Design Time.
// ---    Sun Jun 02 10:18:48 CST 2013
// ---    Custom code may be added to this class.
// ---    Warning: Do not modify method signatures of generated methods.
// ---------------------------------------------------------------------
public class ConfRoomBatchReservationImpl extends EntityImpl {

  /** AttributesEnum: generated enum for identifying attributes and accessors. Do not modify. */
  public enum AttributesEnum {
    Id {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getId();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setId((DBSequence) value);
      }
    },
    UserId {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getUserId();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setUserId((String) value);
      }
    },
    BatchNo {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getBatchNo();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setBatchNo((String) value);
      }
    },
    UserDisplayName {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getUserDisplayName();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setUserDisplayName((String) value);
      }
    },
    LocationId {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getLocationId();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setLocationId((String) value);
      }
    },
    LocationName {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getLocationName();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setLocationName((String) value);
      }
    },
    MeetingRoom {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getMeetingRoom();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setMeetingRoom((String) value);
      }
    },
    MeetingRoomId {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getMeetingRoomId();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setMeetingRoomId((String) value);
      }
    },
    Title {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getTitle();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setTitle((String) value);
      }
    },
    Participants {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getParticipants();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setParticipants((String) value);
      }
    },
    StartTime {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getStartTime();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setStartTime((Timestamp) value);
      }
    },
    EndTime {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getEndTime();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setEndTime((Timestamp) value);
      }
    },
    Comments {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getComments();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setComments((String) value);
      }
    },
    NeedProjector {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getNeedProjector();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setNeedProjector((String) value);
      }
    },
    NeedLoudspeaker {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getNeedLoudspeaker();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setNeedLoudspeaker((String) value);
      }
    },
    NeedBeverage {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getNeedBeverage();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setNeedBeverage((String) value);
      }
    },
    NeedFruits {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getNeedFruits();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setNeedFruits((String) value);
      }
    },
    NeedSnacks {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getNeedSnacks();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setNeedSnacks((String) value);
      }
    },
    SnackLevel {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getSnackLevel();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setSnackLevel((String) value);
      }
    },
    NumOfPeople {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getNumOfPeople();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setNumOfPeople((BigDecimal) value);
      }
    },
    PrId {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getPrId();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setPrId((String) value);
      }
    },
    Allday {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getAllday();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setAllday((String) value);
      }
    },
    BatchEffectiveDate {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getBatchEffectiveDate();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setBatchEffectiveDate((Timestamp) value);
      }
    },
    BatchExpireDate {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getBatchExpireDate();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setBatchExpireDate((Timestamp) value);
      }
    },
    RecurrenceType {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getRecurrenceType();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setRecurrenceType((String) value);
      }
    },
    FstWkMon {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getFstWkMon();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setFstWkMon((String) value);
      }
    },
    FstWkTue {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getFstWkTue();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setFstWkTue((String) value);
      }
    },
    FstWkWed {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getFstWkWed();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setFstWkWed((String) value);
      }
    },
    FstWkThu {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getFstWkThu();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setFstWkThu((String) value);
      }
    },
    FstWkFri {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getFstWkFri();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setFstWkFri((String) value);
      }
    },
    FstWkSat {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getFstWkSat();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setFstWkSat((String) value);
      }
    },
    FstWkSun {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getFstWkSun();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setFstWkSun((String) value);
      }
    },
    SndWkMon {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getSndWkMon();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setSndWkMon((String) value);
      }
    },
    SndWkTue {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getSndWkTue();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setSndWkTue((String) value);
      }
    },
    SndWkWed {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getSndWkWed();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setSndWkWed((String) value);
      }
    },
    SndWkThu {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getSndWkThu();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setSndWkThu((String) value);
      }
    },
    SndWkFri {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getSndWkFri();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setSndWkFri((String) value);
      }
    },
    SndWkSat {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getSndWkSat();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setSndWkSat((String) value);
      }
    },
    SndWkSun {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getSndWkSun();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setSndWkSun((String) value);
      }
    },
    ConfLevel {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getConfLevel();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setConfLevel((String) value);
      }
    },
    ConfRoomCalendar {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getConfRoomCalendar();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setAttributeInternal(index(), value);
      }
    },
    BatchSeq {
      public Object get(ConfRoomBatchReservationImpl obj) {
        return obj.getBatchSeq();
      }

      public void put(ConfRoomBatchReservationImpl obj, Object value) {
        obj.setAttributeInternal(index(), value);
      }
    };
    private static AttributesEnum[] vals = null;
    private static int firstIndex = 0;

    public abstract Object get(ConfRoomBatchReservationImpl object);

    public abstract void put(ConfRoomBatchReservationImpl object, Object value);

    public int index() {
      return AttributesEnum.firstIndex() + ordinal();
    }

    public static int firstIndex() {
      return firstIndex;
    }

    public static int count() {
      return AttributesEnum.firstIndex() + AttributesEnum.staticValues().length;
    }

    public static AttributesEnum[] staticValues() {
      if (vals == null) {
        vals = AttributesEnum.values();
      }
      return vals;
    }
  }

  public static final int ID = AttributesEnum.Id.index();
  public static final int USERID = AttributesEnum.UserId.index();
  public static final int BATCHNO = AttributesEnum.BatchNo.index();
  public static final int USERDISPLAYNAME = AttributesEnum.UserDisplayName.index();
  public static final int LOCATIONID = AttributesEnum.LocationId.index();
  public static final int LOCATIONNAME = AttributesEnum.LocationName.index();
  public static final int MEETINGROOM = AttributesEnum.MeetingRoom.index();
  public static final int MEETINGROOMID = AttributesEnum.MeetingRoomId.index();
  public static final int TITLE = AttributesEnum.Title.index();
  public static final int PARTICIPANTS = AttributesEnum.Participants.index();
  public static final int STARTTIME = AttributesEnum.StartTime.index();
  public static final int ENDTIME = AttributesEnum.EndTime.index();
  public static final int COMMENTS = AttributesEnum.Comments.index();
  public static final int NEEDPROJECTOR = AttributesEnum.NeedProjector.index();
  public static final int NEEDLOUDSPEAKER = AttributesEnum.NeedLoudspeaker.index();
  public static final int NEEDBEVERAGE = AttributesEnum.NeedBeverage.index();
  public static final int NEEDFRUITS = AttributesEnum.NeedFruits.index();
  public static final int NEEDSNACKS = AttributesEnum.NeedSnacks.index();
  public static final int SNACKLEVEL = AttributesEnum.SnackLevel.index();
  public static final int NUMOFPEOPLE = AttributesEnum.NumOfPeople.index();
  public static final int PRID = AttributesEnum.PrId.index();
  public static final int ALLDAY = AttributesEnum.Allday.index();
  public static final int BATCHEFFECTIVEDATE = AttributesEnum.BatchEffectiveDate.index();
  public static final int BATCHEXPIREDATE = AttributesEnum.BatchExpireDate.index();
  public static final int RECURRENCETYPE = AttributesEnum.RecurrenceType.index();
  public static final int FSTWKMON = AttributesEnum.FstWkMon.index();
  public static final int FSTWKTUE = AttributesEnum.FstWkTue.index();
  public static final int FSTWKWED = AttributesEnum.FstWkWed.index();
  public static final int FSTWKTHU = AttributesEnum.FstWkThu.index();
  public static final int FSTWKFRI = AttributesEnum.FstWkFri.index();
  public static final int FSTWKSAT = AttributesEnum.FstWkSat.index();
  public static final int FSTWKSUN = AttributesEnum.FstWkSun.index();
  public static final int SNDWKMON = AttributesEnum.SndWkMon.index();
  public static final int SNDWKTUE = AttributesEnum.SndWkTue.index();
  public static final int SNDWKWED = AttributesEnum.SndWkWed.index();
  public static final int SNDWKTHU = AttributesEnum.SndWkThu.index();
  public static final int SNDWKFRI = AttributesEnum.SndWkFri.index();
  public static final int SNDWKSAT = AttributesEnum.SndWkSat.index();
  public static final int SNDWKSUN = AttributesEnum.SndWkSun.index();
  public static final int CONFLEVEL = AttributesEnum.ConfLevel.index();
  public static final int CONFROOMCALENDAR = AttributesEnum.ConfRoomCalendar.index();
  public static final int BATCHSEQ = AttributesEnum.BatchSeq.index();

  /** This is the default constructor (do not remove). */
  public ConfRoomBatchReservationImpl() {}

  /** @return the definition object for this instance class. */
  public static synchronized EntityDefImpl getDefinitionObject() {
    return EntityDefImpl.findDefObject("edu.hp.model.eo.ConfRoomBatchReservation");
  }

  /**
   * Gets the attribute value for Id, using the alias name Id.
   *
   * @return the value of Id
   */
  public DBSequence getId() {
    return (DBSequence) getAttributeInternal(ID);
  }

  /**
   * Sets <code>value</code> as the attribute value for Id.
   *
   * @param value value to set the Id
   */
  public void setId(DBSequence value) {
    setAttributeInternal(ID, value);
  }

  /**
   * Gets the attribute value for UserId, using the alias name UserId.
   *
   * @return the value of UserId
   */
  public String getUserId() {
    return (String) getAttributeInternal(USERID);
  }

  /**
   * Sets <code>value</code> as the attribute value for UserId.
   *
   * @param value value to set the UserId
   */
  public void setUserId(String value) {
    setAttributeInternal(USERID, value);
  }

  /**
   * Gets the attribute value for BatchNo, using the alias name BatchNo.
   *
   * @return the value of BatchNo
   */
  public String getBatchNo() {
    return (String) getAttributeInternal(BATCHNO);
  }

  /**
   * Sets <code>value</code> as the attribute value for BatchNo.
   *
   * @param value value to set the BatchNo
   */
  public void setBatchNo(String value) {
    setAttributeInternal(BATCHNO, value);
  }

  /**
   * Gets the attribute value for UserDisplayName, using the alias name UserDisplayName.
   *
   * @return the value of UserDisplayName
   */
  public String getUserDisplayName() {
    return (String) getAttributeInternal(USERDISPLAYNAME);
  }

  /**
   * Sets <code>value</code> as the attribute value for UserDisplayName.
   *
   * @param value value to set the UserDisplayName
   */
  public void setUserDisplayName(String value) {
    setAttributeInternal(USERDISPLAYNAME, value);
  }

  /**
   * Gets the attribute value for LocationId, using the alias name LocationId.
   *
   * @return the value of LocationId
   */
  public String getLocationId() {
    return (String) getAttributeInternal(LOCATIONID);
  }

  /**
   * Sets <code>value</code> as the attribute value for LocationId.
   *
   * @param value value to set the LocationId
   */
  public void setLocationId(String value) {
    setAttributeInternal(LOCATIONID, value);
  }

  /**
   * Gets the attribute value for LocationName, using the alias name LocationName.
   *
   * @return the value of LocationName
   */
  public String getLocationName() {
    return (String) getAttributeInternal(LOCATIONNAME);
  }

  /**
   * Sets <code>value</code> as the attribute value for LocationName.
   *
   * @param value value to set the LocationName
   */
  public void setLocationName(String value) {
    setAttributeInternal(LOCATIONNAME, value);
  }

  /**
   * Gets the attribute value for MeetingRoom, using the alias name MeetingRoom.
   *
   * @return the value of MeetingRoom
   */
  public String getMeetingRoom() {
    return (String) getAttributeInternal(MEETINGROOM);
  }

  /**
   * Sets <code>value</code> as the attribute value for MeetingRoom.
   *
   * @param value value to set the MeetingRoom
   */
  public void setMeetingRoom(String value) {
    setAttributeInternal(MEETINGROOM, value);
  }

  /**
   * Gets the attribute value for MeetingRoomId, using the alias name MeetingRoomId.
   *
   * @return the value of MeetingRoomId
   */
  public String getMeetingRoomId() {
    return (String) getAttributeInternal(MEETINGROOMID);
  }

  /**
   * Sets <code>value</code> as the attribute value for MeetingRoomId.
   *
   * @param value value to set the MeetingRoomId
   */
  public void setMeetingRoomId(String value) {
    setAttributeInternal(MEETINGROOMID, value);
  }

  /**
   * Gets the attribute value for Title, using the alias name Title.
   *
   * @return the value of Title
   */
  public String getTitle() {
    return (String) getAttributeInternal(TITLE);
  }

  /**
   * Sets <code>value</code> as the attribute value for Title.
   *
   * @param value value to set the Title
   */
  public void setTitle(String value) {
    setAttributeInternal(TITLE, value);
  }

  /**
   * Gets the attribute value for Participants, using the alias name Participants.
   *
   * @return the value of Participants
   */
  public String getParticipants() {
    return (String) getAttributeInternal(PARTICIPANTS);
  }

  /**
   * Sets <code>value</code> as the attribute value for Participants.
   *
   * @param value value to set the Participants
   */
  public void setParticipants(String value) {
    setAttributeInternal(PARTICIPANTS, value);
  }

  /**
   * Gets the attribute value for StartTime, using the alias name StartTime.
   *
   * @return the value of StartTime
   */
  public Timestamp getStartTime() {
    return (Timestamp) getAttributeInternal(STARTTIME);
  }

  /**
   * Sets <code>value</code> as the attribute value for StartTime.
   *
   * @param value value to set the StartTime
   */
  public void setStartTime(Timestamp value) {
    setAttributeInternal(STARTTIME, value);
  }

  /**
   * Gets the attribute value for EndTime, using the alias name EndTime.
   *
   * @return the value of EndTime
   */
  public Timestamp getEndTime() {
    return (Timestamp) getAttributeInternal(ENDTIME);
  }

  /**
   * Sets <code>value</code> as the attribute value for EndTime.
   *
   * @param value value to set the EndTime
   */
  public void setEndTime(Timestamp value) {
    setAttributeInternal(ENDTIME, value);
  }

  /**
   * Gets the attribute value for Comments, using the alias name Comments.
   *
   * @return the value of Comments
   */
  public String getComments() {
    return (String) getAttributeInternal(COMMENTS);
  }

  /**
   * Sets <code>value</code> as the attribute value for Comments.
   *
   * @param value value to set the Comments
   */
  public void setComments(String value) {
    setAttributeInternal(COMMENTS, value);
  }

  /**
   * Gets the attribute value for NeedProjector, using the alias name NeedProjector.
   *
   * @return the value of NeedProjector
   */
  public String getNeedProjector() {
    return (String) getAttributeInternal(NEEDPROJECTOR);
  }

  /**
   * Sets <code>value</code> as the attribute value for NeedProjector.
   *
   * @param value value to set the NeedProjector
   */
  public void setNeedProjector(String value) {
    setAttributeInternal(NEEDPROJECTOR, value);
  }

  /**
   * Gets the attribute value for NeedLoudspeaker, using the alias name NeedLoudspeaker.
   *
   * @return the value of NeedLoudspeaker
   */
  public String getNeedLoudspeaker() {
    return (String) getAttributeInternal(NEEDLOUDSPEAKER);
  }

  /**
   * Sets <code>value</code> as the attribute value for NeedLoudspeaker.
   *
   * @param value value to set the NeedLoudspeaker
   */
  public void setNeedLoudspeaker(String value) {
    setAttributeInternal(NEEDLOUDSPEAKER, value);
  }

  /**
   * Gets the attribute value for NeedBeverage, using the alias name NeedBeverage.
   *
   * @return the value of NeedBeverage
   */
  public String getNeedBeverage() {
    return (String) getAttributeInternal(NEEDBEVERAGE);
  }

  /**
   * Sets <code>value</code> as the attribute value for NeedBeverage.
   *
   * @param value value to set the NeedBeverage
   */
  public void setNeedBeverage(String value) {
    setAttributeInternal(NEEDBEVERAGE, value);
  }

  /**
   * Gets the attribute value for NeedFruits, using the alias name NeedFruits.
   *
   * @return the value of NeedFruits
   */
  public String getNeedFruits() {
    return (String) getAttributeInternal(NEEDFRUITS);
  }

  /**
   * Sets <code>value</code> as the attribute value for NeedFruits.
   *
   * @param value value to set the NeedFruits
   */
  public void setNeedFruits(String value) {
    setAttributeInternal(NEEDFRUITS, value);
  }

  /**
   * Gets the attribute value for NeedSnacks, using the alias name NeedSnacks.
   *
   * @return the value of NeedSnacks
   */
  public String getNeedSnacks() {
    return (String) getAttributeInternal(NEEDSNACKS);
  }

  /**
   * Sets <code>value</code> as the attribute value for NeedSnacks.
   *
   * @param value value to set the NeedSnacks
   */
  public void setNeedSnacks(String value) {
    setAttributeInternal(NEEDSNACKS, value);
  }

  /**
   * Gets the attribute value for SnackLevel, using the alias name SnackLevel.
   *
   * @return the value of SnackLevel
   */
  public String getSnackLevel() {
    return (String) getAttributeInternal(SNACKLEVEL);
  }

  /**
   * Sets <code>value</code> as the attribute value for SnackLevel.
   *
   * @param value value to set the SnackLevel
   */
  public void setSnackLevel(String value) {
    setAttributeInternal(SNACKLEVEL, value);
  }

  /**
   * Gets the attribute value for NumOfPeople, using the alias name NumOfPeople.
   *
   * @return the value of NumOfPeople
   */
  public BigDecimal getNumOfPeople() {
    return (BigDecimal) getAttributeInternal(NUMOFPEOPLE);
  }

  /**
   * Sets <code>value</code> as the attribute value for NumOfPeople.
   *
   * @param value value to set the NumOfPeople
   */
  public void setNumOfPeople(BigDecimal value) {
    setAttributeInternal(NUMOFPEOPLE, value);
  }

  /**
   * Gets the attribute value for PrId, using the alias name PrId.
   *
   * @return the value of PrId
   */
  public String getPrId() {
    return (String) getAttributeInternal(PRID);
  }

  /**
   * Sets <code>value</code> as the attribute value for PrId.
   *
   * @param value value to set the PrId
   */
  public void setPrId(String value) {
    setAttributeInternal(PRID, value);
  }

  /**
   * Gets the attribute value for Allday, using the alias name Allday.
   *
   * @return the value of Allday
   */
  public String getAllday() {
    return (String) getAttributeInternal(ALLDAY);
  }

  /**
   * Sets <code>value</code> as the attribute value for Allday.
   *
   * @param value value to set the Allday
   */
  public void setAllday(String value) {
    setAttributeInternal(ALLDAY, value);
  }

  /**
   * Gets the attribute value for BatchEffectiveDate, using the alias name BatchEffectiveDate.
   *
   * @return the value of BatchEffectiveDate
   */
  public Timestamp getBatchEffectiveDate() {
    return (Timestamp) getAttributeInternal(BATCHEFFECTIVEDATE);
  }

  /**
   * Sets <code>value</code> as the attribute value for BatchEffectiveDate.
   *
   * @param value value to set the BatchEffectiveDate
   */
  public void setBatchEffectiveDate(Timestamp value) {
    setAttributeInternal(BATCHEFFECTIVEDATE, value);
  }

  /**
   * Gets the attribute value for BatchExpireDate, using the alias name BatchExpireDate.
   *
   * @return the value of BatchExpireDate
   */
  public Timestamp getBatchExpireDate() {
    return (Timestamp) getAttributeInternal(BATCHEXPIREDATE);
  }

  /**
   * Sets <code>value</code> as the attribute value for BatchExpireDate.
   *
   * @param value value to set the BatchExpireDate
   */
  public void setBatchExpireDate(Timestamp value) {
    setAttributeInternal(BATCHEXPIREDATE, value);
  }

  /**
   * Gets the attribute value for RecurrenceType, using the alias name RecurrenceType.
   *
   * @return the value of RecurrenceType
   */
  public String getRecurrenceType() {
    return (String) getAttributeInternal(RECURRENCETYPE);
  }

  /**
   * Sets <code>value</code> as the attribute value for RecurrenceType.
   *
   * @param value value to set the RecurrenceType
   */
  public void setRecurrenceType(String value) {
    setAttributeInternal(RECURRENCETYPE, value);
  }

  /**
   * Gets the attribute value for FstWkMon, using the alias name FstWkMon.
   *
   * @return the value of FstWkMon
   */
  public String getFstWkMon() {
    return (String) getAttributeInternal(FSTWKMON);
  }

  /**
   * Sets <code>value</code> as the attribute value for FstWkMon.
   *
   * @param value value to set the FstWkMon
   */
  public void setFstWkMon(String value) {
    setAttributeInternal(FSTWKMON, value);
  }

  /**
   * Gets the attribute value for FstWkTue, using the alias name FstWkTue.
   *
   * @return the value of FstWkTue
   */
  public String getFstWkTue() {
    return (String) getAttributeInternal(FSTWKTUE);
  }

  /**
   * Sets <code>value</code> as the attribute value for FstWkTue.
   *
   * @param value value to set the FstWkTue
   */
  public void setFstWkTue(String value) {
    setAttributeInternal(FSTWKTUE, value);
  }

  /**
   * Gets the attribute value for FstWkWed, using the alias name FstWkWed.
   *
   * @return the value of FstWkWed
   */
  public String getFstWkWed() {
    return (String) getAttributeInternal(FSTWKWED);
  }

  /**
   * Sets <code>value</code> as the attribute value for FstWkWed.
   *
   * @param value value to set the FstWkWed
   */
  public void setFstWkWed(String value) {
    setAttributeInternal(FSTWKWED, value);
  }

  /**
   * Gets the attribute value for FstWkThu, using the alias name FstWkThu.
   *
   * @return the value of FstWkThu
   */
  public String getFstWkThu() {
    return (String) getAttributeInternal(FSTWKTHU);
  }

  /**
   * Sets <code>value</code> as the attribute value for FstWkThu.
   *
   * @param value value to set the FstWkThu
   */
  public void setFstWkThu(String value) {
    setAttributeInternal(FSTWKTHU, value);
  }

  /**
   * Gets the attribute value for FstWkFri, using the alias name FstWkFri.
   *
   * @return the value of FstWkFri
   */
  public String getFstWkFri() {
    return (String) getAttributeInternal(FSTWKFRI);
  }

  /**
   * Sets <code>value</code> as the attribute value for FstWkFri.
   *
   * @param value value to set the FstWkFri
   */
  public void setFstWkFri(String value) {
    setAttributeInternal(FSTWKFRI, value);
  }

  /**
   * Gets the attribute value for FstWkSat, using the alias name FstWkSat.
   *
   * @return the value of FstWkSat
   */
  public String getFstWkSat() {
    return (String) getAttributeInternal(FSTWKSAT);
  }

  /**
   * Sets <code>value</code> as the attribute value for FstWkSat.
   *
   * @param value value to set the FstWkSat
   */
  public void setFstWkSat(String value) {
    setAttributeInternal(FSTWKSAT, value);
  }

  /**
   * Gets the attribute value for FstWkSun, using the alias name FstWkSun.
   *
   * @return the value of FstWkSun
   */
  public String getFstWkSun() {
    return (String) getAttributeInternal(FSTWKSUN);
  }

  /**
   * Sets <code>value</code> as the attribute value for FstWkSun.
   *
   * @param value value to set the FstWkSun
   */
  public void setFstWkSun(String value) {
    setAttributeInternal(FSTWKSUN, value);
  }

  /**
   * Gets the attribute value for SndWkMon, using the alias name SndWkMon.
   *
   * @return the value of SndWkMon
   */
  public String getSndWkMon() {
    return (String) getAttributeInternal(SNDWKMON);
  }

  /**
   * Sets <code>value</code> as the attribute value for SndWkMon.
   *
   * @param value value to set the SndWkMon
   */
  public void setSndWkMon(String value) {
    setAttributeInternal(SNDWKMON, value);
  }

  /**
   * Gets the attribute value for SndWkTue, using the alias name SndWkTue.
   *
   * @return the value of SndWkTue
   */
  public String getSndWkTue() {
    return (String) getAttributeInternal(SNDWKTUE);
  }

  /**
   * Sets <code>value</code> as the attribute value for SndWkTue.
   *
   * @param value value to set the SndWkTue
   */
  public void setSndWkTue(String value) {
    setAttributeInternal(SNDWKTUE, value);
  }

  /**
   * Gets the attribute value for SndWkWed, using the alias name SndWkWed.
   *
   * @return the value of SndWkWed
   */
  public String getSndWkWed() {
    return (String) getAttributeInternal(SNDWKWED);
  }

  /**
   * Sets <code>value</code> as the attribute value for SndWkWed.
   *
   * @param value value to set the SndWkWed
   */
  public void setSndWkWed(String value) {
    setAttributeInternal(SNDWKWED, value);
  }

  /**
   * Gets the attribute value for SndWkThu, using the alias name SndWkThu.
   *
   * @return the value of SndWkThu
   */
  public String getSndWkThu() {
    return (String) getAttributeInternal(SNDWKTHU);
  }

  /**
   * Sets <code>value</code> as the attribute value for SndWkThu.
   *
   * @param value value to set the SndWkThu
   */
  public void setSndWkThu(String value) {
    setAttributeInternal(SNDWKTHU, value);
  }

  /**
   * Gets the attribute value for SndWkFri, using the alias name SndWkFri.
   *
   * @return the value of SndWkFri
   */
  public String getSndWkFri() {
    return (String) getAttributeInternal(SNDWKFRI);
  }

  /**
   * Sets <code>value</code> as the attribute value for SndWkFri.
   *
   * @param value value to set the SndWkFri
   */
  public void setSndWkFri(String value) {
    setAttributeInternal(SNDWKFRI, value);
  }

  /**
   * Gets the attribute value for SndWkSat, using the alias name SndWkSat.
   *
   * @return the value of SndWkSat
   */
  public String getSndWkSat() {
    return (String) getAttributeInternal(SNDWKSAT);
  }

  /**
   * Sets <code>value</code> as the attribute value for SndWkSat.
   *
   * @param value value to set the SndWkSat
   */
  public void setSndWkSat(String value) {
    setAttributeInternal(SNDWKSAT, value);
  }

  /**
   * Gets the attribute value for SndWkSun, using the alias name SndWkSun.
   *
   * @return the value of SndWkSun
   */
  public String getSndWkSun() {
    return (String) getAttributeInternal(SNDWKSUN);
  }

  /**
   * Sets <code>value</code> as the attribute value for SndWkSun.
   *
   * @param value value to set the SndWkSun
   */
  public void setSndWkSun(String value) {
    setAttributeInternal(SNDWKSUN, value);
  }

  /**
   * Gets the attribute value for ConfLevel, using the alias name ConfLevel.
   *
   * @return the value of ConfLevel
   */
  public String getConfLevel() {
    return (String) getAttributeInternal(CONFLEVEL);
  }

  /**
   * Sets <code>value</code> as the attribute value for ConfLevel.
   *
   * @param value value to set the ConfLevel
   */
  public void setConfLevel(String value) {
    setAttributeInternal(CONFLEVEL, value);
  }

  /**
   * getAttrInvokeAccessor: generated method. Do not modify.
   *
   * @param index the index identifying the attribute
   * @param attrDef the attribute
   * @return the attribute value
   * @throws Exception
   */
  protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {
    if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {
      return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);
    }
    return super.getAttrInvokeAccessor(index, attrDef);
  }

  /**
   * setAttrInvokeAccessor: generated method. Do not modify.
   *
   * @param index the index identifying the attribute
   * @param value the value to assign to the attribute
   * @param attrDef the attribute
   * @throws Exception
   */
  protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef)
      throws Exception {
    if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {
      AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);
      return;
    }
    super.setAttrInvokeAccessor(index, value, attrDef);
  }

  /** @return the associated entity oracle.jbo.RowIterator. */
  public RowIterator getConfRoomCalendar() {
    return (RowIterator) getAttributeInternal(CONFROOMCALENDAR);
  }

  /** Gets the view accessor <code>RowSet</code> BatchSeq. */
  public RowSet getBatchSeq() {
    return (RowSet) getAttributeInternal(BATCHSEQ);
  }

  /**
   * @param id key constituent
   * @return a Key object based on given key constituents.
   */
  public static Key createPrimaryKey(DBSequence id) {
    return new Key(new Object[] {id});
  }

  /**
   * Add attribute defaulting logic in this method.
   *
   * @param attributeList list of attribute names/values to initialize the row
   */
  protected void create(AttributeList attributeList) {
    super.create(attributeList);
    super.create(attributeList);
    RowSet batchNoSeq = this.getBatchSeq();
    batchNoSeq.setRangeSize(-1);
    batchNoSeq.executeQuery();
    Row[] allRowsInRange = batchNoSeq.getAllRowsInRange();
    if (allRowsInRange != null && allRowsInRange.length > 0) {
      String currentValue = (String) (allRowsInRange[0].getAttribute("SEQ"));
      DecimalFormat format = new DecimalFormat("00000");
      String batchNo = format.format(new Integer(currentValue).intValue() + 1);
      String finalBatchNO = Constants.CLSRM_BATCH_PREFIX + batchNo;
      this.setBatchNo(finalBatchNO);
    }
  }
}
/** The Class SendToGroupEOImpl. */
public class SendToGroupEOImpl extends BaseEntityImpl {
  private static EntityDefImpl mDefinitionObject;

  /** AttributesEnum: generated enum for identifying attributes and accessors. Do not modify. */
  public enum AttributesEnum {
    Id {
      public Object get(SendToGroupEOImpl obj) {
        return obj.getId();
      }

      public void put(SendToGroupEOImpl obj, Object value) {
        obj.setId((Number) value);
      }
    },
    GroupName {
      public Object get(SendToGroupEOImpl obj) {
        return obj.getGroupName();
      }

      public void put(SendToGroupEOImpl obj, Object value) {
        obj.setGroupName((String) value);
      }
    },
    ResourceId {
      public Object get(SendToGroupEOImpl obj) {
        return obj.getResourceId();
      }

      public void put(SendToGroupEOImpl obj, Object value) {
        obj.setResourceId((Number) value);
      }
    },
    UserId {
      public Object get(SendToGroupEOImpl obj) {
        return obj.getUserId();
      }

      public void put(SendToGroupEOImpl obj, Object value) {
        obj.setAttributeInternal(index(), value);
      }
    },
    CreationDate {
      public Object get(SendToGroupEOImpl obj) {
        return obj.getCreationDate();
      }

      public void put(SendToGroupEOImpl obj, Object value) {
        obj.setAttributeInternal(index(), value);
      }
    },
    LastUpdatedBy {
      public Object get(SendToGroupEOImpl obj) {
        return obj.getLastUpdatedBy();
      }

      public void put(SendToGroupEOImpl obj, Object value) {
        obj.setAttributeInternal(index(), value);
      }
    },
    LastUpdateDate {
      public Object get(SendToGroupEOImpl obj) {
        return obj.getLastUpdateDate();
      }

      public void put(SendToGroupEOImpl obj, Object value) {
        obj.setAttributeInternal(index(), value);
      }
    },
    AlertsEO {
      public Object get(SendToGroupEOImpl obj) {
        return obj.getAlertsEO();
      }

      public void put(SendToGroupEOImpl obj, Object value) {
        obj.setAttributeInternal(index(), value);
      }
    },
    SendToGroupDetailEO {
      public Object get(SendToGroupEOImpl obj) {
        return obj.getSendToGroupDetailEO();
      }

      public void put(SendToGroupEOImpl obj, Object value) {
        obj.setAttributeInternal(index(), value);
      }
    },
    DocumentAndLinkEO {
      public Object get(SendToGroupEOImpl obj) {
        return obj.getDocumentAndLinkEO();
      }

      public void put(SendToGroupEOImpl obj, Object value) {
        obj.setDocumentAndLinkEO((DocumentAndLinkEOImpl) value);
      }
    },
    ResourceEO {
      public Object get(SendToGroupEOImpl obj) {
        return obj.getResourceEO();
      }

      public void put(SendToGroupEOImpl obj, Object value) {
        obj.setResourceEO((ResourceEOImpl) value);
      }
    };
    private static AttributesEnum[] vals = null;
    private static int firstIndex = 0;

    /**
     * Gets the.
     *
     * @param object the object
     * @return the object
     */
    public abstract Object get(SendToGroupEOImpl object);

    /**
     * Put.
     *
     * @param object the object
     * @param value the value
     */
    public abstract void put(SendToGroupEOImpl object, Object value);

    /**
     * Index.
     *
     * @return the int
     */
    public int index() {
      return AttributesEnum.firstIndex() + ordinal();
    }

    /**
     * First index.
     *
     * @return the int
     */
    public static int firstIndex() {
      return firstIndex;
    }

    /**
     * Count.
     *
     * @return the int
     */
    public static int count() {
      return AttributesEnum.firstIndex() + AttributesEnum.staticValues().length;
    }

    /**
     * Static values.
     *
     * @return the attributes enum[]
     */
    public static AttributesEnum[] staticValues() {
      if (vals == null) {
        vals = AttributesEnum.values();
      }
      return vals;
    }
  }

  public static final int ID = AttributesEnum.Id.index();
  public static final int GROUPNAME = AttributesEnum.GroupName.index();
  public static final int RESOURCEID = AttributesEnum.ResourceId.index();
  public static final int USERID = AttributesEnum.UserId.index();
  public static final int CREATIONDATE = AttributesEnum.CreationDate.index();
  public static final int LASTUPDATEDBY = AttributesEnum.LastUpdatedBy.index();
  public static final int LASTUPDATEDATE = AttributesEnum.LastUpdateDate.index();
  public static final int ALERTSEO = AttributesEnum.AlertsEO.index();
  public static final int SENDTOGROUPDETAILEO = AttributesEnum.SendToGroupDetailEO.index();
  public static final int DOCUMENTANDLINKEO = AttributesEnum.DocumentAndLinkEO.index();
  public static final int RESOURCEEO = AttributesEnum.ResourceEO.index();

  /** This is the default constructor (do not remove). */
  public SendToGroupEOImpl() {}

  /**
   * Gets the definition object.
   *
   * @return the definition object for this instance class.
   */
  public static synchronized EntityDefImpl getDefinitionObject() {
    if (mDefinitionObject == null) {
      mDefinitionObject =
          EntityDefImpl.findDefObject("org.cap.oppe.admin.model.entity.resources.SendToGroupEO");
    }
    return mDefinitionObject;
  }

  /**
   * Gets the attribute value for Id, using the alias name Id.
   *
   * @return the Id
   */
  public Number getId() {
    return (Number) getAttributeInternal(ID);
  }

  /**
   * Sets <code>value</code> as the attribute value for Id.
   *
   * @param value value to set the Id
   */
  public void setId(Number value) {
    setAttributeInternal(ID, value);
  }

  /**
   * Gets the attribute value for GroupName, using the alias name GroupName.
   *
   * @return the GroupName
   */
  public String getGroupName() {
    return (String) getAttributeInternal(GROUPNAME);
  }

  /**
   * Sets <code>value</code> as the attribute value for GroupName.
   *
   * @param value value to set the GroupName
   */
  public void setGroupName(String value) {
    setAttributeInternal(GROUPNAME, value);
  }

  /**
   * Gets the attribute value for ResourceId, using the alias name ResourceId.
   *
   * @return the ResourceId
   */
  public Number getResourceId() {
    return (Number) getAttributeInternal(RESOURCEID);
  }

  /**
   * Sets <code>value</code> as the attribute value for ResourceId.
   *
   * @param value value to set the ResourceId
   */
  public void setResourceId(Number value) {
    setAttributeInternal(RESOURCEID, value);
  }

  /**
   * Gets the attribute value for UserId, using the alias name UserId.
   *
   * @return the UserId
   */
  public Number getUserId() {
    return (Number) getAttributeInternal(USERID);
  }

  /**
   * Gets the attribute value for CreationDate, using the alias name CreationDate.
   *
   * @return the CreationDate
   */
  public Date getCreationDate() {
    return (Date) getAttributeInternal(CREATIONDATE);
  }

  /**
   * Gets the attribute value for LastUpdatedBy, using the alias name LastUpdatedBy.
   *
   * @return the LastUpdatedBy
   */
  public Number getLastUpdatedBy() {
    return (Number) getAttributeInternal(LASTUPDATEDBY);
  }

  /**
   * Gets the attribute value for LastUpdateDate, using the alias name LastUpdateDate.
   *
   * @return the LastUpdateDate
   */
  public Timestamp getLastUpdateDate() {
    return (Timestamp) getAttributeInternal(LASTUPDATEDATE);
  }

  /**
   * getAttrInvokeAccessor: generated method. Do not modify.
   *
   * @param index the index identifying the attribute
   * @param attrDef the attribute
   * @return the attribute value
   * @throws Exception the exception
   */
  protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {
    if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {
      return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);
    }
    return super.getAttrInvokeAccessor(index, attrDef);
  }

  /**
   * setAttrInvokeAccessor: generated method. Do not modify.
   *
   * @param index the index identifying the attribute
   * @param value the value to assign to the attribute
   * @param attrDef the attribute
   * @throws Exception the exception
   */
  protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef)
      throws Exception {
    if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {
      AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);
      return;
    }
    super.setAttrInvokeAccessor(index, value, attrDef);
  }

  /**
   * Gets the alerts eo.
   *
   * @return the associated entity oracle.jbo.RowIterator.
   */
  public RowIterator getAlertsEO() {
    return (RowIterator) getAttributeInternal(ALERTSEO);
  }

  /**
   * Gets the send to group detail eo.
   *
   * @return the associated entity oracle.jbo.RowIterator.
   */
  public RowIterator getSendToGroupDetailEO() {
    return (RowIterator) getAttributeInternal(SENDTOGROUPDETAILEO);
  }

  /**
   * Gets the document and link eo.
   *
   * @return the associated entity DocumentAndLinkEOImpl.
   */
  public DocumentAndLinkEOImpl getDocumentAndLinkEO() {
    return (DocumentAndLinkEOImpl) getAttributeInternal(DOCUMENTANDLINKEO);
  }

  /**
   * Sets <code>value</code> as the associated entity DocumentAndLinkEOImpl.
   *
   * @param value the new document and link eo
   */
  public void setDocumentAndLinkEO(DocumentAndLinkEOImpl value) {
    setAttributeInternal(DOCUMENTANDLINKEO, value);
  }

  /** @return the associated entity org.cap.oppe.common.model.entity.metrics.ResourceEOImpl. */
  public ResourceEOImpl getResourceEO() {
    return (ResourceEOImpl) getAttributeInternal(RESOURCEEO);
  }

  /**
   * Sets <code>value</code> as the associated entity
   * org.cap.oppe.common.model.entity.metrics.ResourceEOImpl.
   */
  public void setResourceEO(ResourceEOImpl value) {
    setAttributeInternal(RESOURCEEO, value);
  }

  /**
   * @param id key constituent
   * @return a Key object based on given key constituents.
   */
  public static Key createPrimaryKey(Number id) {
    return new Key(new Object[] {id});
  }

  /**
   * Add attribute defaulting logic in this method.
   *
   * @param attributeList list of attribute names/values to initialize the row
   */
  protected void create(AttributeList attributeList) {
    super.create(attributeList);
    SequenceImpl sequenceImpl = new SequenceImpl("CAP_SND_TO_GRP_S01", getDBTransaction());
    setId(sequenceImpl.getSequenceNumber());
  }

  /** This function gets the Id before posting chnages in db. */
  RowSet newGroupDetail = null;

  /**
   * Post changes.
   *
   * @param transactionEvent the transaction event
   */
  public void postChanges(TransactionEvent transactionEvent) {
    if (getPostState() == STATUS_NEW || getPostState() == STATUS_MODIFIED) {
      DocumentAndLinkEOImpl resources = getDocumentAndLinkEO();
      if (null != resources) {
        if (resources.getPostState() == STATUS_NEW) {
          resources.postChanges(transactionEvent);
        }
      }
      newGroupDetail = (RowSet) getSendToGroupDetailEO();
    }
    super.postChanges(transactionEvent);
  }

  /** This function refereshes foreign key dependencies with newly generated primary key. */
  protected void refreshFKInNewContainees() {
    if (null != newGroupDetail) {
      Number newGroupId = getId();
      while (newGroupDetail.hasNext()) {
        SendToGroupDetailEOImpl detail = (SendToGroupDetailEOImpl) newGroupDetail.next();
        detail.setSendToGroupId(newGroupId);
      }
      super.refreshFKInNewContainees();
    }
  }
}
// ---------------------------------------------------------------------
// ---    File generated by Oracle ADF Business Components Design Time.
// ---    Mon Jan 13 11:17:29 GST 2014
// ---    Custom code may be added to this class.
// ---    Warning: Do not modify method signatures of generated methods.
// ---------------------------------------------------------------------
public class DeliveryScheduleDetailViewRowImpl extends TemplateViewRow {
  /** AttributesEnum: generated enum for identifying attributes and accessors. DO NOT MODIFY. */
  public enum AttributesEnum {
    Id {
      public Object get(DeliveryScheduleDetailViewRowImpl obj) {
        return obj.getId();
      }

      public void put(DeliveryScheduleDetailViewRowImpl obj, Object value) {
        obj.setId((DBSequence) value);
      }
    },
    IndustryId {
      public Object get(DeliveryScheduleDetailViewRowImpl obj) {
        return obj.getIndustryId();
      }

      public void put(DeliveryScheduleDetailViewRowImpl obj, Object value) {
        obj.setIndustryId((Number) value);
      }
    },
    DeliveryScheduleId {
      public Object get(DeliveryScheduleDetailViewRowImpl obj) {
        return obj.getDeliveryScheduleId();
      }

      public void put(DeliveryScheduleDetailViewRowImpl obj, Object value) {
        obj.setDeliveryScheduleId((Number) value);
      }
    },
    ContractId {
      public Object get(DeliveryScheduleDetailViewRowImpl obj) {
        return obj.getContractId();
      }

      public void put(DeliveryScheduleDetailViewRowImpl obj, Object value) {
        obj.setContractId((Number) value);
      }
    },
    ContractDetailId {
      public Object get(DeliveryScheduleDetailViewRowImpl obj) {
        return obj.getContractDetailId();
      }

      public void put(DeliveryScheduleDetailViewRowImpl obj, Object value) {
        obj.setContractDetailId((Number) value);
      }
    },
    Description {
      public Object get(DeliveryScheduleDetailViewRowImpl obj) {
        return obj.getDescription();
      }

      public void put(DeliveryScheduleDetailViewRowImpl obj, Object value) {
        obj.setDescription((String) value);
      }
    },
    ConDetailScheduleId {
      public Object get(DeliveryScheduleDetailViewRowImpl obj) {
        return obj.getConDetailScheduleId();
      }

      public void put(DeliveryScheduleDetailViewRowImpl obj, Object value) {
        obj.setConDetailScheduleId((Number) value);
      }
    },
    RefCode {
      public Object get(DeliveryScheduleDetailViewRowImpl obj) {
        return obj.getRefCode();
      }

      public void put(DeliveryScheduleDetailViewRowImpl obj, Object value) {
        obj.setRefCode((Number) value);
      }
    },
    UpdateDate {
      public Object get(DeliveryScheduleDetailViewRowImpl obj) {
        return obj.getUpdateDate();
      }

      public void put(DeliveryScheduleDetailViewRowImpl obj, Object value) {
        obj.setUpdateDate((Date) value);
      }
    },
    ContContractDetailScheduleView {
      public Object get(DeliveryScheduleDetailViewRowImpl obj) {
        return obj.getContContractDetailScheduleView();
      }

      public void put(DeliveryScheduleDetailViewRowImpl obj, Object value) {
        obj.setAttributeInternal(index(), value);
      }
    },
    ContContractDetailLov {
      public Object get(DeliveryScheduleDetailViewRowImpl obj) {
        return obj.getContContractDetailLov();
      }

      public void put(DeliveryScheduleDetailViewRowImpl obj, Object value) {
        obj.setAttributeInternal(index(), value);
      }
    },
    ContContractDetailScheduleLov {
      public Object get(DeliveryScheduleDetailViewRowImpl obj) {
        return obj.getContContractDetailScheduleLov();
      }

      public void put(DeliveryScheduleDetailViewRowImpl obj, Object value) {
        obj.setAttributeInternal(index(), value);
      }
    };
    private static AttributesEnum[] vals = null;
    private static final int firstIndex = 0;

    public abstract Object get(DeliveryScheduleDetailViewRowImpl object);

    public abstract void put(DeliveryScheduleDetailViewRowImpl object, Object value);

    public int index() {
      return AttributesEnum.firstIndex() + ordinal();
    }

    public static final int firstIndex() {
      return firstIndex;
    }

    public static int count() {
      return AttributesEnum.firstIndex() + AttributesEnum.staticValues().length;
    }

    public static final AttributesEnum[] staticValues() {
      if (vals == null) {
        vals = AttributesEnum.values();
      }
      return vals;
    }
  }

  public static final int ID = AttributesEnum.Id.index();
  public static final int INDUSTRYID = AttributesEnum.IndustryId.index();
  public static final int DELIVERYSCHEDULEID = AttributesEnum.DeliveryScheduleId.index();
  public static final int CONTRACTID = AttributesEnum.ContractId.index();
  public static final int CONTRACTDETAILID = AttributesEnum.ContractDetailId.index();
  public static final int DESCRIPTION = AttributesEnum.Description.index();
  public static final int CONDETAILSCHEDULEID = AttributesEnum.ConDetailScheduleId.index();
  public static final int REFCODE = AttributesEnum.RefCode.index();
  public static final int UPDATEDATE = AttributesEnum.UpdateDate.index();
  public static final int CONTCONTRACTDETAILSCHEDULEVIEW =
      AttributesEnum.ContContractDetailScheduleView.index();
  public static final int CONTCONTRACTDETAILLOV = AttributesEnum.ContContractDetailLov.index();
  public static final int CONTCONTRACTDETAILSCHEDULELOV =
      AttributesEnum.ContContractDetailScheduleLov.index();

  /** This is the default constructor (do not remove). */
  public DeliveryScheduleDetailViewRowImpl() {}

  /**
   * Gets DeliveryScheduleDetail entity object.
   *
   * @return the DeliveryScheduleDetail
   */
  public TemplateEntityObject getDeliveryScheduleDetail() {
    return (TemplateEntityObject) getEntity(0);
  }

  /**
   * Gets the attribute value for ID using the alias name Id.
   *
   * @return the ID
   */
  public DBSequence getId() {
    return (DBSequence) getAttributeInternal(ID);
  }

  /**
   * Sets <code>value</code> as attribute value for ID using the alias name Id.
   *
   * @param value value to set the ID
   */
  public void setId(DBSequence value) {
    setAttributeInternal(ID, value);
  }

  /**
   * Gets the attribute value for INDUSTRY_ID using the alias name IndustryId.
   *
   * @return the INDUSTRY_ID
   */
  public Number getIndustryId() {
    return (Number) getAttributeInternal(INDUSTRYID);
  }

  /**
   * Sets <code>value</code> as attribute value for INDUSTRY_ID using the alias name IndustryId.
   *
   * @param value value to set the INDUSTRY_ID
   */
  public void setIndustryId(Number value) {
    setAttributeInternal(INDUSTRYID, value);
  }

  /**
   * Gets the attribute value for DELIVERY_SCHEDULE_ID using the alias name DeliveryScheduleId.
   *
   * @return the DELIVERY_SCHEDULE_ID
   */
  public Number getDeliveryScheduleId() {
    return (Number) getAttributeInternal(DELIVERYSCHEDULEID);
  }

  /**
   * Sets <code>value</code> as attribute value for DELIVERY_SCHEDULE_ID using the alias name
   * DeliveryScheduleId.
   *
   * @param value value to set the DELIVERY_SCHEDULE_ID
   */
  public void setDeliveryScheduleId(Number value) {
    setAttributeInternal(DELIVERYSCHEDULEID, value);
  }

  /**
   * Gets the attribute value for CONTRACT_ID using the alias name ContractId.
   *
   * @return the CONTRACT_ID
   */
  public Number getContractId() {
    return (Number) getAttributeInternal(CONTRACTID);
  }

  /**
   * Sets <code>value</code> as attribute value for CONTRACT_ID using the alias name ContractId.
   *
   * @param value value to set the CONTRACT_ID
   */
  public void setContractId(Number value) {
    setAttributeInternal(CONTRACTID, value);
  }

  /**
   * Gets the attribute value for CONTRACT_DETAIL_ID using the alias name ContractDetailId.
   *
   * @return the CONTRACT_DETAIL_ID
   */
  public Number getContractDetailId() {
    return (Number) getAttributeInternal(CONTRACTDETAILID);
  }

  /**
   * Sets <code>value</code> as attribute value for CONTRACT_DETAIL_ID using the alias name
   * ContractDetailId.
   *
   * @param value value to set the CONTRACT_DETAIL_ID
   */
  public void setContractDetailId(Number value) {
    setAttributeInternal(CONTRACTDETAILID, value);
  }

  /**
   * Gets the attribute value for DESCRIPTION using the alias name Description.
   *
   * @return the DESCRIPTION
   */
  public String getDescription() {
    return (String) getAttributeInternal(DESCRIPTION);
  }

  /**
   * Sets <code>value</code> as attribute value for DESCRIPTION using the alias name Description.
   *
   * @param value value to set the DESCRIPTION
   */
  public void setDescription(String value) {
    setAttributeInternal(DESCRIPTION, value);
  }

  /**
   * Gets the attribute value for CON_DETAIL_SCHEDULE_ID using the alias name ConDetailScheduleId.
   *
   * @return the CON_DETAIL_SCHEDULE_ID
   */
  public Number getConDetailScheduleId() {
    return (Number) getAttributeInternal(CONDETAILSCHEDULEID);
  }

  /**
   * Sets <code>value</code> as attribute value for CON_DETAIL_SCHEDULE_ID using the alias name
   * ConDetailScheduleId.
   *
   * @param value value to set the CON_DETAIL_SCHEDULE_ID
   */
  public void setConDetailScheduleId(Number value) {
    setAttributeInternal(CONDETAILSCHEDULEID, value);
  }

  /**
   * Gets the attribute value for REF_CODE using the alias name RefCode.
   *
   * @return the REF_CODE
   */
  public Number getRefCode() {
    return (Number) getAttributeInternal(REFCODE);
  }

  /**
   * Sets <code>value</code> as attribute value for REF_CODE using the alias name RefCode.
   *
   * @param value value to set the REF_CODE
   */
  public void setRefCode(Number value) {
    setAttributeInternal(REFCODE, value);
  }

  /**
   * Gets the attribute value for UPDATE_DATE using the alias name UpdateDate.
   *
   * @return the UPDATE_DATE
   */
  public Date getUpdateDate() {
    return (Date) getAttributeInternal(UPDATEDATE);
  }

  /**
   * Sets <code>value</code> as attribute value for UPDATE_DATE using the alias name UpdateDate.
   *
   * @param value value to set the UPDATE_DATE
   */
  public void setUpdateDate(Date value) {
    setAttributeInternal(UPDATEDATE, value);
  }

  /**
   * Gets the associated <code>RowIterator</code> using master-detail link
   * ContContractDetailScheduleView.
   */
  public RowIterator getContContractDetailScheduleView() {
    return (RowIterator) getAttributeInternal(CONTCONTRACTDETAILSCHEDULEVIEW);
  }

  /** Gets the view accessor <code>RowSet</code> ContContractDetailLov. */
  public RowSet getContContractDetailLov() {
    return (RowSet) getAttributeInternal(CONTCONTRACTDETAILLOV);
  }

  /** Gets the view accessor <code>RowSet</code> ContContractDetailScheduleLov. */
  public RowSet getContContractDetailScheduleLov() {
    return (RowSet) getAttributeInternal(CONTCONTRACTDETAILSCHEDULELOV);
  }

  /**
   * getAttrInvokeAccessor: generated method. Do not modify.
   *
   * @param index the index identifying the attribute
   * @param attrDef the attribute
   * @return the attribute value
   * @throws Exception
   */
  protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {
    if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {
      return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);
    }
    return super.getAttrInvokeAccessor(index, attrDef);
  }

  /**
   * setAttrInvokeAccessor: generated method. Do not modify.
   *
   * @param index the index identifying the attribute
   * @param value the value to assign to the attribute
   * @param attrDef the attribute
   * @throws Exception
   */
  protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef)
      throws Exception {
    if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {
      AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);
      return;
    }
    super.setAttrInvokeAccessor(index, value, attrDef);
  }
}
// ---------------------------------------------------------------------
// ---    File generated by Oracle ADF Business Components Design Time.
// ---    Wed Oct 14 14:59:15 EEST 2015
// ---    Custom code may be added to this class.
// ---    Warning: Do not modify method signatures of generated methods.
// ---------------------------------------------------------------------
public class SItemViewRowImpl extends ViewRowImpl implements SItemViewRow {
  public static final int ENTITY_SITEM = 0;
  public static final int ENTITY_SIMAGE = 1;
  public static final int ENTITY_SPRODUCT = 2;

  /** AttributesEnum: generated enum for identifying attributes and accessors. DO NOT MODIFY. */
  public enum AttributesEnum {
    OrdId,
    ItemId,
    ProductId,
    Price,
    Quantity,
    QuantityShipped,
    ProductName,
    Id,
    ProductShortDesc,
    ProductSuggestedPrice,
    ProductFilename,
    Id1,
    ItemTotal,
    ImageNameFromDB,
    SInventoryView,
    SProductView1;
    static AttributesEnum[] vals = null;;
    private static final int firstIndex = 0;

    public int index() {
      return AttributesEnum.firstIndex() + ordinal();
    }

    public static final int firstIndex() {
      return firstIndex;
    }

    public static int count() {
      return AttributesEnum.firstIndex() + AttributesEnum.staticValues().length;
    }

    public static final AttributesEnum[] staticValues() {
      if (vals == null) {
        vals = AttributesEnum.values();
      }
      return vals;
    }
  }

  public static final int ORDID = AttributesEnum.OrdId.index();
  public static final int ITEMID = AttributesEnum.ItemId.index();
  public static final int PRODUCTID = AttributesEnum.ProductId.index();
  public static final int PRICE = AttributesEnum.Price.index();
  public static final int QUANTITY = AttributesEnum.Quantity.index();
  public static final int QUANTITYSHIPPED = AttributesEnum.QuantityShipped.index();
  public static final int PRODUCTNAME = AttributesEnum.ProductName.index();
  public static final int ID = AttributesEnum.Id.index();
  public static final int PRODUCTSHORTDESC = AttributesEnum.ProductShortDesc.index();
  public static final int PRODUCTSUGGESTEDPRICE = AttributesEnum.ProductSuggestedPrice.index();
  public static final int PRODUCTFILENAME = AttributesEnum.ProductFilename.index();
  public static final int ID1 = AttributesEnum.Id1.index();
  public static final int ITEMTOTAL = AttributesEnum.ItemTotal.index();
  public static final int IMAGENAMEFROMDB = AttributesEnum.ImageNameFromDB.index();
  public static final int SINVENTORYVIEW = AttributesEnum.SInventoryView.index();
  public static final int SPRODUCTVIEW1 = AttributesEnum.SProductView1.index();

  /** This is the default constructor (do not remove). */
  public SItemViewRowImpl() {}

  /**
   * Gets SItem entity object.
   *
   * @return the SItem
   */
  public SItemImpl getSItem() {
    return (SItemImpl) getEntity(ENTITY_SITEM);
  }

  /**
   * Gets SImage entity object.
   *
   * @return the SImage
   */
  public EntityImpl getSImage() {
    return (EntityImpl) getEntity(ENTITY_SIMAGE);
  }

  /**
   * Gets SProduct entity object.
   *
   * @return the SProduct
   */
  public SProductImpl getSProduct() {
    return (SProductImpl) getEntity(ENTITY_SPRODUCT);
  }

  /**
   * Gets the attribute value for ORD_ID using the alias name OrdId.
   *
   * @return the ORD_ID
   */
  public Integer getOrdId() {
    return (Integer) getAttributeInternal(ORDID);
  }

  /**
   * Sets <code>value</code> as attribute value for ORD_ID using the alias name OrdId.
   *
   * @param value value to set the ORD_ID
   */
  public void setOrdId(Integer value) {
    setAttributeInternal(ORDID, value);
  }

  /**
   * Gets the attribute value for ITEM_ID using the alias name ItemId.
   *
   * @return the ITEM_ID
   */
  public DBSequence getItemId() {
    return (DBSequence) getAttributeInternal(ITEMID);
  }

  /**
   * Sets <code>value</code> as attribute value for ITEM_ID using the alias name ItemId.
   *
   * @param value value to set the ITEM_ID
   */
  public void setItemId(DBSequence value) {
    setAttributeInternal(ITEMID, value);
  }

  /**
   * Gets the attribute value for PRODUCT_ID using the alias name ProductId.
   *
   * @return the PRODUCT_ID
   */
  public Integer getProductId() {
    return (Integer) getAttributeInternal(PRODUCTID);
  }

  /**
   * Sets <code>value</code> as attribute value for PRODUCT_ID using the alias name ProductId.
   *
   * @param value value to set the PRODUCT_ID
   */
  public void setProductId(Integer value) {
    setAttributeInternal(PRODUCTID, value);
  }

  /**
   * Gets the attribute value for PRICE using the alias name Price.
   *
   * @return the PRICE
   */
  public BigDecimal getPrice() {
    return (BigDecimal) getAttributeInternal(PRICE);
  }

  /**
   * Sets <code>value</code> as attribute value for PRICE using the alias name Price.
   *
   * @param value value to set the PRICE
   */
  public void setPrice(BigDecimal value) {
    setAttributeInternal(PRICE, value);
  }

  /**
   * Gets the attribute value for QUANTITY using the alias name Quantity.
   *
   * @return the QUANTITY
   */
  public Integer getQuantity() {
    return (Integer) getAttributeInternal(QUANTITY);
  }

  /**
   * Sets <code>value</code> as attribute value for QUANTITY using the alias name Quantity.
   *
   * @param value value to set the QUANTITY
   */
  public void setQuantity(Integer value) {
    setAttributeInternal(QUANTITY, value);
  }

  /**
   * Gets the attribute value for QUANTITY_SHIPPED using the alias name QuantityShipped.
   *
   * @return the QUANTITY_SHIPPED
   */
  public Integer getQuantityShipped() {
    return (Integer) getAttributeInternal(QUANTITYSHIPPED);
  }

  /**
   * Sets <code>value</code> as attribute value for QUANTITY_SHIPPED using the alias name
   * QuantityShipped.
   *
   * @param value value to set the QUANTITY_SHIPPED
   */
  public void setQuantityShipped(Integer value) {
    setAttributeInternal(QUANTITYSHIPPED, value);
  }

  /**
   * Gets the attribute value for NAME using the alias name ProductName.
   *
   * @return the NAME
   */
  public String getProductName() {
    return (String) getAttributeInternal(PRODUCTNAME);
  }

  /**
   * Sets <code>value</code> as attribute value for NAME using the alias name ProductName.
   *
   * @param value value to set the NAME
   */
  public void setProductName(String value) {
    setAttributeInternal(PRODUCTNAME, value);
  }

  /**
   * Gets the attribute value for ID using the alias name Id.
   *
   * @return the ID
   */
  public Integer getId() {
    return (Integer) getAttributeInternal(ID);
  }

  /**
   * Sets <code>value</code> as attribute value for ID using the alias name Id.
   *
   * @param value value to set the ID
   */
  public void setId(Integer value) {
    setAttributeInternal(ID, value);
  }

  /**
   * Gets the attribute value for SHORT_DESC using the alias name ProductShortDesc.
   *
   * @return the SHORT_DESC
   */
  public String getProductShortDesc() {
    return (String) getAttributeInternal(PRODUCTSHORTDESC);
  }

  /**
   * Sets <code>value</code> as attribute value for SHORT_DESC using the alias name
   * ProductShortDesc.
   *
   * @param value value to set the SHORT_DESC
   */
  public void setProductShortDesc(String value) {
    setAttributeInternal(PRODUCTSHORTDESC, value);
  }

  /**
   * Gets the attribute value for SUGGESTED_WHLSL_PRICE using the alias name ProductSuggestedPrice.
   *
   * @return the SUGGESTED_WHLSL_PRICE
   */
  public BigDecimal getProductSuggestedPrice() {
    return (BigDecimal) getAttributeInternal(PRODUCTSUGGESTEDPRICE);
  }

  /**
   * Sets <code>value</code> as attribute value for SUGGESTED_WHLSL_PRICE using the alias name
   * ProductSuggestedPrice.
   *
   * @param value value to set the SUGGESTED_WHLSL_PRICE
   */
  public void setProductSuggestedPrice(BigDecimal value) {
    setAttributeInternal(PRODUCTSUGGESTEDPRICE, value);
  }

  /**
   * Gets the attribute value for FILENAME using the alias name ProductFilename.
   *
   * @return the FILENAME
   */
  public String getProductFilename() {
    return (String) getAttributeInternal(PRODUCTFILENAME);
  }

  /**
   * Sets <code>value</code> as attribute value for FILENAME using the alias name ProductFilename.
   *
   * @param value value to set the FILENAME
   */
  public void setProductFilename(String value) {
    setAttributeInternal(PRODUCTFILENAME, value);
  }

  /**
   * Gets the attribute value for ID using the alias name Id1.
   *
   * @return the ID
   */
  public Integer getId1() {
    return (Integer) getAttributeInternal(ID1);
  }

  /**
   * Sets <code>value</code> as attribute value for ID using the alias name Id1.
   *
   * @param value value to set the ID
   */
  public void setId1(Integer value) {
    setAttributeInternal(ID1, value);
  }

  /**
   * Gets the attribute value for the calculated attribute ItemTotal.
   *
   * @return the ItemTotal
   */
  public Number getItemTotal() {
    return (Number) getAttributeInternal(ITEMTOTAL);
  }

  /**
   * Gets the attribute value for the calculated attribute ImageNameFromDB.
   *
   * @return the ImageNameFromDB
   */
  public String getImageNameFromDB() {
    return (String) getAttributeInternal(IMAGENAMEFROMDB);
  }

  /** Gets the associated <code>RowIterator</code> using master-detail link SInventoryView. */
  public RowIterator getSInventoryView() {
    return (RowIterator) getAttributeInternal(SINVENTORYVIEW);
  }

  /** Gets the view accessor <code>RowSet</code> SProductView1. */
  public RowSet getSProductView1() {
    return (RowSet) getAttributeInternal(SPRODUCTVIEW1);
  }
  /**
   * Added - instead of simply deleting an order item, I will set the quantity to 0 and then delete
   * it
   */
  public void deleteOrderItem() {
    setQuantity(new Integer(0));
    remove();
  }

  /**
   * Added - takes in the product id and returns a filename from the database using the
   * GET_PRODUCT_IMAGE db stored function which looks up the image filename according to the
   * image_id associated with the product id. The Original Forms application uses files with a TIF
   * extension we changed these images to JPG
   */
  public String readImageNameFromDB(Number id) {
    CallableStatement cs = null;
    cs = this.getDBTransaction().createCallableStatement("begin ?:=GET_PRODUCT_IMAGE(?); end;", 0);
    try {
      cs.registerOutParameter(1, Types.VARCHAR);
      cs.setObject(2, id);
      cs.execute();
      Object returnVal = cs.getObject(1);
      return returnVal.toString();
    } catch (SQLException e) {
      // print exception if SQL fails. In production systems you may want to log the
      // issue and fail more gracefully e.g by returning NULL r an empty String
      e.printStackTrace();
    }
    return "No File";
  }
}
Example #5
0
// ---------------------------------------------------------------------
// ---    File generated by Oracle ADF Business Components Design Time.
// ---    Tue Jul 23 18:42:39 CST 2013
// ---    Custom code may be added to this class.
// ---    Warning: Do not modify method signatures of generated methods.
// ---------------------------------------------------------------------
public class MealOrderImpl extends EntityImpl {
  /** AttributesEnum: generated enum for identifying attributes and accessors. Do not modify. */
  public enum AttributesEnum {
    Id {
      public Object get(MealOrderImpl obj) {
        return obj.getId();
      }

      public void put(MealOrderImpl obj, Object value) {
        obj.setId((DBSequence) value);
      }
    },
    RequesterName {
      public Object get(MealOrderImpl obj) {
        return obj.getRequesterName();
      }

      public void put(MealOrderImpl obj, Object value) {
        obj.setRequesterName((String) value);
      }
    },
    RequesterId {
      public Object get(MealOrderImpl obj) {
        return obj.getRequesterId();
      }

      public void put(MealOrderImpl obj, Object value) {
        obj.setRequesterId((String) value);
      }
    },
    MealDate {
      public Object get(MealOrderImpl obj) {
        return obj.getMealDate();
      }

      public void put(MealOrderImpl obj, Object value) {
        obj.setMealDate((Date) value);
      }
    },
    Location {
      public Object get(MealOrderImpl obj) {
        return obj.getLocation();
      }

      public void put(MealOrderImpl obj, Object value) {
        obj.setLocation((String) value);
      }
    },
    NumOfBreakfirst {
      public Object get(MealOrderImpl obj) {
        return obj.getNumOfBreakfirst();
      }

      public void put(MealOrderImpl obj, Object value) {
        obj.setNumOfBreakfirst((BigDecimal) value);
      }
    },
    NumberOfLunch {
      public Object get(MealOrderImpl obj) {
        return obj.getNumberOfLunch();
      }

      public void put(MealOrderImpl obj, Object value) {
        obj.setNumberOfLunch((BigDecimal) value);
      }
    },
    Justification {
      public Object get(MealOrderImpl obj) {
        return obj.getJustification();
      }

      public void put(MealOrderImpl obj, Object value) {
        obj.setJustification((String) value);
      }
    };
    private static AttributesEnum[] vals = null;
    private static int firstIndex = 0;

    public abstract Object get(MealOrderImpl object);

    public abstract void put(MealOrderImpl object, Object value);

    public int index() {
      return AttributesEnum.firstIndex() + ordinal();
    }

    public static int firstIndex() {
      return firstIndex;
    }

    public static int count() {
      return AttributesEnum.firstIndex() + AttributesEnum.staticValues().length;
    }

    public static AttributesEnum[] staticValues() {
      if (vals == null) {
        vals = AttributesEnum.values();
      }
      return vals;
    }
  }

  public static final int ID = AttributesEnum.Id.index();
  public static final int REQUESTERNAME = AttributesEnum.RequesterName.index();
  public static final int REQUESTERID = AttributesEnum.RequesterId.index();
  public static final int MEALDATE = AttributesEnum.MealDate.index();
  public static final int LOCATION = AttributesEnum.Location.index();
  public static final int NUMOFBREAKFIRST = AttributesEnum.NumOfBreakfirst.index();
  public static final int NUMBEROFLUNCH = AttributesEnum.NumberOfLunch.index();
  public static final int JUSTIFICATION = AttributesEnum.Justification.index();

  /** This is the default constructor (do not remove). */
  public MealOrderImpl() {}

  /** Validation method for MealOrder. */
  public boolean validateSubmitDate() {

    Date mealDate = this.getMealDate();

    Calendar now = Calendar.getInstance();

    System.err.println(new java.util.Date(now.getTimeInMillis()));

    Calendar mealCal = Calendar.getInstance();
    mealCal.setTime(mealDate.getValue());
    mealCal.add(Calendar.DAY_OF_MONTH, -2);
    mealCal.set(Calendar.MINUTE, 0);
    mealCal.set(Calendar.HOUR_OF_DAY, 12);
    mealCal.set(Calendar.SECOND, 0);
    System.err.println(new java.util.Date(mealCal.getTimeInMillis()));

    if (mealCal.before(now)) return false;

    return true;
  }

  /**
   * Gets the attribute value for Id, using the alias name Id.
   *
   * @return the value of Id
   */
  public DBSequence getId() {
    return (DBSequence) getAttributeInternal(ID);
  }

  /**
   * Sets <code>value</code> as the attribute value for Id.
   *
   * @param value value to set the Id
   */
  public void setId(DBSequence value) {
    setAttributeInternal(ID, value);
  }

  /**
   * Gets the attribute value for RequesterName, using the alias name RequesterName.
   *
   * @return the value of RequesterName
   */
  public String getRequesterName() {
    return (String) getAttributeInternal(REQUESTERNAME);
  }

  /**
   * Sets <code>value</code> as the attribute value for RequesterName.
   *
   * @param value value to set the RequesterName
   */
  public void setRequesterName(String value) {
    setAttributeInternal(REQUESTERNAME, value);
  }

  /**
   * Gets the attribute value for RequesterId, using the alias name RequesterId.
   *
   * @return the value of RequesterId
   */
  public String getRequesterId() {
    return (String) getAttributeInternal(REQUESTERID);
  }

  /**
   * Sets <code>value</code> as the attribute value for RequesterId.
   *
   * @param value value to set the RequesterId
   */
  public void setRequesterId(String value) {
    setAttributeInternal(REQUESTERID, value);
  }

  /**
   * Gets the attribute value for MealDate, using the alias name MealDate.
   *
   * @return the value of MealDate
   */
  public Date getMealDate() {
    return (Date) getAttributeInternal(MEALDATE);
  }

  /**
   * Sets <code>value</code> as the attribute value for MealDate.
   *
   * @param value value to set the MealDate
   */
  public void setMealDate(Date value) {
    setAttributeInternal(MEALDATE, value);
  }

  /**
   * Gets the attribute value for Location, using the alias name Location.
   *
   * @return the value of Location
   */
  public String getLocation() {
    return (String) getAttributeInternal(LOCATION);
  }

  /**
   * Sets <code>value</code> as the attribute value for Location.
   *
   * @param value value to set the Location
   */
  public void setLocation(String value) {
    setAttributeInternal(LOCATION, value);
  }

  /**
   * Gets the attribute value for NumOfBreakfirst, using the alias name NumOfBreakfirst.
   *
   * @return the value of NumOfBreakfirst
   */
  public BigDecimal getNumOfBreakfirst() {
    return (BigDecimal) getAttributeInternal(NUMOFBREAKFIRST);
  }

  /**
   * Sets <code>value</code> as the attribute value for NumOfBreakfirst.
   *
   * @param value value to set the NumOfBreakfirst
   */
  public void setNumOfBreakfirst(BigDecimal value) {
    setAttributeInternal(NUMOFBREAKFIRST, value);
  }

  /**
   * Gets the attribute value for NumberOfLunch, using the alias name NumberOfLunch.
   *
   * @return the value of NumberOfLunch
   */
  public BigDecimal getNumberOfLunch() {
    return (BigDecimal) getAttributeInternal(NUMBEROFLUNCH);
  }

  /**
   * Sets <code>value</code> as the attribute value for NumberOfLunch.
   *
   * @param value value to set the NumberOfLunch
   */
  public void setNumberOfLunch(BigDecimal value) {
    setAttributeInternal(NUMBEROFLUNCH, value);
  }

  /**
   * Gets the attribute value for Justification, using the alias name Justification.
   *
   * @return the value of Justification
   */
  public String getJustification() {
    return (String) getAttributeInternal(JUSTIFICATION);
  }

  /**
   * Sets <code>value</code> as the attribute value for Justification.
   *
   * @param value value to set the Justification
   */
  public void setJustification(String value) {
    setAttributeInternal(JUSTIFICATION, value);
  }

  /**
   * getAttrInvokeAccessor: generated method. Do not modify.
   *
   * @param index the index identifying the attribute
   * @param attrDef the attribute
   * @return the attribute value
   * @throws Exception
   */
  protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {
    if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {
      return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);
    }
    return super.getAttrInvokeAccessor(index, attrDef);
  }

  /**
   * setAttrInvokeAccessor: generated method. Do not modify.
   *
   * @param index the index identifying the attribute
   * @param value the value to assign to the attribute
   * @param attrDef the attribute
   * @throws Exception
   */
  protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef)
      throws Exception {
    if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {
      AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);
      return;
    }
    super.setAttrInvokeAccessor(index, value, attrDef);
  }

  /**
   * @param id key constituent
   * @return a Key object based on given key constituents.
   */
  public static Key createPrimaryKey(DBSequence id) {
    return new Key(new Object[] {id});
  }

  /** @return the definition object for this instance class. */
  public static synchronized EntityDefImpl getDefinitionObject() {
    return EntityDefImpl.findDefObject("edu.hp.model.eo.MealOrder");
  }
}
// ---------------------------------------------------------------------
// ---    File generated by Oracle ADF Business Components Design Time.
// ---    Tue Jun 26 15:27:02 EEST 2012
// ---    Custom code may be added to this class.
// ---    Warning: Do not modify method signatures of generated methods.
// ---------------------------------------------------------------------
public class EmployeesToAptitudeViewRowImpl extends ViewRowImpl {
  /** AttributesEnum: generated enum for identifying attributes and accessors. Do not modify. */
  public enum AttributesEnum {
    AptitudeId {
      public Object get(EmployeesToAptitudeViewRowImpl obj) {
        return obj.getAptitudeId();
      }

      public void put(EmployeesToAptitudeViewRowImpl obj, Object value) {
        obj.setAptitudeId((Number) value);
      }
    },
    EmployeeId {
      public Object get(EmployeesToAptitudeViewRowImpl obj) {
        return obj.getEmployeeId();
      }

      public void put(EmployeesToAptitudeViewRowImpl obj, Object value) {
        obj.setEmployeeId((Number) value);
      }
    },
    Id {
      public Object get(EmployeesToAptitudeViewRowImpl obj) {
        return obj.getId();
      }

      public void put(EmployeesToAptitudeViewRowImpl obj, Object value) {
        obj.setId((DBSequence) value);
      }
    },
    FirstName {
      public Object get(EmployeesToAptitudeViewRowImpl obj) {
        return obj.getFirstName();
      }

      public void put(EmployeesToAptitudeViewRowImpl obj, Object value) {
        obj.setFirstName((String) value);
      }
    },
    LastName {
      public Object get(EmployeesToAptitudeViewRowImpl obj) {
        return obj.getLastName();
      }

      public void put(EmployeesToAptitudeViewRowImpl obj, Object value) {
        obj.setLastName((String) value);
      }
    },
    EmployeeId1 {
      public Object get(EmployeesToAptitudeViewRowImpl obj) {
        return obj.getEmployeeId1();
      }

      public void put(EmployeesToAptitudeViewRowImpl obj, Object value) {
        obj.setEmployeeId1((DBSequence) value);
      }
    },
    DepartmentName {
      public Object get(EmployeesToAptitudeViewRowImpl obj) {
        return obj.getDepartmentName();
      }

      public void put(EmployeesToAptitudeViewRowImpl obj, Object value) {
        obj.setDepartmentName((String) value);
      }
    },
    DepartmentId {
      public Object get(EmployeesToAptitudeViewRowImpl obj) {
        return obj.getDepartmentId();
      }

      public void put(EmployeesToAptitudeViewRowImpl obj, Object value) {
        obj.setDepartmentId((DBSequence) value);
      }
    };
    private static AttributesEnum[] vals = null;
    private static int firstIndex = 0;

    public abstract Object get(EmployeesToAptitudeViewRowImpl object);

    public abstract void put(EmployeesToAptitudeViewRowImpl object, Object value);

    public int index() {
      return AttributesEnum.firstIndex() + ordinal();
    }

    public static int firstIndex() {
      return firstIndex;
    }

    public static int count() {
      return AttributesEnum.firstIndex() + AttributesEnum.staticValues().length;
    }

    public static AttributesEnum[] staticValues() {
      if (vals == null) {
        vals = AttributesEnum.values();
      }
      return vals;
    }
  }

  public static final int APTITUDEID = AttributesEnum.AptitudeId.index();
  public static final int EMPLOYEEID = AttributesEnum.EmployeeId.index();
  public static final int ID = AttributesEnum.Id.index();
  public static final int FIRSTNAME = AttributesEnum.FirstName.index();
  public static final int LASTNAME = AttributesEnum.LastName.index();
  public static final int EMPLOYEEID1 = AttributesEnum.EmployeeId1.index();
  public static final int DEPARTMENTNAME = AttributesEnum.DepartmentName.index();
  public static final int DEPARTMENTID = AttributesEnum.DepartmentId.index();

  /** This is the default constructor (do not remove). */
  public EmployeesToAptitudeViewRowImpl() {}

  /**
   * Gets EmployeesToAptitudeEO entity object.
   *
   * @return the EmployeesToAptitudeEO
   */
  public EmployeesToAptitudeEOImpl getEmployeesToAptitudeEO() {
    return (EmployeesToAptitudeEOImpl) getEntity(0);
  }

  /**
   * Gets Employees entity object.
   *
   * @return the Employees
   */
  public EmployeesImpl getEmployees() {
    return (EmployeesImpl) getEntity(1);
  }

  /**
   * Gets DepartmentsEO entity object.
   *
   * @return the DepartmentsEO
   */
  public DepartmentsEOImpl getDepartmentsEO() {
    return (DepartmentsEOImpl) getEntity(2);
  }

  /**
   * Gets the attribute value for APTITUDE_ID using the alias name AptitudeId.
   *
   * @return the APTITUDE_ID
   */
  public Number getAptitudeId() {
    return (Number) getAttributeInternal(APTITUDEID);
  }

  /**
   * Sets <code>value</code> as attribute value for APTITUDE_ID using the alias name AptitudeId.
   *
   * @param value value to set the APTITUDE_ID
   */
  public void setAptitudeId(Number value) {
    setAttributeInternal(APTITUDEID, value);
  }

  /**
   * Gets the attribute value for EMPLOYEE_ID using the alias name EmployeeId.
   *
   * @return the EMPLOYEE_ID
   */
  public Number getEmployeeId() {
    return (Number) getAttributeInternal(EMPLOYEEID);
  }

  /**
   * Sets <code>value</code> as attribute value for EMPLOYEE_ID using the alias name EmployeeId.
   *
   * @param value value to set the EMPLOYEE_ID
   */
  public void setEmployeeId(Number value) {
    setAttributeInternal(EMPLOYEEID, value);
  }

  /**
   * Gets the attribute value for ID using the alias name Id.
   *
   * @return the ID
   */
  public DBSequence getId() {
    return (DBSequence) getAttributeInternal(ID);
  }

  /**
   * Sets <code>value</code> as attribute value for ID using the alias name Id.
   *
   * @param value value to set the ID
   */
  public void setId(DBSequence value) {
    setAttributeInternal(ID, value);
  }

  /**
   * Gets the attribute value for FIRST_NAME using the alias name FirstName.
   *
   * @return the FIRST_NAME
   */
  public String getFirstName() {
    return (String) getAttributeInternal(FIRSTNAME);
  }

  /**
   * Sets <code>value</code> as attribute value for FIRST_NAME using the alias name FirstName.
   *
   * @param value value to set the FIRST_NAME
   */
  public void setFirstName(String value) {
    setAttributeInternal(FIRSTNAME, value);
  }

  /**
   * Gets the attribute value for LAST_NAME using the alias name LastName.
   *
   * @return the LAST_NAME
   */
  public String getLastName() {
    return (String) getAttributeInternal(LASTNAME);
  }

  /**
   * Sets <code>value</code> as attribute value for LAST_NAME using the alias name LastName.
   *
   * @param value value to set the LAST_NAME
   */
  public void setLastName(String value) {
    setAttributeInternal(LASTNAME, value);
  }

  /**
   * Gets the attribute value for EMPLOYEE_ID using the alias name EmployeeId1.
   *
   * @return the EMPLOYEE_ID
   */
  public DBSequence getEmployeeId1() {
    return (DBSequence) getAttributeInternal(EMPLOYEEID1);
  }

  /**
   * Sets <code>value</code> as attribute value for EMPLOYEE_ID using the alias name EmployeeId1.
   *
   * @param value value to set the EMPLOYEE_ID
   */
  public void setEmployeeId1(DBSequence value) {
    setAttributeInternal(EMPLOYEEID1, value);
  }

  /**
   * Gets the attribute value for DEPARTMENT_NAME using the alias name DepartmentName.
   *
   * @return the DEPARTMENT_NAME
   */
  public String getDepartmentName() {
    return (String) getAttributeInternal(DEPARTMENTNAME);
  }

  /**
   * Sets <code>value</code> as attribute value for DEPARTMENT_NAME using the alias name
   * DepartmentName.
   *
   * @param value value to set the DEPARTMENT_NAME
   */
  public void setDepartmentName(String value) {
    setAttributeInternal(DEPARTMENTNAME, value);
  }

  /**
   * Gets the attribute value for DEPARTMENT_ID using the alias name DepartmentId.
   *
   * @return the DEPARTMENT_ID
   */
  public DBSequence getDepartmentId() {
    return (DBSequence) getAttributeInternal(DEPARTMENTID);
  }

  /**
   * Sets <code>value</code> as attribute value for DEPARTMENT_ID using the alias name DepartmentId.
   *
   * @param value value to set the DEPARTMENT_ID
   */
  public void setDepartmentId(DBSequence value) {
    setAttributeInternal(DEPARTMENTID, value);
  }

  /**
   * getAttrInvokeAccessor: generated method. Do not modify.
   *
   * @param index the index identifying the attribute
   * @param attrDef the attribute
   * @return the attribute value
   * @throws Exception
   */
  protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {
    if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {
      return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);
    }
    return super.getAttrInvokeAccessor(index, attrDef);
  }

  /**
   * setAttrInvokeAccessor: generated method. Do not modify.
   *
   * @param index the index identifying the attribute
   * @param value the value to assign to the attribute
   * @param attrDef the attribute
   * @throws Exception
   */
  protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef)
      throws Exception {
    if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {
      AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);
      return;
    }
    super.setAttrInvokeAccessor(index, value, attrDef);
  }
}
// ---------------------------------------------------------------------
// ---    File generated by Oracle ADF Business Components Design Time.
// ---    Mon Jul 22 00:41:39 PDT 2013
// ---    Custom code may be added to this class.
// ---    Warning: Do not modify method signatures of generated methods.
// ---------------------------------------------------------------------
public class ManufactureServiceLovRowImpl extends TemplateViewRow {
  /** AttributesEnum: generated enum for identifying attributes and accessors. DO NOT MODIFY. */
  public enum AttributesEnum {
    Id {
      public Object get(ManufactureServiceLovRowImpl obj) {
        return obj.getId();
      }

      public void put(ManufactureServiceLovRowImpl obj, Object value) {
        obj.setId((Number) value);
      }
    },
    Name {
      public Object get(ManufactureServiceLovRowImpl obj) {
        return obj.getName();
      }

      public void put(ManufactureServiceLovRowImpl obj, Object value) {
        obj.setName((String) value);
      }
    },
    SupplierStatus {
      public Object get(ManufactureServiceLovRowImpl obj) {
        return obj.getSupplierStatus();
      }

      public void put(ManufactureServiceLovRowImpl obj, Object value) {
        obj.setSupplierStatus((Number) value);
      }
    },
    SupplierType {
      public Object get(ManufactureServiceLovRowImpl obj) {
        return obj.getSupplierType();
      }

      public void put(ManufactureServiceLovRowImpl obj, Object value) {
        obj.setSupplierType((Number) value);
      }
    },
    ActFname {
      public Object get(ManufactureServiceLovRowImpl obj) {
        return obj.getActFname();
      }

      public void put(ManufactureServiceLovRowImpl obj, Object value) {
        obj.setActFname((String) value);
      }
    },
    ActLname {
      public Object get(ManufactureServiceLovRowImpl obj) {
        return obj.getActLname();
      }

      public void put(ManufactureServiceLovRowImpl obj, Object value) {
        obj.setActLname((String) value);
      }
    },
    SmartName {
      public Object get(ManufactureServiceLovRowImpl obj) {
        return obj.getSmartName();
      }

      public void put(ManufactureServiceLovRowImpl obj, Object value) {
        obj.setSmartName((String) value);
      }
    };
    private static AttributesEnum[] vals = null;
    private static final int firstIndex = 0;

    public abstract Object get(ManufactureServiceLovRowImpl object);

    public abstract void put(ManufactureServiceLovRowImpl object, Object value);

    public int index() {
      return AttributesEnum.firstIndex() + ordinal();
    }

    public static final int firstIndex() {
      return firstIndex;
    }

    public static int count() {
      return AttributesEnum.firstIndex() + AttributesEnum.staticValues().length;
    }

    public static final AttributesEnum[] staticValues() {
      if (vals == null) {
        vals = AttributesEnum.values();
      }
      return vals;
    }
  }

  public static final int ID = AttributesEnum.Id.index();
  public static final int NAME = AttributesEnum.Name.index();
  public static final int SUPPLIERSTATUS = AttributesEnum.SupplierStatus.index();
  public static final int SUPPLIERTYPE = AttributesEnum.SupplierType.index();
  public static final int ACTFNAME = AttributesEnum.ActFname.index();
  public static final int ACTLNAME = AttributesEnum.ActLname.index();
  public static final int SMARTNAME = AttributesEnum.SmartName.index();

  /** This is the default constructor (do not remove). */
  public ManufactureServiceLovRowImpl() {}

  /**
   * Gets the attribute value for the calculated attribute Id.
   *
   * @return the Id
   */
  public Number getId() {
    return (Number) getAttributeInternal(ID);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute Id.
   *
   * @param value value to set the Id
   */
  public void setId(Number value) {
    setAttributeInternal(ID, value);
  }

  /**
   * Gets the attribute value for the calculated attribute Name.
   *
   * @return the Name
   */
  public String getName() {
    return (String) getAttributeInternal(NAME);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute Name.
   *
   * @param value value to set the Name
   */
  public void setName(String value) {
    setAttributeInternal(NAME, value);
  }

  /**
   * Gets the attribute value for the calculated attribute SupplierStatus.
   *
   * @return the SupplierStatus
   */
  public Number getSupplierStatus() {
    return (Number) getAttributeInternal(SUPPLIERSTATUS);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute SupplierStatus.
   *
   * @param value value to set the SupplierStatus
   */
  public void setSupplierStatus(Number value) {
    setAttributeInternal(SUPPLIERSTATUS, value);
  }

  /**
   * Gets the attribute value for the calculated attribute SupplierType.
   *
   * @return the SupplierType
   */
  public Number getSupplierType() {
    return (Number) getAttributeInternal(SUPPLIERTYPE);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute SupplierType.
   *
   * @param value value to set the SupplierType
   */
  public void setSupplierType(Number value) {
    setAttributeInternal(SUPPLIERTYPE, value);
  }

  /**
   * Gets the attribute value for the calculated attribute ActFname.
   *
   * @return the ActFname
   */
  public String getActFname() {
    return (String) getAttributeInternal(ACTFNAME);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute ActFname.
   *
   * @param value value to set the ActFname
   */
  public void setActFname(String value) {
    setAttributeInternal(ACTFNAME, value);
  }

  /**
   * Gets the attribute value for the calculated attribute ActLname.
   *
   * @return the ActLname
   */
  public String getActLname() {
    return (String) getAttributeInternal(ACTLNAME);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute ActLname.
   *
   * @param value value to set the ActLname
   */
  public void setActLname(String value) {
    setAttributeInternal(ACTLNAME, value);
  }

  /**
   * Gets the attribute value for the calculated attribute SmartName.
   *
   * @return the SmartName
   */
  public String getSmartName() {
    //        return (String) getAttributeInternal(SMARTNAME);

    if (new Number(2).equals(getSupplierStatus())) {
      return getActFname() + " " + getActLname();
    }
    return getName();
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute SmartName.
   *
   * @param value value to set the SmartName
   */
  public void setSmartName(String value) {
    setAttributeInternal(SMARTNAME, value);
  }

  /**
   * getAttrInvokeAccessor: generated method. Do not modify.
   *
   * @param index the index identifying the attribute
   * @param attrDef the attribute
   * @return the attribute value
   * @throws Exception
   */
  protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {
    if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {
      return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);
    }
    return super.getAttrInvokeAccessor(index, attrDef);
  }

  /**
   * setAttrInvokeAccessor: generated method. Do not modify.
   *
   * @param index the index identifying the attribute
   * @param value the value to assign to the attribute
   * @param attrDef the attribute
   * @throws Exception
   */
  protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef)
      throws Exception {
    if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {
      AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);
      return;
    }
    super.setAttrInvokeAccessor(index, value, attrDef);
  }
}
// ---------------------------------------------------------------------
// ---    File generated by Oracle ADF Business Components Design Time.
// ---    Mon Jul 06 20:49:01 EEST 2015
// ---    Custom code may be added to this class.
// ---    Warning: Do not modify method signatures of generated methods.
// ---------------------------------------------------------------------
public class RatingSettingsViewRowImpl extends ViewRowImpl {
  public static final int ENTITY_RATINGSETTINGS = 0;

  @Override
  public boolean isAttributeUpdateable(int i) {
    BigDecimal editable = this.getEditable();
    if (editable.intValue() == 0) {
      return false;
    } else {
      return super.isAttributeUpdateable(i);
    }
  }

  @Override
  protected void create(AttributeList attributeList) {
    this.setEditable(new BigDecimal(1));
    // this.setForValidation(new Integer(2));
    super.create(attributeList);
  }

  /** AttributesEnum: generated enum for identifying attributes and accessors. DO NOT MODIFY. */
  public enum AttributesEnum {
    Id,
    SumDivider,
    SumBal,
    CntDivider,
    CntBal,
    Editable;
    private static AttributesEnum[] vals = null;
    private static final int firstIndex = 0;

    public int index() {
      return AttributesEnum.firstIndex() + ordinal();
    }

    public static final int firstIndex() {
      return firstIndex;
    }

    public static int count() {
      return AttributesEnum.firstIndex() + AttributesEnum.staticValues().length;
    }

    public static final AttributesEnum[] staticValues() {
      if (vals == null) {
        vals = AttributesEnum.values();
      }
      return vals;
    }
  }

  public static final int ID = AttributesEnum.Id.index();
  public static final int SUMDIVIDER = AttributesEnum.SumDivider.index();
  public static final int SUMBAL = AttributesEnum.SumBal.index();
  public static final int CNTDIVIDER = AttributesEnum.CntDivider.index();
  public static final int CNTBAL = AttributesEnum.CntBal.index();
  public static final int EDITABLE = AttributesEnum.Editable.index();

  /** This is the default constructor (do not remove). */
  public RatingSettingsViewRowImpl() {}

  /**
   * Gets RatingSettings entity object.
   *
   * @return the RatingSettings
   */
  public RatingSettingsImpl getRatingSettings() {
    return (RatingSettingsImpl) getEntity(ENTITY_RATINGSETTINGS);
  }

  /**
   * Gets the attribute value for ID using the alias name Id.
   *
   * @return the ID
   */
  public String getId() {
    return (String) getAttributeInternal(ID);
  }

  /**
   * Sets <code>value</code> as attribute value for ID using the alias name Id.
   *
   * @param value value to set the ID
   */
  public void setId(String value) {
    setAttributeInternal(ID, value);
  }

  /**
   * Gets the attribute value for SUM_DIVIDER using the alias name SumDivider.
   *
   * @return the SUM_DIVIDER
   */
  public Long getSumDivider() {
    return (Long) getAttributeInternal(SUMDIVIDER);
  }

  /**
   * Sets <code>value</code> as attribute value for SUM_DIVIDER using the alias name SumDivider.
   *
   * @param value value to set the SUM_DIVIDER
   */
  public void setSumDivider(Long value) {
    setAttributeInternal(SUMDIVIDER, value);
  }

  /**
   * Gets the attribute value for SUM_BAL using the alias name SumBal.
   *
   * @return the SUM_BAL
   */
  public BigDecimal getSumBal() {
    return (BigDecimal) getAttributeInternal(SUMBAL);
  }

  /**
   * Sets <code>value</code> as attribute value for SUM_BAL using the alias name SumBal.
   *
   * @param value value to set the SUM_BAL
   */
  public void setSumBal(BigDecimal value) {
    setAttributeInternal(SUMBAL, value);
  }

  /**
   * Gets the attribute value for CNT_DIVIDER using the alias name CntDivider.
   *
   * @return the CNT_DIVIDER
   */
  public Long getCntDivider() {
    return (Long) getAttributeInternal(CNTDIVIDER);
  }

  /**
   * Sets <code>value</code> as attribute value for CNT_DIVIDER using the alias name CntDivider.
   *
   * @param value value to set the CNT_DIVIDER
   */
  public void setCntDivider(Long value) {
    setAttributeInternal(CNTDIVIDER, value);
  }

  /**
   * Gets the attribute value for CNT_BAL using the alias name CntBal.
   *
   * @return the CNT_BAL
   */
  public BigDecimal getCntBal() {
    return (BigDecimal) getAttributeInternal(CNTBAL);
  }

  /**
   * Sets <code>value</code> as attribute value for CNT_BAL using the alias name CntBal.
   *
   * @param value value to set the CNT_BAL
   */
  public void setCntBal(BigDecimal value) {
    setAttributeInternal(CNTBAL, value);
  }

  /**
   * Gets the attribute value for the calculated attribute Editable.
   *
   * @return the Editable
   */
  public BigDecimal getEditable() {
    return (BigDecimal) getAttributeInternal(EDITABLE);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute Editable.
   *
   * @param value value to set the Editable
   */
  public void setEditable(BigDecimal value) {
    setAttributeInternal(EDITABLE, value);
  }
}
// ---------------------------------------------------------------------
// ---    File generated by Oracle ADF Business Components Design Time.
// ---    Sun Sep 29 02:05:03 PDT 2013
// ---    Custom code may be added to this class.
// ---    Warning: Do not modify method signatures of generated methods.
// ---------------------------------------------------------------------
public class QcDeliveryControlViewRowImpl extends TemplateViewRow {
  /** AttributesEnum: generated enum for identifying attributes and accessors. DO NOT MODIFY. */
  public enum AttributesEnum {
    Id {
      public Object get(QcDeliveryControlViewRowImpl obj) {
        return obj.getId();
      }

      public void put(QcDeliveryControlViewRowImpl obj, Object value) {
        obj.setId((DBSequence) value);
      }
    },
    IndustryId {
      public Object get(QcDeliveryControlViewRowImpl obj) {
        return obj.getIndustryId();
      }

      public void put(QcDeliveryControlViewRowImpl obj, Object value) {
        obj.setIndustryId((Number) value);
      }
    },
    SampleAmount {
      public Object get(QcDeliveryControlViewRowImpl obj) {
        return obj.getSampleAmount();
      }

      public void put(QcDeliveryControlViewRowImpl obj, Object value) {
        obj.setSampleAmount((Number) value);
      }
    },
    ApproveAmount {
      public Object get(QcDeliveryControlViewRowImpl obj) {
        return obj.getApproveAmount();
      }

      public void put(QcDeliveryControlViewRowImpl obj, Object value) {
        obj.setApproveAmount((Number) value);
      }
    },
    RejectAmount {
      public Object get(QcDeliveryControlViewRowImpl obj) {
        return obj.getRejectAmount();
      }

      public void put(QcDeliveryControlViewRowImpl obj, Object value) {
        obj.setRejectAmount((Number) value);
      }
    },
    QcResult {
      public Object get(QcDeliveryControlViewRowImpl obj) {
        return obj.getQcResult();
      }

      public void put(QcDeliveryControlViewRowImpl obj, Object value) {
        obj.setQcResult((Number) value);
      }
    },
    CreateDate {
      public Object get(QcDeliveryControlViewRowImpl obj) {
        return obj.getCreateDate();
      }

      public void put(QcDeliveryControlViewRowImpl obj, Object value) {
        obj.setCreateDate((Date) value);
      }
    },
    QcDate {
      public Object get(QcDeliveryControlViewRowImpl obj) {
        return obj.getQcDate();
      }

      public void put(QcDeliveryControlViewRowImpl obj, Object value) {
        obj.setQcDate((Date) value);
      }
    },
    DlvryInvoiceDtlId {
      public Object get(QcDeliveryControlViewRowImpl obj) {
        return obj.getDlvryInvoiceDtlId();
      }

      public void put(QcDeliveryControlViewRowImpl obj, Object value) {
        obj.setDlvryInvoiceDtlId((Number) value);
      }
    },
    LicenceRejected {
      public Object get(QcDeliveryControlViewRowImpl obj) {
        return obj.getLicenceRejected();
      }

      public void put(QcDeliveryControlViewRowImpl obj, Object value) {
        obj.setLicenceRejected((Number) value);
      }
    },
    LicenseApproved {
      public Object get(QcDeliveryControlViewRowImpl obj) {
        return obj.getLicenseApproved();
      }

      public void put(QcDeliveryControlViewRowImpl obj, Object value) {
        obj.setLicenseApproved((Number) value);
      }
    },
    LicenseNumber {
      public Object get(QcDeliveryControlViewRowImpl obj) {
        return obj.getLicenseNumber();
      }

      public void put(QcDeliveryControlViewRowImpl obj, Object value) {
        obj.setLicenseNumber((String) value);
      }
    },
    LicenseQuarantine {
      public Object get(QcDeliveryControlViewRowImpl obj) {
        return obj.getLicenseQuarantine();
      }

      public void put(QcDeliveryControlViewRowImpl obj, Object value) {
        obj.setLicenseQuarantine((Number) value);
      }
    },
    LicenceDescription {
      public Object get(QcDeliveryControlViewRowImpl obj) {
        return obj.getLicenceDescription();
      }

      public void put(QcDeliveryControlViewRowImpl obj, Object value) {
        obj.setLicenceDescription((String) value);
      }
    },
    UpdateDate {
      public Object get(QcDeliveryControlViewRowImpl obj) {
        return obj.getUpdateDate();
      }

      public void put(QcDeliveryControlViewRowImpl obj, Object value) {
        obj.setUpdateDate((Date) value);
      }
    },
    WarDeliveryView {
      public Object get(QcDeliveryControlViewRowImpl obj) {
        return obj.getWarDeliveryView();
      }

      public void put(QcDeliveryControlViewRowImpl obj, Object value) {
        obj.setAttributeInternal(index(), value);
      }
    },
    CgRefCodesView1 {
      public Object get(QcDeliveryControlViewRowImpl obj) {
        return obj.getCgRefCodesView1();
      }

      public void put(QcDeliveryControlViewRowImpl obj, Object value) {
        obj.setAttributeInternal(index(), value);
      }
    };
    private static AttributesEnum[] vals = null;
    private static final int firstIndex = 0;

    public abstract Object get(QcDeliveryControlViewRowImpl object);

    public abstract void put(QcDeliveryControlViewRowImpl object, Object value);

    public int index() {
      return AttributesEnum.firstIndex() + ordinal();
    }

    public static final int firstIndex() {
      return firstIndex;
    }

    public static int count() {
      return AttributesEnum.firstIndex() + AttributesEnum.staticValues().length;
    }

    public static final AttributesEnum[] staticValues() {
      if (vals == null) {
        vals = AttributesEnum.values();
      }
      return vals;
    }
  }

  public static final int ID = AttributesEnum.Id.index();
  public static final int INDUSTRYID = AttributesEnum.IndustryId.index();
  public static final int SAMPLEAMOUNT = AttributesEnum.SampleAmount.index();
  public static final int APPROVEAMOUNT = AttributesEnum.ApproveAmount.index();
  public static final int REJECTAMOUNT = AttributesEnum.RejectAmount.index();
  public static final int QCRESULT = AttributesEnum.QcResult.index();
  public static final int CREATEDATE = AttributesEnum.CreateDate.index();
  public static final int QCDATE = AttributesEnum.QcDate.index();
  public static final int DLVRYINVOICEDTLID = AttributesEnum.DlvryInvoiceDtlId.index();
  public static final int LICENCEREJECTED = AttributesEnum.LicenceRejected.index();
  public static final int LICENSEAPPROVED = AttributesEnum.LicenseApproved.index();
  public static final int LICENSENUMBER = AttributesEnum.LicenseNumber.index();
  public static final int LICENSEQUARANTINE = AttributesEnum.LicenseQuarantine.index();
  public static final int LICENCEDESCRIPTION = AttributesEnum.LicenceDescription.index();
  public static final int UPDATEDATE = AttributesEnum.UpdateDate.index();
  public static final int WARDELIVERYVIEW = AttributesEnum.WarDeliveryView.index();
  public static final int CGREFCODESVIEW1 = AttributesEnum.CgRefCodesView1.index();

  /** This is the default constructor (do not remove). */
  public QcDeliveryControlViewRowImpl() {}

  /**
   * Gets QcDeliveryControl entity object.
   *
   * @return the QcDeliveryControl
   */
  public TemplateEntityObject getQcDeliveryControl() {
    return (TemplateEntityObject) getEntity(0);
  }

  /**
   * Gets the attribute value for ID using the alias name Id.
   *
   * @return the ID
   */
  public DBSequence getId() {
    return (DBSequence) getAttributeInternal(ID);
  }

  /**
   * Sets <code>value</code> as attribute value for ID using the alias name Id.
   *
   * @param value value to set the ID
   */
  public void setId(DBSequence value) {
    setAttributeInternal(ID, value);
  }

  /**
   * Gets the attribute value for INDUSTRY_ID using the alias name IndustryId.
   *
   * @return the INDUSTRY_ID
   */
  public Number getIndustryId() {
    return (Number) getAttributeInternal(INDUSTRYID);
  }

  /**
   * Sets <code>value</code> as attribute value for INDUSTRY_ID using the alias name IndustryId.
   *
   * @param value value to set the INDUSTRY_ID
   */
  public void setIndustryId(Number value) {
    setAttributeInternal(INDUSTRYID, value);
  }

  /**
   * Gets the attribute value for SAMPLE_AMOUNT using the alias name SampleAmount.
   *
   * @return the SAMPLE_AMOUNT
   */
  public Number getSampleAmount() {
    return (Number) getAttributeInternal(SAMPLEAMOUNT);
  }

  /**
   * Sets <code>value</code> as attribute value for SAMPLE_AMOUNT using the alias name SampleAmount.
   *
   * @param value value to set the SAMPLE_AMOUNT
   */
  public void setSampleAmount(Number value) {
    setAttributeInternal(SAMPLEAMOUNT, value);
  }

  /**
   * Gets the attribute value for APPROVE_AMOUNT using the alias name ApproveAmount.
   *
   * @return the APPROVE_AMOUNT
   */
  public Number getApproveAmount() {
    return (Number) getAttributeInternal(APPROVEAMOUNT);
  }

  /**
   * Sets <code>value</code> as attribute value for APPROVE_AMOUNT using the alias name
   * ApproveAmount.
   *
   * @param value value to set the APPROVE_AMOUNT
   */
  public void setApproveAmount(Number value) {
    setAttributeInternal(APPROVEAMOUNT, value);
  }

  /**
   * Gets the attribute value for REJECT_AMOUNT using the alias name RejectAmount.
   *
   * @return the REJECT_AMOUNT
   */
  public Number getRejectAmount() {
    return (Number) getAttributeInternal(REJECTAMOUNT);
  }

  /**
   * Sets <code>value</code> as attribute value for REJECT_AMOUNT using the alias name RejectAmount.
   *
   * @param value value to set the REJECT_AMOUNT
   */
  public void setRejectAmount(Number value) {
    setAttributeInternal(REJECTAMOUNT, value);
  }

  /**
   * Gets the attribute value for QC_RESULT using the alias name QcResult.
   *
   * @return the QC_RESULT
   */
  public Number getQcResult() {
    return (Number) getAttributeInternal(QCRESULT);
  }

  /**
   * Sets <code>value</code> as attribute value for QC_RESULT using the alias name QcResult.
   *
   * @param value value to set the QC_RESULT
   */
  public void setQcResult(Number value) {
    setAttributeInternal(QCRESULT, value);
  }

  /**
   * Gets the attribute value for CREATE_DATE using the alias name CreateDate.
   *
   * @return the CREATE_DATE
   */
  public Date getCreateDate() {
    return (Date) getAttributeInternal(CREATEDATE);
  }

  /**
   * Sets <code>value</code> as attribute value for CREATE_DATE using the alias name CreateDate.
   *
   * @param value value to set the CREATE_DATE
   */
  public void setCreateDate(Date value) {
    setAttributeInternal(CREATEDATE, value);
  }

  /**
   * Gets the attribute value for QC_DATE using the alias name QcDate.
   *
   * @return the QC_DATE
   */
  public Date getQcDate() {
    return (Date) getAttributeInternal(QCDATE);
  }

  /**
   * Sets <code>value</code> as attribute value for QC_DATE using the alias name QcDate.
   *
   * @param value value to set the QC_DATE
   */
  public void setQcDate(Date value) {
    setAttributeInternal(QCDATE, value);
  }

  /**
   * Gets the attribute value for DLVRY_INVOICE_DTL_ID using the alias name DlvryInvoiceDtlId.
   *
   * @return the DLVRY_INVOICE_DTL_ID
   */
  public Number getDlvryInvoiceDtlId() {
    return (Number) getAttributeInternal(DLVRYINVOICEDTLID);
  }

  /**
   * Sets <code>value</code> as attribute value for DLVRY_INVOICE_DTL_ID using the alias name
   * DlvryInvoiceDtlId.
   *
   * @param value value to set the DLVRY_INVOICE_DTL_ID
   */
  public void setDlvryInvoiceDtlId(Number value) {
    setAttributeInternal(DLVRYINVOICEDTLID, value);
  }

  /**
   * Gets the attribute value for LICENCE_REJECTED using the alias name LicenceRejected.
   *
   * @return the LICENCE_REJECTED
   */
  public Number getLicenceRejected() {
    return (Number) getAttributeInternal(LICENCEREJECTED);
  }

  /**
   * Sets <code>value</code> as attribute value for LICENCE_REJECTED using the alias name
   * LicenceRejected.
   *
   * @param value value to set the LICENCE_REJECTED
   */
  public void setLicenceRejected(Number value) {
    setAttributeInternal(LICENCEREJECTED, value);
  }

  /**
   * Gets the attribute value for LICENSE_APPROVED using the alias name LicenseApproved.
   *
   * @return the LICENSE_APPROVED
   */
  public Number getLicenseApproved() {
    return (Number) getAttributeInternal(LICENSEAPPROVED);
  }

  /**
   * Sets <code>value</code> as attribute value for LICENSE_APPROVED using the alias name
   * LicenseApproved.
   *
   * @param value value to set the LICENSE_APPROVED
   */
  public void setLicenseApproved(Number value) {
    setAttributeInternal(LICENSEAPPROVED, value);
  }

  /**
   * Gets the attribute value for LICENSE_NUMBER using the alias name LicenseNumber.
   *
   * @return the LICENSE_NUMBER
   */
  public String getLicenseNumber() {
    return (String) getAttributeInternal(LICENSENUMBER);
  }

  /**
   * Sets <code>value</code> as attribute value for LICENSE_NUMBER using the alias name
   * LicenseNumber.
   *
   * @param value value to set the LICENSE_NUMBER
   */
  public void setLicenseNumber(String value) {
    setAttributeInternal(LICENSENUMBER, value);
  }

  /**
   * Gets the attribute value for LICENSE_QUARANTINE using the alias name LicenseQuarantine.
   *
   * @return the LICENSE_QUARANTINE
   */
  public Number getLicenseQuarantine() {
    return (Number) getAttributeInternal(LICENSEQUARANTINE);
  }

  /**
   * Sets <code>value</code> as attribute value for LICENSE_QUARANTINE using the alias name
   * LicenseQuarantine.
   *
   * @param value value to set the LICENSE_QUARANTINE
   */
  public void setLicenseQuarantine(Number value) {
    setAttributeInternal(LICENSEQUARANTINE, value);
  }

  /**
   * Gets the attribute value for LICENCE_DESCRIPTION using the alias name LicenceDescription.
   *
   * @return the LICENCE_DESCRIPTION
   */
  public String getLicenceDescription() {
    return (String) getAttributeInternal(LICENCEDESCRIPTION);
  }

  /**
   * Sets <code>value</code> as attribute value for LICENCE_DESCRIPTION using the alias name
   * LicenceDescription.
   *
   * @param value value to set the LICENCE_DESCRIPTION
   */
  public void setLicenceDescription(String value) {
    setAttributeInternal(LICENCEDESCRIPTION, value);
  }

  /**
   * Gets the attribute value for UPDATE_DATE using the alias name UpdateDate.
   *
   * @return the UPDATE_DATE
   */
  public Date getUpdateDate() {
    return (Date) getAttributeInternal(UPDATEDATE);
  }

  /**
   * Sets <code>value</code> as attribute value for UPDATE_DATE using the alias name UpdateDate.
   *
   * @param value value to set the UPDATE_DATE
   */
  public void setUpdateDate(Date value) {
    setAttributeInternal(UPDATEDATE, value);
  }

  /** Gets the associated <code>Row</code> using master-detail link WarDeliveryView. */
  public oracle.jbo.Row getWarDeliveryView() {
    return (oracle.jbo.Row) getAttributeInternal(WARDELIVERYVIEW);
  }

  /** Sets the master-detail link WarDeliveryView between this object and <code>value</code>. */
  public void setWarDeliveryView(oracle.jbo.Row value) {
    setAttributeInternal(WARDELIVERYVIEW, value);
  }

  /** Gets the view accessor <code>RowSet</code> CgRefCodesView1. */
  public RowSet getCgRefCodesView1() {
    return (RowSet) getAttributeInternal(CGREFCODESVIEW1);
  }

  /**
   * getAttrInvokeAccessor: generated method. Do not modify.
   *
   * @param index the index identifying the attribute
   * @param attrDef the attribute
   * @return the attribute value
   * @throws Exception
   */
  protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {
    if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {
      return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);
    }
    return super.getAttrInvokeAccessor(index, attrDef);
  }

  /**
   * setAttrInvokeAccessor: generated method. Do not modify.
   *
   * @param index the index identifying the attribute
   * @param value the value to assign to the attribute
   * @param attrDef the attribute
   * @throws Exception
   */
  protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef)
      throws Exception {
    if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {
      AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);
      return;
    }
    super.setAttrInvokeAccessor(index, value, attrDef);
  }
}