/** * 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: LOAccUnitPriceStateSchema

*

Description: DB层 Schema 类文件

*

Company: Sinosoft Co.,LTD

* @Database Schema2 * @author Makerx2 * @CreateDatetime 2019-03-16 16:05:02 808 */ @Table(name = "LOAccUnitPriceState") @EqualsAndHashCode(callSuper = false) @Accessors(chain = true) public class LOAccUnitPriceStateSchema extends Entity implements Schema, Cloneable { // @Field @Getter @Setter @Id @Column(index = 0, name = "RiskCode", desc = "险种编码", type = Schema.TYPE_STRING) private String riskCode; @Getter @Setter @Id @Column(index = 1, name = "InsuAccNo", desc = "保险帐户号码", type = Schema.TYPE_STRING) private String insuAccNo; @Id @Column(index = 2, name = "StartDate", desc = "价格起期", type = Schema.TYPE_DATE) private Date startDate; @Column(index = 3, name = "EndDate", desc = "价格止期", type = Schema.TYPE_DATE) private Date endDate; @Getter @Setter @Column(index = 4, name = "State", desc = "状态", type = Schema.TYPE_STRING) private String state; @Getter @Setter @Id @Column(index = 5, name = "OperateKind", desc = "操作类型", type = Schema.TYPE_STRING) private String operateKind; @Getter @Setter @Id @Column(index = 6, name = "OperateType", desc = "操作项目", type = Schema.TYPE_STRING) private String operateType; @Getter @Setter @Column(index = 7, name = "OperateFlag", desc = "操作结论", type = Schema.TYPE_STRING) private String operateFlag; @Getter @Setter @Column(index = 8, name = "OperateIdea", desc = "操作意见", type = Schema.TYPE_STRING) private String operateIdea; @Getter @Setter @Column(index = 9, name = "Operator", desc = "操作员", type = Schema.TYPE_STRING) private String operator; @Column(index = 10, name = "MakeDate", desc = "入机日期", type = Schema.TYPE_DATE) private Date makeDate; @Getter @Setter @Column(index = 11, name = "MakeTime", desc = "入机时间", type = Schema.TYPE_STRING) private String makeTime; @Column(index = 12, name = "ModifyDate", desc = "最后一次修改日期", type = Schema.TYPE_DATE) private Date modifyDate; @Getter @Setter @Column(index = 13, name = "ModifyTime", desc = "最后一次修改时间", type = Schema.TYPE_STRING) private String modifyTime; public static final int FIELDNUM = 14; // 数据库表的字段个数 private transient FDate fDate = new FDate(); // 处理日期 public transient CErrors mErrors; // 错误信息 // @Constructor public LOAccUnitPriceStateSchema() { mErrors = new CErrors(); } // @Method public Object clone() throws CloneNotSupportedException { LOAccUnitPriceStateSchema cloned = (LOAccUnitPriceStateSchema) 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 getStartDate() { if (startDate != null) return fDate.getString(startDate); else return null; } public LOAccUnitPriceStateSchema setStartDate(Date aStartDate) { startDate = aStartDate; return this; } public LOAccUnitPriceStateSchema setStartDate(String aStartDate) { if (aStartDate != null && !aStartDate.equals("") && !aStartDate.equals("null")) { startDate = fDate.getDate(aStartDate); } else { startDate = null; } return this; } public String getEndDate() { if (endDate != null) return fDate.getString(endDate); else return null; } public LOAccUnitPriceStateSchema setEndDate(Date aEndDate) { endDate = aEndDate; return this; } public LOAccUnitPriceStateSchema setEndDate(String aEndDate) { if (aEndDate != null && !aEndDate.equals("") && !aEndDate.equals("null")) { endDate = fDate.getDate(aEndDate); } else { endDate = null; } return this; } public String getMakeDate() { if (makeDate != null) return fDate.getString(makeDate); else return null; } public LOAccUnitPriceStateSchema setMakeDate(Date aMakeDate) { makeDate = aMakeDate; return this; } public LOAccUnitPriceStateSchema 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 LOAccUnitPriceStateSchema setModifyDate(Date aModifyDate) { modifyDate = aModifyDate; return this; } public LOAccUnitPriceStateSchema setModifyDate(String aModifyDate) { if (aModifyDate != null && !aModifyDate.equals("") && !aModifyDate.equals("null")) { modifyDate = fDate.getDate(aModifyDate); } else { modifyDate = null; } return this; } public LOAccUnitPriceStateSchema setSchema(LOAccUnitPriceStateSchema aLOAccUnitPriceStateSchema) { SchemaHelper.setSchema(aLOAccUnitPriceStateSchema, this); return this; } public LOAccUnitPriceStateSchema getSchema() { LOAccUnitPriceStateSchema aLOAccUnitPriceStateSchema = new LOAccUnitPriceStateSchema(); aLOAccUnitPriceStateSchema.setSchema(this); return aLOAccUnitPriceStateSchema; } 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); } }