pojo默认值调整,加入initDefaultValue()方法初始化默认值

This commit is contained in:
wangxin
2018-02-23 09:34:58 +08:00
parent 3a0e011c05
commit 4544cbc78b
49 changed files with 408 additions and 550 deletions

View File

@@ -16,7 +16,6 @@ package com.nis.domain.configuration;
* @version V1.0
*/
public class RtmpUrlCfg extends BaseStringCfg{
/**
* @Fields serialVersionUID:TODO用一句话描述这个变量表示什么
*
@@ -24,42 +23,16 @@ public class RtmpUrlCfg extends BaseStringCfg{
*/
private static final long serialVersionUID = 6332351898872775040L;
/**
* url地址
*/
private String cfgKeywords;
/**
* cfgKeywords
* @return cfgKeywords
*/
public String getCfgKeywords() {
return cfgKeywords;
}
/**
* @param cfgKeywords the cfgKeywords to set
*/
public void setCfgKeywords(String cfgKeywords) {
this.cfgKeywords = cfgKeywords;
}
/* (non-Javadoc)
* @see com.nis.domain.restful.BaseStringConfig#getExprType()
* @see com.nis.domain.configuration.BaseStringCfg#initDefaultValue()
*/
@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.exprType=0;
this.matchMethod=0;
}
}