pojo默认值调整,加入initDefaultValue()方法初始化默认值
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user