/** * 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: LPOwnerSchema
*Description: DB层 Schema 类文件
*Company: Sinosoft Co.,LTD
* @Database 客户管理数据 * @author Makerx2 * @CreateDatetime 2020-02-15 11:10:20 507 */ @Table(name = "LPOwner", desc = "保全权利人") @EqualsAndHashCode(callSuper = false) @Accessors(chain = true) public class LPOwnerSchema extends Entity implements Schema* 1 -- 护照
* 2 -- 军官证
* 3 -- 驾照
* 4 -- 出生证明
* 5 -- 户口簿
* 8 -- 其他
* 9 -- 数据转换证件 */ @Getter @Setter @Column(index = 14, name = "IDType", desc = "权利人证件类型", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(1)", length = 1) private String iDType; @Getter @Setter @Column(index = 15, name = "IDNo", desc = "权利人证件号码", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(20)", length = 20) private String iDNo; @Getter @Setter @Column(index = 16, name = "RelationToInsured", desc = "与主被保人关系", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(2)", length = 2) private String relationToInsured; @Getter @Setter @Column(index = 17, name = "RelationToAppnt", desc = "与主投保人关系", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(2)", length = 2) private String relationToAppnt; @Getter @Setter @Column(index = 18, name = "BankCode", desc = "银行编码", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(10)", length = 10) private String bankCode; @Getter @Setter @Column(index = 19, name = "BankAccNo", desc = "银行帐号", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(40)", length = 40) private String bankAccNo; @Getter @Setter @Column(index = 20, name = "AccName", desc = "银行帐户名", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(60)", length = 60) private String accName; /** * 1-有效
* 4-终止 */ @Getter @Setter @Column(index = 21, name = "OwnerState", desc = "有效标志", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(1)", length = 1) private String ownerState; @Getter @Setter @Column(index = 22, name = "Operator", desc = "操作员", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(10)", nullable = false, length = 10) private String operator; @Getter @Setter @Column(index = 23, name = "ManageCom", desc = "管理机构", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(10)", nullable = false, length = 10) private String manageCom; @Column(index = 24, name = "MakeDate", desc = "入机日期", type = Schema.TYPE_DATE, columnDefinition = "DATE", nullable = false) private Date makeDate; @Getter @Setter @Column(index = 25, name = "MakeTime", desc = "入机时间", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(10)", nullable = false, length = 10) private String makeTime; @Column(index = 26, name = "ModifyDate", desc = "最后一次修改日期", type = Schema.TYPE_DATE, columnDefinition = "DATE", nullable = false) private Date modifyDate; @Getter @Setter @Column(index = 27, name = "ModifyTime", desc = "最后一次修改时间", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(10)", nullable = false, length = 10) private String modifyTime; @Getter @Setter @Column(index = 28, name = "PerCusNo", desc = "个单客户号", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(20)", length = 20) private String perCusNo; @Getter @Setter @Column(index = 29, name = "AddressNo", desc = "地址号", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(20)", length = 20) private String addressNo; public static final int FIELDNUM = 30; // 数据库表的字段个数 private transient FDate fDate = new FDate(); // 处理日期 public transient CErrors mErrors; // 错误信息 // @Constructor public LPOwnerSchema() { mErrors = new CErrors(); } // @Method @Override public Object clone() throws CloneNotSupportedException { LPOwnerSchema cloned = (LPOwnerSchema) super.clone(); cloned.fDate = (FDate) fDate.clone(); cloned.mErrors = (CErrors) mErrors.clone(); SchemaHelper.cloneDate(cloned, this, this.getClass()); return cloned; } @Override public String[] getPK() { return SchemaHelper.getPK(this.getClass()); } public LPOwnerSchema setAppntSeq(int aAppntSeq) { appntSeq = aAppntSeq; return this; } public LPOwnerSchema setAppntSeq(String aAppntSeq) { if (aAppntSeq != null && !aAppntSeq.equals("") && !aAppntSeq.equals("null")) { appntSeq = Integer.parseInt(aAppntSeq); } return this; } public LPOwnerSchema setPayerSeq(int aPayerSeq) { payerSeq = aPayerSeq; return this; } public LPOwnerSchema setPayerSeq(String aPayerSeq) { if (aPayerSeq != null && !aPayerSeq.equals("") && !aPayerSeq.equals("null")) { payerSeq = Integer.parseInt(aPayerSeq); } return this; } public String getBirthday() { if (birthday != null) return fDate.getString(birthday); else return null; } public LPOwnerSchema setBirthday(Date aBirthday) { birthday = aBirthday; return this; } public LPOwnerSchema setBirthday(String aBirthday) { if (aBirthday != null && !aBirthday.equals("") && !aBirthday.equals("null")) { birthday = fDate.getDate(aBirthday); } else { birthday = null; } return this; } public String getMakeDate() { if (makeDate != null) return fDate.getString(makeDate); else return null; } public LPOwnerSchema setMakeDate(Date aMakeDate) { makeDate = aMakeDate; return this; } public LPOwnerSchema 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 LPOwnerSchema setModifyDate(Date aModifyDate) { modifyDate = aModifyDate; return this; } public LPOwnerSchema setModifyDate(String aModifyDate) { if (aModifyDate != null && !aModifyDate.equals("") && !aModifyDate.equals("null")) { modifyDate = fDate.getDate(aModifyDate); } else { modifyDate = null; } return this; } @Override public LPOwnerSchema setSchema(LPOwnerSchema aLPOwnerSchema) { SchemaHelper.setSchema(aLPOwnerSchema, this); return this; } @Override public LPOwnerSchema getSchema() { LPOwnerSchema aLPOwnerSchema = new LPOwnerSchema(); aLPOwnerSchema.setSchema(this); return aLPOwnerSchema; } @Override public String encode() { return SchemaHelper.encode(this); } @Override public boolean decode(String strMessage) { return SchemaHelper.decode(this, strMessage); } @Override public String getV(String FCode) { return SchemaHelper.getV(this, FCode); } @Override public String getV(int nFieldIndex) { return SchemaHelper.getV(this, nFieldIndex); } @Override public boolean setV(String FCode, String FValue) { return SchemaHelper.setV(this, FCode, FValue); } @Override public int getFieldCount() { return FIELDNUM; } @Override public int getFieldIndex(String strFieldName) { return SchemaHelper.getFieldIndex(this.getClass(), strFieldName); } @Override public String getFieldName(int nFieldIndex) { return SchemaHelper.getFieldName(this.getClass(), nFieldIndex); } @Override public int getFieldType(String strFieldName) { return SchemaHelper.getFieldType(this.getClass(), strFieldName); } @Override public int getFieldType(int nFieldIndex) { return SchemaHelper.getFieldType(this.getClass(), nFieldIndex); } }