增强字符串类,数值类POJO默认值设置调整
This commit is contained in:
@@ -8,8 +8,6 @@
|
||||
*/
|
||||
package com.nis.domain.configuration;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
/**
|
||||
* @ClassName: MailAttachContentConfig.java
|
||||
* @Description: TODO
|
||||
@@ -18,7 +16,6 @@ import org.apache.commons.lang3.StringUtils;
|
||||
* @version V1.0
|
||||
*/
|
||||
public class MailAttachContentCfg extends ComplexkeywordCfg {
|
||||
public static final String tableName="mail_attach_content_cfg";
|
||||
/**
|
||||
* @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么)
|
||||
*
|
||||
@@ -27,33 +24,16 @@ public class MailAttachContentCfg extends ComplexkeywordCfg {
|
||||
|
||||
private static final long serialVersionUID = -5535627006599408223L;
|
||||
/* (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 "AttachContent";
|
||||
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 0;
|
||||
else
|
||||
return this.matchMethod;
|
||||
public void initDefaultValue() {
|
||||
// TODO Auto-generated method stub
|
||||
super.initDefaultValue();
|
||||
this.district="AttachContent";
|
||||
this.exprType=0;
|
||||
this.matchMethod=0;
|
||||
this.isHexbin=0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user