ProcessSpecItem.java

package com.mycim.valueobject.prp;

import java.io.Serializable;
import java.sql.Timestamp;

public class ProcessSpecItem implements Serializable {

    private Long processRrn;

    private String processId;

    private Integer processVersion;

    private Long routeRrn;

    private String routeId;

    private Integer routeVersion;

    private String routeSeq;

    private Long operationRrn;

    private String operationId;

    private String operationDesc;

    private String operationType;

    private String operationSeq;

    private String flowSeq;

    private String workArea;

    private String stageId;

    private Long recipeRrn;

    private String recipeId;

    private Long reticleFamilyRrn;

    private String reticleFamilyId;

    private Long parameterSetRrn;

    private String parameterSetId;

    private Long equipmentGroupRrn;

    private String equipmentGroupId;

    private String pollutionLevel;

    private String processLocation;

    private String bankFlag;

    private String flipType;

    private String cpDefine;

    private Boolean isCopyFromLastVer = false;

    private Boolean variableFlag = false; // true----have variable,false----no varialble info

    private Long ecnRrn;

    private String status;

    private Timestamp effectiveTime;

    private Timestamp terminatedTime;

    private String createdUser;

    private Timestamp createdTime;

    private String updatedUser;

    private Timestamp updatedTime;

    private String equipmentGroupRrns;


    public ProcessSpecItem() {
    }

    /**
     *  PrimaryKey
     */
    public ProcessSpecItem(Long processRrn, Integer processVersion, Long routeRrn, Long operationRrn) {
        this.processRrn = processRrn;
        this.processVersion = processVersion;
        this.routeRrn = routeRrn;
        this.operationRrn = operationRrn;
    }

    /**
     * @return the processRrn
     */
    public Long getProcessRrn() {
        return processRrn;
    }

    /**
     * @param processRrn the processRrn to set
     */
    public void setProcessRrn(Long processRrn) {
        this.processRrn = processRrn;
    }

    /**
     * @return the processId
     */
    public String getProcessId() {
        return processId;
    }

    /**
     * @param processId the processId to set
     */
    public void setProcessId(String processId) {
        this.processId = processId;
    }

    /**
     * @return the processVersion
     */
    public Integer getProcessVersion() {
        return processVersion;
    }

    /**
     * @param processVersion the processVersion to set
     */
    public void setProcessVersion(Integer processVersion) {
        this.processVersion = processVersion;
    }

    /**
     * @return the routeRrn
     */
    public Long getRouteRrn() {
        return routeRrn;
    }

    /**
     * @param routeRrn the routeRrn to set
     */
    public void setRouteRrn(Long routeRrn) {
        this.routeRrn = routeRrn;
    }

    /**
     * @return the routeId
     */
    public String getRouteId() {
        return routeId;
    }

    /**
     * @param routeId the routeId to set
     */
    public void setRouteId(String routeId) {
        this.routeId = routeId;
    }

    /**
     * @return the routeVersion
     */
    public Integer getRouteVersion() {
        return routeVersion;
    }

    /**
     * @param routeVersion the routeVersion to set
     */
    public void setRouteVersion(Integer routeVersion) {
        this.routeVersion = routeVersion;
    }

    /**
     * @return the routeSeq
     */
    public String getRouteSeq() {
        return routeSeq;
    }

    /**
     * @param routeSeq the routeSeq to set
     */
    public void setRouteSeq(String routeSeq) {
        this.routeSeq = routeSeq;
    }

    /**
     * @return the operationRrn
     */
    public Long getOperationRrn() {
        return operationRrn;
    }

    /**
     * @param operationRrn the operationRrn to set
     */
    public void setOperationRrn(Long operationRrn) {
        this.operationRrn = operationRrn;
    }

    /**
     * @return the operationId
     */
    public String getOperationId() {
        return operationId;
    }

    /**
     * @param operationId the operationId to set
     */
    public void setOperationId(String operationId) {
        this.operationId = operationId;
    }

    /**
     * @return the operationDesc
     */
    public String getOperationDesc() {
        return operationDesc;
    }

    /**
     * @param operationDesc the operationDesc to set
     */
    public void setOperationDesc(String operationDesc) {
        this.operationDesc = operationDesc;
    }

    /**
     * @return the operationType
     */
    public String getOperationType() {
        return operationType;
    }

    /**
     * @param operationType the operationType to set
     */
    public void setOperationType(String operationType) {
        this.operationType = operationType;
    }

    /**
     * @return the operationSeq
     */
    public String getOperationSeq() {
        return operationSeq;
    }

    /**
     * @param operationSeq the operationSeq to set
     */
    public void setOperationSeq(String operationSeq) {
        this.operationSeq = operationSeq;
    }

    /**
     * @return the flowSeq
     */
    public String getFlowSeq() {
        return flowSeq;
    }

    /**
     * @param flowSeq the flowSeq to set
     */
    public void setFlowSeq(String flowSeq) {
        this.flowSeq = flowSeq;
    }

