/**
* Copyright (c) 2002 Sinosoft Co.,LTD.
* All right reserved.
*/
package com.sinosoft.lis.schema;
import com.sinosoft.lis.pubfun.FDate;
import com.sinosoft.persistence.*;
import com.sinosoft.persistence.impl.SchemaHelper;
import com.sinosoft.utility.CErrors;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import java.util.Date;
/**
*
ClassName: LCAskTrackMainSchema
* Description: DB层 Schema 类文件
* Company: Sinosoft Co.,LTD
* @Database Schema2
* @author Makerx2
* @CreateDatetime 2019-03-16 16:05:10 639
*/
@Table(name = "LCAskTrackMain")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class LCAskTrackMainSchema extends Entity implements Schema, Cloneable {
// @Field
@Getter
@Setter
@Id
@Column(index = 0, name = "GrpContNo", desc = "集体合同号码", type = Schema.TYPE_STRING)
private String grpContNo;
@Getter
@Setter
@Column(index = 1, name = "ProposalContNo", desc = "总单投保单号码", type = Schema.TYPE_STRING)
private String proposalContNo;
@Getter
@Setter
@Column(index = 2, name = "AppntNo", desc = "投保人编码", type = Schema.TYPE_STRING)
private String appntNo;
@Getter
@Setter
@Column(index = 3, name = "AppntName", desc = "投保人", type = Schema.TYPE_STRING)
private String appntName;
@Getter
@Setter
@Column(index = 4, name = "State", desc = "跟踪状态", type = Schema.TYPE_STRING)
private String state;
@Column(index = 5, name = "TrackStartDate", desc = "跟踪起始日期", type = Schema.TYPE_DATE)
private Date trackStartDate;
@Getter
@Setter
@Column(index = 6, name = "TrackStartTime", desc = "跟踪起始时间", type = Schema.TYPE_STRING)
private String trackStartTime;
@Column(index = 7, name = "TrackEndDate", desc = "跟踪结束日期", type = Schema.TYPE_DATE)
private Date trackEndDate;
@Getter
@Setter
@Column(index = 8, name = "TrackEndTime", desc = "跟踪结束时间", type = Schema.TYPE_STRING)
private String trackEndTime;
@Getter
@Setter
@Column(index = 9, name = "AgentCode", desc = "代理人编码", type = Schema.TYPE_STRING)
private String agentCode;
@Getter
@Setter
@Column(index = 10, name = "AgentGroup", desc = "代理人组别", type = Schema.TYPE_STRING)
private String agentGroup;
@Getter
@Setter
@Column(index = 11, name = "Operator", desc = "操作员", type = Schema.TYPE_STRING)
private String operator;
@Getter
@Setter
@Column(index = 12, name = "ManageCom", desc = "管理机构", type = Schema.TYPE_STRING)
private String manageCom;
@Column(index = 13, name = "MakeDate", desc = "录入日期", type = Schema.TYPE_DATE)
private Date makeDate;
@Getter
@Setter
@Column(index = 14, name = "MakeTime", desc = "录入时间", type = Schema.TYPE_STRING)
private String makeTime;
@Column(index = 15, name = "ModifyDate", desc = "修改日期", type = Schema.TYPE_DATE)
private Date modifyDate;
@Getter
@Setter
@Column(index = 16, name = "ModifyTime", desc = "修改时间", type = Schema.TYPE_STRING)
private String modifyTime;
public static final int FIELDNUM = 17; // 数据库表的字段个数
private transient FDate fDate = new FDate(); // 处理日期
public transient CErrors mErrors; // 错误信息
// @Constructor
public LCAskTrackMainSchema() {
mErrors = new CErrors();
}
// @Method
public Object clone() throws CloneNotSupportedException {
LCAskTrackMainSchema cloned = (LCAskTrackMainSchema) super.clone();
cloned.fDate = (FDate) fDate.clone();
cloned.mErrors = (CErrors) mErrors.clone();
SchemaHelper.cloneDate(cloned, this, this.getClass());
return cloned;
}
public String[] getPK() {
return SchemaHelper.getPK(this.getClass());
}
public String getTrackStartDate() {
if (trackStartDate != null)
return fDate.getString(trackStartDate);
else
return null;
}
public LCAskTrackMainSchema setTrackStartDate(Date aTrackStartDate) {
trackStartDate = aTrackStartDate;
return this;
}
public LCAskTrackMainSchema setTrackStartDate(String aTrackStartDate) {
if (aTrackStartDate != null && !aTrackStartDate.equals("") && !aTrackStartDate.equals("null")) {
trackStartDate = fDate.getDate(aTrackStartDate);
} else {
trackStartDate = null;
}
return this;
}
public String getTrackEndDate() {
if (trackEndDate != null)
return fDate.getString(trackEndDate);
else
return null;
}
public LCAskTrackMainSchema setTrackEndDate(Date aTrackEndDate) {
trackEndDate = aTrackEndDate;
return this;
}
public LCAskTrackMainSchema setTrackEndDate(String aTrackEndDate) {
if (aTrackEndDate != null && !aTrackEndDate.equals("") && !aTrackEndDate.equals("null")) {
trackEndDate = fDate.getDate(aTrackEndDate);
} else {
trackEndDate = null;
}
return this;
}
public String getMakeDate() {
if (makeDate != null)
return fDate.getString(makeDate);
else
return null;
}
public LCAskTrackMainSchema setMakeDate(Date aMakeDate) {
makeDate = aMakeDate;
return this;
}
public LCAskTrackMainSchema setMakeDate(String aMakeDate) {
if (aMakeDate != null && !aMakeDate.equals("") && !aMakeDate.equals("null")) {
makeDate = fDate.getDate(aMakeDate);
} else {
makeDate = null;
}
return this;
}
public String getModifyDate() {
if (modifyDate != null)
return fDate.getString(modifyDate);
else
return null;
}
public LCAskTrackMainSchema setModifyDate(Date aModifyDate) {
modifyDate = aModifyDate;
return this;
}
public LCAskTrackMainSchema setModifyDate(String aModifyDate) {
if (aModifyDate != null && !aModifyDate.equals("") && !aModifyDate.equals("null")) {
modifyDate = fDate.getDate(aModifyDate);
} else {
modifyDate = null;
}
return this;
}
public LCAskTrackMainSchema setSchema(LCAskTrackMainSchema aLCAskTrackMainSchema) {
SchemaHelper.setSchema(aLCAskTrackMainSchema, this);
return this;
}
public LCAskTrackMainSchema getSchema() {
LCAskTrackMainSchema aLCAskTrackMainSchema = new LCAskTrackMainSchema();
aLCAskTrackMainSchema.setSchema(this);
return aLCAskTrackMainSchema;
}
public String encode() {
return SchemaHelper.encode(this);
}
public boolean decode(String strMessage) {
return SchemaHelper.decode(this, strMessage);
}
public String getV(String FCode) {
return SchemaHelper.getV(this, FCode);
}
public String getV(int nFieldIndex) {
return SchemaHelper.getV(this, nFieldIndex);
}
public boolean setV(String FCode, String FValue) {
return SchemaHelper.setV(this, FCode, FValue);
}
public int getFieldCount() {
return FIELDNUM;
}
public int getFieldIndex(String strFieldName) {
return SchemaHelper.getFieldIndex(this.getClass(), strFieldName);
}
public String getFieldName(int nFieldIndex) {
return SchemaHelper.getFieldName(this.getClass(), nFieldIndex);
}
public int getFieldType(String strFieldName) {
return SchemaHelper.getFieldType(this.getClass(), strFieldName);
}
public int getFieldType(int nFieldIndex) {
return SchemaHelper.getFieldType(this.getClass(), nFieldIndex);
}
}