/** * Copyright (c) 2002 Sinosoft Co.,LTD. * All right reserved. */ package com.sinosoft.lis.schema; import com.sinosoft.persistence.Entity; import com.sinosoft.lis.pubfun.FDate; import com.sinosoft.persistence.Column; import com.sinosoft.persistence.Id; import com.sinosoft.persistence.Schema; import com.sinosoft.persistence.Table; 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: LPMoveSchema

*

Description: DB层 Schema 类文件

*

Company: Sinosoft Co.,LTD

* @Database Schema2 * @author Makerx2 * @CreateDatetime 2019-03-16 16:05:42 591 */ @Table(name = "LPMove") @EqualsAndHashCode(callSuper = false) @Accessors(chain = true) public class LPMoveSchema extends Entity implements Schema, Cloneable { // @Field @Getter @Setter @Id @Column(index = 0, name = "EdorNo", desc = "批单号", type = Schema.TYPE_STRING) private String edorNo; @Getter @Setter @Id @Column(index = 1, name = "EdorType", desc = "批改类型", type = Schema.TYPE_STRING) private String edorType; @Getter @Setter @Column(index = 2, name = "ContNoOld", desc = "旧合同号码", type = Schema.TYPE_STRING) private String contNoOld; @Getter @Setter @Column(index = 3, name = "ContNoNew", desc = "新合同号码", type = Schema.TYPE_STRING) private String contNoNew; @Getter @Setter @Column(index = 4, name = "ManageComOld", desc = "旧管理机构", type = Schema.TYPE_STRING) private String manageComOld; @Getter @Setter @Column(index = 5, name = "ManageComNew", desc = "新管理机构", type = Schema.TYPE_STRING) private String manageComNew; @Getter @Setter @Column(index = 6, name = "OldCoName", desc = "原公司名", type = Schema.TYPE_STRING) private String oldCoName; @Getter @Setter @Column(index = 7, name = "NewCoName", desc = "现公司名", type = Schema.TYPE_STRING) private String newCoName; @Column(index = 8, name = "InDate", desc = "转入日期", type = Schema.TYPE_DATE) private Date inDate; @Column(index = 9, name = "OutDate", desc = "转出日期", type = Schema.TYPE_DATE) private Date outDate; @Getter @Column(index = 10, name = "StandPrem", desc = "每期保费", type = Schema.TYPE_DOUBLE) private double standPrem; @Column(index = 11, name = "LastGetDate", desc = "最后一次给付日期", type = Schema.TYPE_DATE) private Date lastGetDate; @Column(index = 12, name = "FreeDate", desc = "免交开始日期", type = Schema.TYPE_DATE) private Date freeDate; @Column(index = 13, name = "GetStartDate", desc = "起领日期", type = Schema.TYPE_DATE) private Date getStartDate; @Getter @Column(index = 14, name = "LeavingMoney", desc = "总余额", type = Schema.TYPE_DOUBLE) private double leavingMoney; @Getter @Column(index = 15, name = "SumPrem", desc = "累计保费", type = Schema.TYPE_DOUBLE) private double sumPrem; @Column(index = 16, name = "PaytoDate", desc = "交至日期", type = Schema.TYPE_DATE) private Date paytoDate; @Column(index = 17, name = "ModifyDate", desc = "最后一次修改日期", type = Schema.TYPE_DATE) private Date modifyDate; @Getter @Setter @Column(index = 18, name = "ModifyTime", desc = "最后一次修改时间", type = Schema.TYPE_STRING) private String modifyTime; @Getter @Setter @Column(index = 19, name = "RiskCode", desc = "险种编码", type = Schema.TYPE_STRING) private String riskCode; @Getter @Setter @Column(index = 20, name = "RiskVersion", desc = "险种版本", type = Schema.TYPE_STRING) private String riskVersion; @Getter @Setter @Id @Column(index = 21, name = "PolNoOld", desc = "旧保单号码", type = Schema.TYPE_STRING) private String polNoOld; @Getter @Setter @Column(index = 22, name = "PolNoNew", desc = "新保单号码", type = Schema.TYPE_STRING) private String polNoNew; @Getter @Setter @Column(index = 23, name = "GrpPolNoOld", desc = "旧集体保单号码", type = Schema.TYPE_STRING) private String grpPolNoOld; @Getter @Setter @Column(index = 24, name = "GrpPolNoNew", desc = "新集体保单号码", type = Schema.TYPE_STRING) private String grpPolNoNew; public static final int FIELDNUM = 25; // 数据库表的字段个数 private transient FDate fDate = new FDate(); // 处理日期 public transient CErrors mErrors; // 错误信息 // @Constructor public LPMoveSchema() { mErrors = new CErrors(); } // @Method public Object clone() throws CloneNotSupportedException { LPMoveSchema cloned = (LPMoveSchema) 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 getInDate() { if (inDate != null) return fDate.getString(inDate); else return null; } public LPMoveSchema setInDate(Date aInDate) { inDate = aInDate; return this; } public LPMoveSchema setInDate(String aInDate) { if (aInDate != null && !aInDate.equals("") && !aInDate.equals("null")) { inDate = fDate.getDate(aInDate); } else { inDate = null; } return this; } public String getOutDate() { if (outDate != null) return fDate.getString(outDate); else return null; } public LPMoveSchema setOutDate(Date aOutDate) { outDate = aOutDate; return this; } public LPMoveSchema setOutDate(String aOutDate) { if (aOutDate != null && !aOutDate.equals("") && !aOutDate.equals("null")) { outDate = fDate.getDate(aOutDate); } else { outDate = null; } return this; } public LPMoveSchema setStandPrem(double aStandPrem) { standPrem = aStandPrem; return this; } public LPMoveSchema setStandPrem(String aStandPrem) { if (aStandPrem != null && !aStandPrem.equals("") && !aStandPrem.equals("null")) { standPrem = new Double(aStandPrem); } return this; } public String getLastGetDate() { if (lastGetDate != null) return fDate.getString(lastGetDate); else return null; } public LPMoveSchema setLastGetDate(Date aLastGetDate) { lastGetDate = aLastGetDate; return this; } public LPMoveSchema setLastGetDate(String aLastGetDate) { if (aLastGetDate != null && !aLastGetDate.equals("") && !aLastGetDate.equals("null")) { lastGetDate = fDate.getDate(aLastGetDate); } else { lastGetDate = null; } return this; } public String getFreeDate() { if (freeDate != null) return fDate.getString(freeDate); else return null; } public LPMoveSchema setFreeDate(Date aFreeDate) { freeDate = aFreeDate; return this; } public LPMoveSchema setFreeDate(String aFreeDate) { if (aFreeDate != null && !aFreeDate.equals("") && !aFreeDate.equals("null")) { freeDate = fDate.getDate(aFreeDate); } else { freeDate = null; } return this; } public String getGetStartDate() { if (getStartDate != null) return fDate.getString(getStartDate); else return null; } public LPMoveSchema setGetStartDate(Date aGetStartDate) { getStartDate = aGetStartDate; return this; } public LPMoveSchema setGetStartDate(String aGetStartDate) { if (aGetStartDate != null && !aGetStartDate.equals("") && !aGetStartDate.equals("null")) { getStartDate = fDate.getDate(aGetStartDate); } else { getStartDate = null; } return this; } public LPMoveSchema setLeavingMoney(double aLeavingMoney) { leavingMoney = aLeavingMoney; return this; } public LPMoveSchema setLeavingMoney(String aLeavingMoney) { if (aLeavingMoney != null && !aLeavingMoney.equals("") && !aLeavingMoney.equals("null")) { leavingMoney = new Double(aLeavingMoney); } return this; } public LPMoveSchema setSumPrem(double aSumPrem) { sumPrem = aSumPrem; return this; } public LPMoveSchema setSumPrem(String aSumPrem) { if (aSumPrem != null && !aSumPrem.equals("") && !aSumPrem.equals("null")) { sumPrem = new Double(aSumPrem); } return this; } public String getPaytoDate() { if (paytoDate != null) return fDate.getString(paytoDate); else return null; } public LPMoveSchema setPaytoDate(Date aPaytoDate) { paytoDate = aPaytoDate; return this; } public LPMoveSchema setPaytoDate(String aPaytoDate) { if (aPaytoDate != null && !aPaytoDate.equals("") && !aPaytoDate.equals("null")) { paytoDate = fDate.getDate(aPaytoDate); } else { paytoDate = null; } return this; } public String getModifyDate() { if (modifyDate != null) return fDate.getString(modifyDate); else return null; } public LPMoveSchema setModifyDate(Date aModifyDate) { modifyDate = aModifyDate; return this; } public LPMoveSchema setModifyDate(String aModifyDate) { if (aModifyDate != null && !aModifyDate.equals("") && !aModifyDate.equals("null")) { modifyDate = fDate.getDate(aModifyDate); } else { modifyDate = null; } return this; } public LPMoveSchema setSchema(LPMoveSchema aLPMoveSchema) { SchemaHelper.setSchema(aLPMoveSchema, this); return this; } public LPMoveSchema getSchema() { LPMoveSchema aLPMoveSchema = new LPMoveSchema(); aLPMoveSchema.setSchema(this); return aLPMoveSchema; } 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); } }