    /**
     * @return the workArea
     */
    public String getWorkArea() {
        return workArea;
    }

    /**
     * @param workArea the workArea to set
     */
    public void setWorkArea(String workArea) {
        this.workArea = workArea;
    }

    /**
     * @return the stageId
     */
    public String getStageId() {
        return stageId;
    }

    /**
     * @param stageId the stageId to set
     */
    public void setStageId(String stageId) {
        this.stageId = stageId;
    }

    /**
     * @return the recipeRrn
     */
    public Long getRecipeRrn() {
        return recipeRrn;
    }

    /**
     * @param recipeRrn the recipeRrn to set
     */
    public void setRecipeRrn(Long recipeRrn) {
        this.recipeRrn = recipeRrn;
    }

    /**
     * @return the recipeId
     */
    public String getRecipeId() {
        return recipeId;
    }

    /**
     * @param recipeId the recipeId to set
     */
    public void setRecipeId(String recipeId) {
        this.recipeId = recipeId;
    }

    /**
     * @return the reticleFamilyRrn
     */
    public Long getReticleFamilyRrn() {
        return reticleFamilyRrn;
    }

    /**
     * @param reticleFamilyRrn the reticleFamilyRrn to set
     */
    public void setReticleFamilyRrn(Long reticleFamilyRrn) {
        this.reticleFamilyRrn = reticleFamilyRrn;
    }

    /**
     * @return the reticleFamilyId
     */
    public String getReticleFamilyId() {
        return reticleFamilyId;
    }

    /**
     * @param reticleFamilyId the reticleFamilyId to set
     */
    public void setReticleFamilyId(String reticleFamilyId) {
        this.reticleFamilyId = reticleFamilyId;
    }

    /**
     * @return the parameterSetRrn
     */
    public Long getParameterSetRrn() {
        return parameterSetRrn;
    }

    /**
     * @param parameterSetRrn the parameterSetRrn to set
     */
    public void setParameterSetRrn(Long parameterSetRrn) {
        this.parameterSetRrn = parameterSetRrn;
    }

    /**
     * @return the parameterSetId
     */
    public String getParameterSetId() {
        return parameterSetId;
    }

    /**
     * @param parameterSetId the parameterSetId to set
     */
    public void setParameterSetId(String parameterSetId) {
        this.parameterSetId = parameterSetId;
    }

    /**
     * @return the equipmentGroupRrn
     */
    public Long getEquipmentGroupRrn() {
        return equipmentGroupRrn;
    }

    /**
     * @param equipmentGroupRrn the equipmentGroupRrn to set
     */
    public void setEquipmentGroupRrn(Long equipmentGroupRrn) {
        this.equipmentGroupRrn = equipmentGroupRrn;
    }

    /**
     * @return the equipmentGroupId
     */
    public String getEquipmentGroupId() {
        return equipmentGroupId;
    }

    /**
     * @param equipmentGroupId the equipmentGroupId to set
     */
    public void setEquipmentGroupId(String equipmentGroupId) {
        this.equipmentGroupId = equipmentGroupId;
    }

    /**
     * @return the pollutionLevel
     */
    public String getPollutionLevel() {
        return pollutionLevel;
    }

    /**
     * @param pollutionLevel the pollutionLevel to set
     */
    public void setPollutionLevel(String pollutionLevel) {
        this.pollutionLevel = pollutionLevel;
    }

    /**
     * @return the processLocation
     */
    public String getProcessLocation() {
        return processLocation;
    }

    /**
     * @param processLocation the processLocation to set
     */
    public void setProcessLocation(String processLocation) {
        this.processLocation = processLocation;
    }

    /**
     * @return the bankFlag
     */
    public String getBankFlag() {
        return bankFlag;
    }

    /**
     * @param bankFlag the bankFlag to set
     */
    public void setBankFlag(String bankFlag) {
        this.bankFlag = bankFlag;
    }

    /**
     * @return the flipType
     */
    public String getFlipType() {
        return flipType;
    }

    /**
     * @param flipType the flipType to set
     */
    public void setFlipType(String flipType) {
        this.flipType = flipType;
    }

    /**
     * @return the cpDefine
     */
    public String getCpDefine() {
        return cpDefine;
    }

    /**
     * @param cpDefine the cpDefine to set
     */
    public void setCpDefine(String cpDefine) {
        this.cpDefine = cpDefine;
    }

    public Boolean getIsCopyFromLastVer() {
        return isCopyFromLastVer;
    }

    public void setIsCopyFromLastVer(Boolean isCopyFromLastVer) {
        this.isCopyFromLastVer = isCopyFromLastVer;
    }

    /**
     * @return the ecnRrn
     */
    public Long getEcnRrn() {
        return ecnRrn;
    }

    /**
     * @param ecnRrn the ecnRrn to set
     */
    public void setEcnRrn(Long ecnRrn) {
        this.ecnRrn = ecnRrn;
    }

    /**
     * @return the status
     */
    public String getStatus() {
        return status;
    }

