增强字符串类,数值类POJO默认值设置调整

This commit is contained in:
wangxin
2018-02-28 10:55:39 +08:00
parent 2103d3abf0
commit 553be71415
16 changed files with 227 additions and 334 deletions

View File

@@ -8,8 +8,6 @@
*/
package com.nis.domain.configuration;
import org.apache.commons.lang3.StringUtils;
/**
* @ClassName: SipTerminalConfig.java
* @Description: TODO
@@ -18,7 +16,6 @@ import org.apache.commons.lang3.StringUtils;
* @version V1.0
*/
public class SipTerminalCfg extends ComplexkeywordCfg{
public static final String tableName="sip_terminal_cfg";
/**
* @Fields serialVersionUID:TODO用一句话描述这个变量表示什么
*
@@ -28,33 +25,16 @@ public class SipTerminalCfg extends ComplexkeywordCfg{
private static final long serialVersionUID = 7164399463108973251L;
/* (non-Javadoc)
* @see com.nis.domain.restful.BaseEnhancedStringConfig#getDistrict()
* @see com.nis.domain.configuration.ComplexkeywordCfg#initDefaultValue()
*/
@Override
public String getDistrict() {
if(StringUtils.isBlank(this.district))
return "TERMINAL_CALL";
else
return this.district;
}
/* (non-Javadoc)
* @see com.nis.domain.restful.BaseStringConfig#getExprType()
*/
@Override
public Integer getExprType() {
if(this.exprType==null)
return 0;
else
return this.exprType;
}
/* (non-Javadoc)
* @see com.nis.domain.restful.BaseStringConfig#getMatchMethod()
*/
@Override
public Integer getMatchMethod() {
if(this.matchMethod==null)
return 3;
else
return this.matchMethod;
public void initDefaultValue() {
// TODO Auto-generated method stub
super.initDefaultValue();
this.district="TERMINAL_CALL";
this.exprType=0;
this.matchMethod=3;
this.isHexbin=0;
}
}