EntityReservation.java
/*
* @ Copyright 2001 FA Software;
* All right reserved. No part of this program may be reproduced or
* transmitted in any form or by any means, electronic or
* mechanical, including photocopying, recording, or by any
* information storage or retrieval system without written
* permission from FA Software, except for inclusion of brief
* quotations in a review.
*/
package com.mycim.valueobject.ems;
import com.mycim.valueobject.bas.NamedObject;
import java.sql.Timestamp;
public class EntityReservation extends NamedObject {
// --------------------------------------------------------- Instance Variables
private String entityId;
private Long sequenceNumber;
private String reservationType;
private Long reservationForRrn;
private String reservationForId;
private Timestamp expectedStartTimestamp;
private String expectedStartTimestampStr;
private Timestamp expectedEndTimestamp;
private String expectedEndTimestampStr;
private String waitForCompletionFlag;
private Long alarmRrn;
private String alarmId;
// --------------------------------------------------------constructor
public EntityReservation() {
}
public EntityReservation(String instanceId, String namedSpace, String object) {
super(instanceId, namedSpace, object);
}
// --------------------------------------------------------- Properties
public String getEntityId() {
return this.entityId;
}
public void setEntityId(String entityId) {
this.entityId = entityId;
}
public Long getSequenceNumber() {
return this.sequenceNumber;
}
public void setSequenceNumber(Long sequenceNumber) {
this.sequenceNumber = sequenceNumber;
}
public String getReservationType() {
return this.reservationType;
}
public void setReservationType(String reservationType) {
this.reservationType = reservationType;
}
public Long getReservationForRrn() {
return this.reservationForRrn;
}
public void setReservationForRrn(Long reservationForRrn) {
this.reservationForRrn = reservationForRrn;
}
public String getReservationForId() {
return this.reservationForId;
}
public void setReservationForId(String reservationForId) {
this.reservationForId = reservationForId;
}
public Timestamp getExpectedStartTimestamp() {
return this.expectedStartTimestamp;
}
public void setExpectedStartTimestamp(Timestamp expectedStartTimestamp) {
this.expectedStartTimestamp = expectedStartTimestamp;
}
public Timestamp getExpectedEndTimestamp() {
return this.expectedEndTimestamp;
}
public void setExpectedEndtTimestamp(Timestamp expectedEndTimestamp) {
this.expectedEndTimestamp = expectedEndTimestamp;
}
public String getExpectedStartTimestampStr() {
return this.expectedStartTimestampStr;
}
public void setExpectedStartTimestampStr(String expectedStartTimestampStr) {
this.expectedStartTimestampStr = expectedStartTimestampStr;
}
public String getExpectedEndTimestampStr() {
return this.expectedEndTimestampStr;
}
public void setExpectedEndTimestampStr(String expectedEndTimestampStr) {
this.expectedEndTimestampStr = expectedEndTimestampStr;
}
public String getWaitForCompletionFlag() {
return this.waitForCompletionFlag;
}
public void setWaitForCompletionFlag(String waitForCompletionFlag) {
this.waitForCompletionFlag = waitForCompletionFlag;
}
public Long getAlarmRrn() {
return this.alarmRrn;
}
public void setAlarmRrn(Long alarmRrn) {
this.alarmRrn = alarmRrn;
}
public String getAlarmId() {
return this.alarmId;
}
public void setAlarmId(String alarmId) {
this.alarmId = alarmId;
}
@Override
public boolean equals(Object obj) {
if (this.getClass() != null && obj != null) {
if (this.getClass().equals(obj.getClass())) {
EntityReservation that = (EntityReservation) obj;
return (this.instanceRrn == that.instanceRrn) &&
(this.sequenceNumber != null && this.sequenceNumber.equals(that.sequenceNumber));
}
}
return false;
}
}
/*
* Modification Log Log No : Name : Modified Date: Description :
*/