    /**
     * @param status the status to set
     */
    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * @return the effectiveTime
     */
    public Timestamp getEffectiveTime() {
        return effectiveTime;
    }

    /**
     * @param effectiveTime the effectiveTime to set
     */
    public void setEffectiveTime(Timestamp effectiveTime) {
        this.effectiveTime = effectiveTime;
    }

    /**
     * @return the terminatedTime
     */
    public Timestamp getTerminatedTime() {
        return terminatedTime;
    }

    /**
     * @param terminatedTime the terminatedTime to set
     */
    public void setTerminatedTime(Timestamp terminatedTime) {
        this.terminatedTime = terminatedTime;
    }

    /**
     * @return the createdUser
     */
    public String getCreatedUser() {
        return createdUser;
    }

    /**
     * @param createdUser the createdUser to set
     */
    public void setCreatedUser(String createdUser) {
        this.createdUser = createdUser;
    }

    /**
     * @return the createdTime
     */
    public Timestamp getCreatedTime() {
        return createdTime;
    }

    /**
     * @param createdTime the createdTime to set
     */
    public void setCreatedTime(Timestamp createdTime) {
        this.createdTime = createdTime;
    }

    /**
     * @return the updatedUser
     */
    public String getUpdatedUser() {
        return updatedUser;
    }

    /**
     * @param updatedUser the updatedUser to set
     */
    public void setUpdatedUser(String updatedUser) {
        this.updatedUser = updatedUser;
    }

    /**
     * @return the updatedTime
     */
    public Timestamp getUpdatedTime() {
        return updatedTime;
    }

    /**
     * @param updatedTime the updatedTime to set
     */
    public void setUpdatedTime(Timestamp updatedTime) {
        this.updatedTime = updatedTime;
    }

    public Boolean getVariableFlag() {
        return variableFlag;
    }

    public void setVariableFlag(Boolean variableFlag) {
        if ((this.variableFlag != null || !this.variableFlag) && variableFlag) {
            this.variableFlag = variableFlag;
        }
    }

    public String getEquipmentGroupRrns() {
        return equipmentGroupRrns;
    }

    public void setEquipmentGroupRrns(String equipmentGroupRrns) {
        this.equipmentGroupRrns = equipmentGroupRrns;
    }

    @java.lang.Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((processRrn == null) ? 0 : processRrn.hashCode());
        result = prime * result + ((processVersion == null) ? 0 : processVersion.hashCode());
        result = prime * result + ((routeRrn == null) ? 0 : routeRrn.hashCode());
        result = prime * result + ((operationRrn == null) ? 0 : operationRrn.hashCode());
        return result;
    }

    @java.lang.Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        ProcessSpecItem other = (ProcessSpecItem) obj;
        if (processRrn == null) {
            if (other.processRrn != null) {
                return false;
            }
        } else if (!processRrn.equals(other.processRrn)) {
            return false;
        }
        if (processVersion == null) {
            if (other.processVersion != null) {
                return false;
            }
        } else if (!processVersion.equals(other.processVersion)) {
            return false;
        }
        if (routeRrn == null) {
            if (other.routeRrn != null) {
                return false;
            }
        } else if (!routeRrn.equals(other.routeRrn)) {
            return false;
        }
        if (operationRrn == null) {
            if (other.operationRrn != null) {
                return false;
            }
        } else if (!operationRrn.equals(other.operationRrn)) {
            return false;
        }
        return true;
    }

    @java.lang.Override
    public String toString() {
        return "ProcessSpecItem [processRrn=" + processRrn + ", processId=" + processId + ", processVersion=" +
                processVersion + ", routeRrn=" + routeRrn + ", routeId=" + routeId + ", routeVersion=" + routeVersion +
                ", routeSeq=" + routeSeq + ", operationRrn=" + operationRrn + ", " + "operationId=" + operationId +
                ", operationDesc=" + operationDesc + ", operationType=" + operationType + ", operationSeq=" +
                operationSeq + ", flowSeq=" + flowSeq + ", workArea=" + workArea + ", stageId=" + stageId +
                ", recipeRrn=" + recipeRrn + ", recipeId=" + recipeId + ", reticleFamilyRrn=" + reticleFamilyRrn +
                ", reticleFamilyId=" + reticleFamilyId + ", parameterSetRrn=" + parameterSetRrn + ", parameterSetId=" +
                parameterSetId + ", equipmentGroupRrn=" + equipmentGroupRrn + ", equipmentGroupId=" + equipmentGroupId +
                ", pollutionLevel=" + pollutionLevel + ", processLocation=" + processLocation + ", " + "bankFlag=" +
                bankFlag + ", cpDefine=" + cpDefine + ", ecnRrn=" + ecnRrn + ", status=" + status + ", effectiveTime=" +
                effectiveTime + ", terminatedTime=" + terminatedTime + ", createdUser=" + createdUser +
                ", createdTime=" + createdTime + ", updatedUser=" + updatedUser + ", updatedTime=" + updatedTime + "]";
    }

}