LotSpecialEquipContextValue.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 LotSpecialEquipContextValue extends AbstractContextValue {
public static final String SEPARATOR = ",";
private static final long serialVersionUID = -7284317113698194046L;
public LotSpecialEquipContextValue() {
this.setContextId(ContextNames.LOT_SPECIAL_EQUIP_CONTEXT);
}
/**
* @return the lotRrn
*/
@java.lang.Override
public Long getLotRrn() {
return NumberUtils.createLong(StringUtils.trimToNull(this.getContextKey5()));
}
/**
* @param lotRrn the lotRrn to set
*/
@java.lang.Override
public void setLotRrn(Long lotRrn) {
if (lotRrn != null) {
this.setContextKey5(lotRrn + "");
}
}
/**
* resultValue1
*
* @return the equipmentRrns
*/
public String getEquipmentRrns() {
return this.getResultValue1();
}
/**
* @param equipmentRrns the equipmentRrns to set
*/
public void setEquipmentRrns(String equipmentRrns) {
equipmentRrns = StringUtils.trimToUpperCase(equipmentRrns);
if (StringUtils.isNotBlank(equipmentRrns)) {
this.setResultValue1(equipmentRrns);
}
}
/**
* resultValue2
*
* @return the targetCheckEquipConstrain
*/
public boolean getCheckEquipConstrain() {
return StringUtils.equals("1", this.getResultValue2());
}
/**
* resultValue2
*
* @param targetCheckEquipConstrain
*/
public void setCheckEquipConstrain(boolean targetCheckEquipConstrain) {
if (targetCheckEquipConstrain) {
this.setResultValue2("1");
} else {
this.setResultValue2("0");
}
}
public String getRouteSeq() {
return this.getContextKey6();
}
public void setRouteSeq(String routeSeq) {
this.setContextKey6(routeSeq);
}
public void setOperationSeq(String operationSeq) {
this.setContextKey7(operationSeq);
}
public String getOPerationSeq() {
return this.getContextKey7();
}
}