AbstractContextValue.java
package com.mycim.valueobject.prp;
import com.mycim.framework.utils.lang.StringUtils;
import com.mycim.framework.utils.lang.math.NumberUtils;
/**
* @author andy
*/
public class AbstractContextValue extends ContextValue {
/**
*
*/
public AbstractContextValue() {
super();
}
/**
* @param contextRrn
*/
public AbstractContextValue(long contextRrn) {
super(contextRrn);
}
/**
* @return the productRrn
*/
public Long getProductRrn() {
return NumberUtils.createLong(StringUtils.trimToNull(this.getContextKey1()));
}
/**
* @param productRrn the productRrn to set
*/
public void setProductRrn(Long productRrn) {
if (productRrn != null) {
this.setContextKey1(productRrn + "");
}
}
/**
* @return the processRrn
*/
public Long getProcessRrn() {
return NumberUtils.createLong(StringUtils.trimToNull(this.getContextKey2()));
}
/**
* @param processRrn the processRrn to set
*/
public void setProcessRrn(Long processRrn) {
if (processRrn != null) {
this.setContextKey2(processRrn + "");
}
}
/**
* @return the routeRrn
*/
public Long getRouteRrn() {
return NumberUtils.createLong(StringUtils.trimToNull(this.getContextKey3()));
}
/**
* @param routeRrn the routeRrn to set
*/
public void setRouteRrn(Long routeRrn) {
if (routeRrn != null) {
this.setContextKey3(routeRrn + "");
}
}
/**
* @return the operationRrn
*/
public Long getOperationRrn() {
return NumberUtils.createLong(StringUtils.trimToNull(this.getContextKey4()));
}
/**
* @param operationRrn the operationRrn to set
*/
public void setOperationRrn(Long operationRrn) {
if (operationRrn != null) {
this.setContextKey4(operationRrn + "");
} else {
this.setContextKey4(null);
}
}
/**
* @return the RecipeRrn
*/
public Long getRecipeRrn() {
return NumberUtils.createLong(StringUtils.trimToNull(this.getContextKey5()));
}
/**
* @param recipeRrn the recipeRrn to set
*/
public void setRecipeRrn(Long recipeRrn) {
if (recipeRrn != null) {
this.setContextKey5(recipeRrn + "");
}
}
/**
* @return the equipmentRrn
*/
public Long getEquipmentRrn() {
return NumberUtils.createLong(StringUtils.trimToNull(this.getContextKey6()));
}
/**
* @param equipmentRrn the equipmentRrn to set
*/
public void setEquipmentRrn(Long equipmentRrn) {
if (equipmentRrn != null) {
this.setContextKey6(equipmentRrn + "");
}
}
/**
* @return the lotRrn
*/
public Long getLotRrn() {
return NumberUtils.createLong(StringUtils.trimToNull(this.getContextKey7()));
}
/**
* @param lotRrn the lotRrn to set
*/
public void setLotRrn(Long lotRrn) {
if (lotRrn != null) {
this.setContextKey7(lotRrn + "");
}
}
}