// --------------------------------------------------------------------- // --- 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); } } }
// --------------------------------------------------------------------- // --- File generated by Oracle ADF Business Components Design Time. // --- Fri Jan 20 16:08:46 GMT+04:00 2012 // --- Custom code may be added to this class. // --- Warning: Do not modify method signatures of generated methods. // --------------------------------------------------------------------- public class UniformTitleImpl extends TemplateEntityObject { private static EntityDefImpl mDefinitionObject; /** AttributesEnum: generated enum for identifying attributes and accessors. Do not modify. */ public enum AttributesEnum { Labcol { public Object get(UniformTitleImpl obj) { return obj.getLabcol(); } public void put(UniformTitleImpl obj, Object value) { obj.setLabcol((Number) value); } }, Title { public Object get(UniformTitleImpl obj) { return obj.getTitle(); } public void put(UniformTitleImpl obj, Object value) { obj.setTitle((String) value); } }, ArtId { public Object get(UniformTitleImpl obj) { return obj.getArtId(); } public void put(UniformTitleImpl obj, Object value) { obj.setArtId((DBSequence) value); } }, ReferenceType { public Object get(UniformTitleImpl obj) { return obj.getReferenceType(); } public void put(UniformTitleImpl obj, Object value) { obj.setReferenceType((Number) value); } }, ReadingOrder { public Object get(UniformTitleImpl obj) { return obj.getReadingOrder(); } public void put(UniformTitleImpl obj, Object value) { obj.setReadingOrder((Number) value); } }, VirtualBook1 { public Object get(UniformTitleImpl obj) { return obj.getVirtualBook1(); } public void put(UniformTitleImpl obj, Object value) { obj.setAttributeInternal(index(), value); } }, VbookUniformTitle2 { public Object get(UniformTitleImpl obj) { return obj.getVbookUniformTitle2(); } public void put(UniformTitleImpl obj, Object value) { obj.setAttributeInternal(index(), value); } }, SeeUniformTitle { public Object get(UniformTitleImpl obj) { return obj.getSeeUniformTitle(); } public void put(UniformTitleImpl obj, Object value) { obj.setSeeUniformTitle((SeeUniformTitleImpl) value); } }, SeeAlsoUniformTitle1 { public Object get(UniformTitleImpl obj) { return obj.getSeeAlsoUniformTitle1(); } public void put(UniformTitleImpl obj, Object value) { obj.setSeeAlsoUniformTitle1((SeeAlsoUniformTitleImpl) value); } }, SeeAlsoUniformTitle { public Object get(UniformTitleImpl obj) { return obj.getSeeAlsoUniformTitle(); } public void put(UniformTitleImpl obj, Object value) { obj.setAttributeInternal(index(), value); } }, VirtualBook { public Object get(UniformTitleImpl obj) { return obj.getVirtualBook(); } public void put(UniformTitleImpl obj, Object value) { obj.setAttributeInternal(index(), value); } }, VbookUniformTitle1 { public Object get(UniformTitleImpl obj) { return obj.getVbookUniformTitle1(); } public void put(UniformTitleImpl obj, Object value) { obj.setAttributeInternal(index(), value); } }, DummyVO1 { public Object get(UniformTitleImpl obj) { return obj.getDummyVO1(); } public void put(UniformTitleImpl obj, Object value) { obj.setAttributeInternal(index(), value); } }; private static AttributesEnum[] vals = null; private static int firstIndex = 0; public abstract Object get(UniformTitleImpl object); public abstract void put(UniformTitleImpl 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 LABCOL = AttributesEnum.Labcol.index(); public static final int TITLE = AttributesEnum.Title.index(); public static final int ARTID = AttributesEnum.ArtId.index(); public static final int REFERENCETYPE = AttributesEnum.ReferenceType.index(); public static final int READINGORDER = AttributesEnum.ReadingOrder.index(); public static final int VIRTUALBOOK1 = AttributesEnum.VirtualBook1.index(); public static final int VBOOKUNIFORMTITLE2 = AttributesEnum.VbookUniformTitle2.index(); public static final int SEEUNIFORMTITLE = AttributesEnum.SeeUniformTitle.index(); public static final int SEEALSOUNIFORMTITLE1 = AttributesEnum.SeeAlsoUniformTitle1.index(); public static final int SEEALSOUNIFORMTITLE = AttributesEnum.SeeAlsoUniformTitle.index(); public static final int VIRTUALBOOK = AttributesEnum.VirtualBook.index(); public static final int VBOOKUNIFORMTITLE1 = AttributesEnum.VbookUniformTitle1.index(); public static final int DUMMYVO1 = AttributesEnum.DummyVO1.index(); /** This is the default constructor (do not remove). */ public UniformTitleImpl() {} /** @return the definition object for this instance class. */ public static synchronized EntityDefImpl getDefinitionObject() { if (mDefinitionObject == null) { mDefinitionObject = EntityDefImpl.findDefObject( "org.parsisys.tehranuniversity.library.model.eo.UniformTitle"); } return mDefinitionObject; } /** * Gets the attribute value for Labcol, using the alias name Labcol. * * @return the Labcol */ public Number getLabcol() { return (Number) getAttributeInternal(LABCOL); } /** * Sets <code>value</code> as the attribute value for Labcol. * * @param value value to set the Labcol */ public void setLabcol(Number value) { setAttributeInternal(LABCOL, value); } /** * Gets the attribute value for Title, using the alias name Title. * * @return the 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 ArtId, using the alias name ArtId. * * @return the ArtId */ public DBSequence getArtId() { return (DBSequence) getAttributeInternal(ARTID); } /** * Sets <code>value</code> as the attribute value for ArtId. * * @param value value to set the ArtId */ public void setArtId(DBSequence value) { setAttributeInternal(ARTID, value); } /** * Gets the attribute value for ReferenceType, using the alias name ReferenceType. * * @return the ReferenceType */ public Number getReferenceType() { return (Number) getAttributeInternal(REFERENCETYPE); } /** * Sets <code>value</code> as the attribute value for ReferenceType. * * @param value value to set the ReferenceType */ public void setReferenceType(Number value) { setAttributeInternal(REFERENCETYPE, value); } /** * Gets the attribute value for ReadingOrder, using the alias name ReadingOrder. * * @return the ReadingOrder */ public Number getReadingOrder() { return (Number) getAttributeInternal(READINGORDER); } /** * Sets <code>value</code> as the attribute value for ReadingOrder. * * @param value value to set the ReadingOrder */ public void setReadingOrder(Number value) { setAttributeInternal(READINGORDER, 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 getVirtualBook1() { return (RowIterator) getAttributeInternal(VIRTUALBOOK1); } /** @return the associated entity oracle.jbo.RowIterator. */ public RowIterator getVbookUniformTitle2() { return (RowIterator) getAttributeInternal(VBOOKUNIFORMTITLE2); } /** @return the associated entity SeeUniformTitleImpl. */ public SeeUniformTitleImpl getSeeUniformTitle() { return (SeeUniformTitleImpl) getAttributeInternal(SEEUNIFORMTITLE); } /** Sets <code>value</code> as the associated entity SeeUniformTitleImpl. */ public void setSeeUniformTitle(SeeUniformTitleImpl value) { setAttributeInternal(SEEUNIFORMTITLE, value); } /** @return the associated entity oracle.jbo.server.EntityImpl. */ public SeeAlsoUniformTitleImpl getSeeAlsoUniformTitle1() { return (SeeAlsoUniformTitleImpl) getAttributeInternal(SEEALSOUNIFORMTITLE1); } /** Sets <code>value</code> as the associated entity oracle.jbo.server.EntityImpl. */ public void setSeeAlsoUniformTitle1(SeeAlsoUniformTitleImpl value) { setAttributeInternal(SEEALSOUNIFORMTITLE1, value); } /** @return the associated entity oracle.jbo.RowIterator. */ public RowIterator getSeeAlsoUniformTitle() { return (RowIterator) getAttributeInternal(SEEALSOUNIFORMTITLE); } /** @return the associated entity oracle.jbo.RowIterator. */ public RowIterator getVirtualBook() { return (RowIterator) getAttributeInternal(VIRTUALBOOK); } /** @return the associated entity oracle.jbo.RowIterator. */ public RowIterator getVbookUniformTitle1() { return (RowIterator) getAttributeInternal(VBOOKUNIFORMTITLE1); } /** Gets the view accessor <code>RowSet</code> DummyVO1. */ public RowSet getDummyVO1() { return (RowSet) getAttributeInternal(DUMMYVO1); } /** * @param labcol key constituent * @param artId key constituent * @return a Key object based on given key constituents. */ public static Key createPrimaryKey(Number labcol, DBSequence artId) { return new Key(new Object[] {labcol, artId}); } /** Add locking logic here. */ public void lock() { super.lock(); } /** * Custom DML update/insert/delete logic here. * * @param operation the operation type * @param e the transaction event */ protected void doDML(int operation, TransactionEvent e) { try { if (operation != DML_DELETE) { setTitle(ParsiUtil.clearString(getTitle())); } if (operation == DML_INSERT) { if (chkDup()) throw new ParsiException("عنوان قراردادی تکراری است."); SequenceImpl si = new SequenceImpl("LIBRARY.SEQ_UNIFORM_TITLE_ART_ID", getDBTransaction()); setArtId(new DBSequence(si.getSequenceNumber())); } else if (operation == DML_UPDATE) { if (!ParsiUtil.stringToZeroValue(getTitle()).equals(getPostedAttribute(TITLE))) { if (chkDup()) throw new ParsiException("عنوان قراردادی تکراری است."); } } super.doDML(operation, e); } catch (Exception ex) { if (ex instanceof ParsiException) { throw new JboException(((ParsiException) ex).getMessage()); } else throw new JboException("خطا در ذخیره کردن رکورد عنوان قراردادی"); } } public boolean chkDup() { DummyVOImpl dummy = (DummyVOImpl) getDummyVO1().getViewObject(); dummy.setQuery( "select art_id from uniform_title where nvl(upper(title),'0')='" + ParsiUtil.stringToZeroValue(getTitle()).toUpperCase().replaceAll("'", "''") + "' and labcol=" + getDBTransaction().getSession().getUserData().get("labcolno")); dummy.executeQuery(); return dummy.hasNext(); } }