
@MappedSuperclass public abstract class BaseCode<T extends BaseCode> extends org.beangle.commons.entity.pojo.LongIdTimeObject implements Comparable<T>, org.beangle.commons.entity.pojo.TemporalActiveEntity
| Modifier and Type | Field and Description |
|---|---|
protected String |
code
基础代码的代码关键字
|
protected Date |
effectiveAt
生效时间
|
protected String |
engName
代码英文名称
|
protected Date |
invalidAt
失效时间
|
protected String |
name
代码中文名称
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(T arg0) |
void |
genIdFromCode() |
String |
getCode()
获得代码
|
Date |
getEffectiveAt()
获得生效时间
|
String |
getEngName()
获得英文名
|
Date |
getInvalidAt()
获得失效时间
|
String |
getName()
获得名称
|
boolean |
hasExtPros()
查询基础代码是否具有扩展属性,一般供子类使用。
|
void |
setCode(String code)
设置代码
|
void |
setEffectiveAt(Date effectiveAt)
设置生效时间
|
void |
setEngName(String engName)
设置英文名
|
void |
setInvalidAt(Date invalidAt)
设置失效时间
|
void |
setName(String name)
设置名称
|
String |
toString() |
getCreatedAt, getUpdatedAt, setCreatedAt, setUpdatedAtequals, getId, getIdentifier, hashCode, isPersisted, isTransient, setId@NotNull @Size(max=32) protected String code
@NotNull @Size(max=100) protected String name
@Size(max=100) protected String engName
@NotNull protected Date effectiveAt
protected Date invalidAt
public BaseCode()
public BaseCode(Long id)
public void genIdFromCode()
public boolean hasExtPros()
public String getCode()
public void setCode(String code)
code - 代码public String getName()
public void setName(String name)
name - 名称public String getEngName()
public void setEngName(String engName)
engName - 英文名public Date getEffectiveAt()
getEffectiveAt in interface org.beangle.commons.entity.pojo.TemporalActiveEntitypublic void setEffectiveAt(Date effectiveAt)
setEffectiveAt in interface org.beangle.commons.entity.pojo.TemporalActiveEntityeffectiveAt - 生效时间public Date getInvalidAt()
getInvalidAt in interface org.beangle.commons.entity.pojo.TemporalActiveEntitypublic void setInvalidAt(Date invalidAt)
setInvalidAt in interface org.beangle.commons.entity.pojo.TemporalActiveEntityinvalidAt - 失效时间public int compareTo(T arg0)
compareTo in interface Comparable<T extends BaseCode>Copyright © 2012 The Beangle Software Group. All Rights Reserved.