com.github.dactiv.showcase.entity.foundation.variable
类 DataDictionary

java.lang.Object
  继承者 com.github.dactiv.showcase.entity.IdEntity
      继承者 com.github.dactiv.showcase.entity.foundation.variable.DataDictionary
所有已实现的接口:
Serializable

@Entity
public class DataDictionary
extends IdEntity

数据字典实体

作者:
maurice
另请参见:
序列化表格

字段摘要
 DictionaryCategory category
           
 
从类 com.github.dactiv.showcase.entity.IdEntity 继承的字段
id
 
构造方法摘要
DataDictionary()
           
DataDictionary(String name, String value, String type)
           
 
方法摘要
 DictionaryCategory getCategory()
          获取所属类别
 String getName()
          获取名称
 Object getReadValue()
          根据type属性的值获取真正的值
 String getRemark()
          获取备注
 String getType()
          获取值类型
 String getValue()
          获取值
 void setCategory(DictionaryCategory category)
          设置所属类别
 void setName(String name)
          设置名称
 void setRemark(String remark)
          设置备注
 void setType(String type)
          设置值类型
 void setValue(String value)
          设置值
 
从类 com.github.dactiv.showcase.entity.IdEntity 继承的方法
getId, setId
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

category

public DictionaryCategory category
构造方法详细信息

DataDictionary

public DataDictionary()

DataDictionary

public DataDictionary(String name,
                      String value,
                      String type)
方法详细信息

getName

@NotEmpty
@Length(max=256)
public String getName()
获取名称

返回:
String

setName

public void setName(String name)
设置名称

参数:
name -

getValue

@NotEmpty
@Length(max=32)
public String getValue()
获取值

返回:
String

setValue

public void setValue(String value)
设置值

参数:
value - 值

getType

@NotEmpty
@Length(max=1)
public String getType()
获取值类型

返回:
String

setType

public void setType(String type)
设置值类型

参数:
type - 值类型

getRemark

@Length(max=512)
public String getRemark()
获取备注

返回:
String

setRemark

public void setRemark(String remark)
设置备注

参数:
remark - 备注

getCategory

public DictionaryCategory getCategory()
获取所属类别

返回:
DictionaryCategory

setCategory

public void setCategory(DictionaryCategory category)
设置所属类别

参数:
category - 所属类别

getReadValue

public Object getReadValue()
根据type属性的值获取真正的值

返回:
Object


Copyright © 2014. All rights reserved.