|
package com.consum.model.po;
|
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
import com.walker.jdbc.BasePo;
|
|
/**
|
* 表名:BASE_CODE_INDEXING *
|
* @author genrator
|
*/
|
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
|
public class BaseCodeIndexing extends BasePo<BaseCodeIndexing> {
|
// 序列化版本号
|
private static final long serialVersionUID = 1L;
|
|
// 主键
|
private Long id = null;
|
@JsonIgnore
|
protected boolean isset_id = false;
|
|
// 属性列表
|
private Integer yearIndex = null;
|
@JsonIgnore
|
protected boolean isset_yearIndex = false;
|
|
private Integer monthIndex = null;
|
@JsonIgnore
|
protected boolean isset_monthIndex = false;
|
|
private Integer dayIndex = null;
|
@JsonIgnore
|
protected boolean isset_dayIndex = false;
|
|
private Integer codeIndex = null;
|
@JsonIgnore
|
protected boolean isset_codeIndex = false;
|
|
private String codePrefix = null;
|
@JsonIgnore
|
protected boolean isset_codePrefix = false;
|
|
/**
|
* 默认构造函数
|
*/
|
public BaseCodeIndexing() {
|
}
|
|
/**
|
* 根据主键构造对象
|
*/
|
public BaseCodeIndexing(Long id) {
|
this.setId(id);
|
}
|
|
/**
|
* 设置主键值
|
*/
|
@Override
|
public void setPkValue(Object value) {
|
this.setId((Long) value);
|
}
|
|
public Long getId() {
|
return this.id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
this.isset_id = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyId() {
|
return this.id == null;
|
}
|
|
public Integer getYearIndex() {
|
return this.yearIndex;
|
}
|
|
public void setYearIndex(Integer yearIndex) {
|
this.yearIndex = yearIndex;
|
this.isset_yearIndex = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyYearIndex() {
|
return this.yearIndex == null;
|
}
|
|
public Integer getMonthIndex() {
|
return this.monthIndex;
|
}
|
|
public void setMonthIndex(Integer monthIndex) {
|
this.monthIndex = monthIndex;
|
this.isset_monthIndex = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyMonthIndex() {
|
return this.monthIndex == null;
|
}
|
|
public Integer getDayIndex() {
|
return this.dayIndex;
|
}
|
|
public void setDayIndex(Integer dayIndex) {
|
this.dayIndex = dayIndex;
|
this.isset_dayIndex = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyDayIndex() {
|
return this.dayIndex == null;
|
}
|
|
public Integer getCodeIndex() {
|
return this.codeIndex;
|
}
|
|
public void setCodeIndex(Integer codeIndex) {
|
this.codeIndex = codeIndex;
|
this.isset_codeIndex = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyCodeIndex() {
|
return this.codeIndex == null;
|
}
|
|
public String getCodePrefix() {
|
return this.codePrefix;
|
}
|
|
public void setCodePrefix(String codePrefix) {
|
this.codePrefix = codePrefix;
|
this.isset_codePrefix = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyCodePrefix() {
|
return this.codePrefix == null || this.codePrefix.length() == 0;
|
}
|
|
/**
|
* 重写 toString() 方法
|
*/
|
@Override
|
public String toString() {
|
return new StringBuilder()
|
.append("id=").append(this.id)
|
.append("yearIndex=").append(this.yearIndex)
|
.append("monthIndex=").append(this.monthIndex)
|
.append("dayIndex=").append(this.dayIndex)
|
.append("codeIndex=").append(this.codeIndex)
|
.append("codePrefix=").append(this.codePrefix)
|
.toString();
|
}
|
|
/**
|
* 克隆
|
*/
|
public BaseCodeIndexing $clone() {
|
BaseCodeIndexing base_code_indexing = new BaseCodeIndexing();
|
|
// 数据库名称
|
//base_code_indexing.setDatabaseName_(this.getDatabaseName_());
|
|
// 主键
|
if (this.isset_id) {
|
base_code_indexing.setId(this.getId());
|
}
|
// 普通属性
|
if (this.isset_yearIndex) {
|
base_code_indexing.setYearIndex(this.getYearIndex());
|
}
|
if (this.isset_monthIndex) {
|
base_code_indexing.setMonthIndex(this.getMonthIndex());
|
}
|
if (this.isset_dayIndex) {
|
base_code_indexing.setDayIndex(this.getDayIndex());
|
}
|
if (this.isset_codeIndex) {
|
base_code_indexing.setCodeIndex(this.getCodeIndex());
|
}
|
if (this.isset_codePrefix) {
|
base_code_indexing.setCodePrefix(this.getCodePrefix());
|
}
|
return base_code_indexing;
|
}
|
}
|