ReworkRouteContextValue.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;
/**
* <pre>
* contextKey1 -> PRODUCT
* contextKey2 -> PROCESS
* contextKey3 -> ROUTE
* contextKey4 -> OPERATION
* contextKey5 -> ENTITY
* contextKey6 -> EQUIPMENTMODEL
* contextKey7 -> LOT
* contextKey8 -> FLD_PROCESS_VERSION
* </pre>
*
* <pre>
* resultValue1 -> rework ROUTE
* resultValue2 -> return ROUTE
* resultValue3 -> return OPERATION
* resultValue4 -> FLD_MAX_REWORK_TIMES
* </pre>
*/
public class ReworkRouteContextValue extends AbstractContextValue {
/**
*
*/
private static final long serialVersionUID = 1L;
public ReworkRouteContextValue() {
this.setContextId(ContextNames.REWORK_ROUTE_CONTEXT);
}
/**
* contextKey5
*
* @return
*/
public Long getEntityRrn() {
return NumberUtils.createLong(StringUtils.trimToNull(this.getContextKey5()));
}
/**
* contextKey5
*
* @param entityRrn
*/
public void setEntityRrn(Long entityRrn) {
if (entityRrn != null) {
this.setContextKey5(entityRrn.toString());
}
}
/**
* contextKey6
*
* @return
*/
public Long getEquipmentModelRrn() {
return NumberUtils.createLong(StringUtils.trimToNull(this.getContextKey6()));
}
/**
* contextKey6
*
* @param equipmentModelRrn
*/
public void setEquipmentModelRrn(Long equipmentModelRrn) {
if (equipmentModelRrn != null) {
this.setContextKey6(equipmentModelRrn.toString());
}
}
/**
* contextKey8
*
* @return
*/
public Integer getProcessVersion() {
return NumberUtils.createInteger(StringUtils.trimToNull(this.getContextKey8()));
}
/**
* contextKey8
*
* @param processVersion
*/
public void setProcessVersion(Integer processVersion) {
if (processVersion != null) {
this.setContextKey8(processVersion.toString());
}
}
/**
* resultValue1
*
* @return
*/
public Long getReworkRouteRrn() {
return NumberUtils.createLong(StringUtils.trimToNull(this.getResultValue1()));
}
/**
* resultValue1
*
* @param reworkRouteRrn
*/
public void setReworkRouteRrn(Long reworkRouteRrn) {
if (reworkRouteRrn != null) {
this.setResultValue1(reworkRouteRrn.toString());
}
}
/**
* resultValue2
*
* @return
*/
public Long getReturnRouteRrn() {
return NumberUtils.createLong(StringUtils.trimToNull(this.getResultValue2()));
}
/**
* resultValue2
*
* @param returnRouteRrn
*/
public void setReturnRouteRrn(Long returnRouteRrn) {
if (returnRouteRrn != null) {
this.setResultValue2(returnRouteRrn.toString());
}
}
/**
* resultValue3
*
* @return
*/
public Long getReturnOperationRrn() {
return NumberUtils.createLong(StringUtils.trimToNull(this.getResultValue3()));
}
/**
* resultValue3
*
* @param returnOperationRrn
*/
public void setReturnOperationRrn(Long returnOperationRrn) {
if (returnOperationRrn != null) {
this.setResultValue3(returnOperationRrn.toString());
}
}
/**
* resultValue4
*
* @return
*/
public Integer getMaxReworkTimes() {
return NumberUtils.createInteger(StringUtils.trimToNull(this.getResultValue4()));
}
/**
* resultValue4
*
* @param maxReworkTimes
*/
public void setMaxReworkTimes(Integer maxReworkTimes) {
if (maxReworkTimes != null) {
this.setResultValue4(maxReworkTimes.toString());
}
}
/**
* resultValue5
*
* @return
*/
public Integer getReworkRouteVersion() {
return NumberUtils.createInteger(StringUtils.trimToNull(this.getResultValue5()));
}
/**
* resultValue5
*
* @param reworkRouteVersion
*/
public void setReworkRouteVersion(Integer reworkRouteVersion) {
if (reworkRouteVersion != null) {
this.setResultValue5(reworkRouteVersion.toString());
}
}
/**
* resultValue6
*
* @return
*/
public String getCountWay() {
return this.getResultValue6();
}
/**
* resultValue6
*
* @param reworkWay
*/
public void setCountWay(String reworkWay) {
if (reworkWay != null) {
this.setResultValue6(reworkWay);
}
}
}