OperationDESCContextValue.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;
public class OperationDESCContextValue extends ContextValue {
private static final long serialVersionUID = 1L;
public OperationDESCContextValue() {
this.setContextId(ContextNames.OPERATION_CSEC_CONTEXT);
}
/**
* @param contextRrn context id: {@value ContextNames#OPERATION_CSEC_CONTEXT} RRN
*/
public OperationDESCContextValue(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 Integer getProcessVersion() {
return NumberUtils.toInt(StringUtils.trimToNull(this.getContextKey8()));
}
public void setProcessVersion(Integer processVersion) {
this.setContextKey8(StringUtils.toString(processVersion));
}
public String getPollutionLevel() {
return StringUtils.trimToNull(this.getResultValue3());
}
public void setPollutionLevel(String pollutionLevel) {
if (StringUtils.isNotBlank(pollutionLevel)) {
this.setResultValue3(pollutionLevel);
}
}
public String getOperationType() {
return StringUtils.trimToNull(this.getResultValue5());
}
public void setOperationType(String operationType) {
if (StringUtils.isNotBlank(operationType)) {
this.setResultValue5(operationType);
}
}
public String getWorkArea() {
return StringUtils.trimToNull(this.getResultValue6());
}
public void setWorkArea(String workArea) {
if (StringUtils.isNotBlank(workArea)) {
this.setResultValue6(workArea);
}
}
}