EdcLotContextValue.java
package com.mycim.valueobject.prp;
import com.mycim.framework.utils.lang.StringUtils;
import com.mycim.framework.utils.lang.math.NumberUtils;
import com.mycim.valueobject.consts.ContextNames;
/**
* @author andy
*/
public class EdcLotContextValue extends ContextValue {
public EdcLotContextValue() {
this.setContextId(ContextNames.EDC_CONTEXT_LOT);
}
/**
* @param contextRrn context id: {@value ContextNames#EDC_CONTEXT_LOT} RRN
*/
public EdcLotContextValue(long contextRrn) {
super(contextRrn);
}
/**
* @return the operationRrn
*/
public Long getOperationRrn() {
return NumberUtils.createLong(StringUtils.trimToNull(this.getContextKey1()));
}
/**
* @param operationRrn the operationRrn to set
*/
public void setOperationRrn(Long operationRrn) {
this.setContextKey1(StringUtils.toString(operationRrn));
}
/**
* @return the routeRrn
*/
public Long getRouteRrn() {
return NumberUtils.createLong(StringUtils.trimToNull(this.getContextKey2()));
}
/**
* @param routeRrn the routeRrn to set
*/
public void setRouteRrn(Long routeRrn) {
this.setContextKey2(StringUtils.toString(routeRrn));
}
/**
* @return the processRrn
*/
public Long getProcessRrn() {
return NumberUtils.createLong(StringUtils.trimToNull(this.getContextKey3()));
}
/**
* @param processRrn the processRrn to set
*/
public void setProcessRrn(Long processRrn) {
this.setContextKey3(StringUtils.toString(processRrn));
}
/**
* @return the productRrn
*/
public Long getProductRrn() {
return NumberUtils.createLong(StringUtils.trimToNull(this.getContextKey4()));
}
/**
* @param productRrn the productRrn to set
*/
public void setProductRrn(Long productRrn) {
this.setContextKey4(StringUtils.toString(productRrn));
}
public Long getEquipmentModel() {
return NumberUtils.createLong(StringUtils.trimToNull(this.getContextKey5()));
}
/**
* @param equipmentModel the equipmentModel to set
*/
public void setEquipmentModel(Long equipmentModel) {
this.setContextKey5(StringUtils.toString(equipmentModel));
}
public Long getMainEqpt() {
return NumberUtils.createLong(StringUtils.trimToNull(this.getContextKey6()));
}
/**
* @param mainEqpt the mainEqpt to set
*/
public void setMainEqpt(Long mainEqpt) {
this.setContextKey6(StringUtils.toString(mainEqpt));
}
/**
* @return the lotRrn
*/
public Long getLotRrn() {
return NumberUtils.createLong(StringUtils.trimToNull(this.getContextKey7()));
}
/**
* @param lotRrn the lotRrn to set
*/
public void setLotRrn(Long lotRrn) {
this.setContextKey7(StringUtils.toString(lotRrn));
}
/**
* @return the productFamilyRrn
*/
public Long getProductFamilyRrn() {
return NumberUtils.createLong(StringUtils.trimToNull(this.getContextKey8()));
}
/**
* @param productFamilyRrn the productFamilyRrn to set
*/
public void setProductFamilyRrn(Long productFamilyRrn) {
this.setContextKey8(StringUtils.toString(productFamilyRrn));
}
/**
* @return the actionPoint
*/
public String getActionPoint() {
return this.getContextKey9();
}
/**
* @param actionPoint the actionPoint to set
*/
public void setActionPoint(String actionPoint) {
this.setContextKey9(actionPoint);
}
/**
* @return the recipeRrn
*/
public Long getRecipeRrn() {
return NumberUtils.createLong(StringUtils.trimToNull(this.getContextKey10()));
}
/**
* @param recipeRrn the recipeRrn to set
*/
public void setRecipeRrn(Long recipeRrn) {
this.setContextKey10(StringUtils.toString(recipeRrn));
}
public String getRouteSeq() {
return this.getContextKey11();
}
public void setRouteSeq(String routeSeq) {
this.setContextKey11(routeSeq);
}
public void setOperationSeq(String operationSeq) {
this.setContextKey12(operationSeq);
}
public String getOperationSeq() {
return this.getContextKey12();
}
public Integer getProcessVersion() {
return NumberUtils.toInt(StringUtils.trimToNull(this.getContextKey13()));
}
public void setProcessVersion(Integer processVersion) {
this.setContextKey13(StringUtils.toString(processVersion));
}
/**
* @return the productVersion
*/
public Integer getProductVersion() {
return NumberUtils.createInteger(StringUtils.trimToNull(this.getContextKey14()));
}
/**
* @param productVersion the productVersion to set
*/
public void setProductVersion(Integer productVersion) {
this.setContextKey14(StringUtils.toString(productVersion));
}
/**
* @return the parameterSetRrn
*/
public Long getParameterSetRrn() {
return NumberUtils.createLong(StringUtils.trimToNull(this.getResultValue1()));
}
/**
* @param parameterSetRrn the parameterSetRrn to set
*/
public void setParameterSetRrn(Long parameterSetRrn) {
this.setResultValue1(StringUtils.toString(parameterSetRrn));
}
/**
* @return the returnRouteRrn
*/
public Long getReturnRouteRrn() {
return NumberUtils.createLong(StringUtils.trimToNull(this.getResultValue2()));
}
/**
* @param returnRouteRrn the returnRouteRrn to set
*/
public void setReturnRouteRrn(Long returnRouteRrn) {
this.setResultValue2(StringUtils.toString(returnRouteRrn));
}
/**
* @return the returnOperationRrn
*/
public Long getReturnOperationRrn() {
return NumberUtils.createLong(StringUtils.trimToNull(this.getResultValue3()));
}
/**
* @param returnOperationRrn the returnOperationRrn to set
*/
public void setReturnOperationRrn(Long returnOperationRrn) {
this.setResultValue3(StringUtils.toString(returnOperationRrn));
}
/**
* @return the parameterSetSpecRrn
*/
public Long getParameterSetSpecRrn() {
String parameterSerSpecStr = StringUtils.trimToNull(this.getResultValue4());
if (NumberUtils.isCreatable(parameterSerSpecStr)) {
return NumberUtils.createLong(parameterSerSpecStr);
}
return null;
}
/**
* @param parameterSetSpecRrn the parameterSetSpecRrn to set
*/
public void setParameterSetSpecRrn(Long parameterSetSpecRrn) {
this.setResultValue4(StringUtils.toString(parameterSetSpecRrn));
}
public Long getAttributeNameRrn() {
return NumberUtils.createLong(StringUtils.trimToNull(this.getResultValue5()));
}
public void setAttributeNameRrn(Long attributeNameRrn) {
this.setResultValue5(StringUtils.toString(attributeNameRrn));
}
}