LotSpecialReticleContextValue.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 LotSpecialReticleContextValue extends AbstractContextValue {

    public static final String SEPARATOR = ",";

    private static final long serialVersionUID = 144890773151463011L;

    public LotSpecialReticleContextValue() {
        this.setContextId(ContextNames.LOT_SPECIAL_RETICLE_CONTEXT);
    }

    /**
     * @return the lotRrn
     */
    public Long getLotRrn() {
        return NumberUtils.createLong(StringUtils.trimToNull(this.getContextKey5()));
    }

    /**
     * @param lotRrn the lotRrn to set
     */
    public void setLotRrn(Long lotRrn) {
        if (lotRrn != null) {
            this.setContextKey5(lotRrn + "");
        }
    }

    /**
     * @return the reticleRrns
     */
    public String getReticleRrns() {
        return this.getResultValue1();
    }

    /**
     * @param reticleRrns the reticleRrns to set
     */
    public void setReticleRrns(String reticleRrns) {
        reticleRrns = StringUtils.trimToUpperCase(reticleRrns);
        if (StringUtils.isNotBlank(reticleRrns)) {
            this.setResultValue1(reticleRrns);
        }
    }

    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();
    }

}