BankFlagContextValue.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 BankFlagContextValue extends ContextValue {
/**
*
*/
private static final long serialVersionUID = -1998092609915050943L;
public BankFlagContextValue() {
this.setContextId(ContextNames.BANK_FLAG_CONTEXT);
}
/**
* @param contextRrn context id: {@value ContextNames#BANK_FLAG_CONTEXT} RRN
*/
public BankFlagContextValue(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 version) {
this.setContextKey8(StringUtils.toString(version));
}
public String getBankFlag() {
return StringUtils.trimToNull(this.getResultValue1());
}
public void setBankFlag(String bankFlag) {
if (StringUtils.isNotBlank(bankFlag)) {
this.setResultValue1(bankFlag);
}
}
}