You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

387 lines
12 KiB

/**
* 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;
/**
* <p>ClassName: LPOwnerSchema </p>
* <p>Description: DB层 Schema 类文件 </p>
* <p>Company: Sinosoft Co.,LTD </p>
* @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<LPOwnerSchema>, Cloneable {
// @Field
@Getter
@Setter
@Id
@Column(index = 0, name = "EdorNo", desc = "批单号", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(20)", nullable = false, length = 20)
private String edorNo;
@Getter
@Setter
@Id
@Column(index = 1, name = "EdorType", desc = "批改类型", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(10)", nullable = false, length = 10)
private String edorType;
@Getter
@Setter
@Id
@Column(index = 2, name = "OwnerID", desc = "权利人号", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(20)", nullable = false, length = 20)
private String ownerID;
/**
* 冗余,标准在个人保单表,方便查询统计
*/
@Getter
@Setter
@Column(index = 3, name = "GrpContNo", desc = "集体合同号码", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(20)", nullable = false, length = 20)
private String grpContNo;
@Getter
@Setter
@Id
@Column(index = 4, name = "ContNo", desc = "合同号码", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(20)", nullable = false, length = 20)
private String contNo;
/**
* 冗余,标准在个人保单表
*/
@Getter
@Setter
@Column(index = 5, name = "PrtNo", desc = "印刷号码", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(20)", nullable = false, length = 20)
private String prtNo;
@Getter
@Setter
@Column(index = 6, name = "OwnerNo", desc = "权利人客户号码", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(24)", nullable = false, length = 24)
private String ownerNo;
/**
* 冗余,标准在个人客户表
*/
@Getter
@Setter
@Column(index = 7, name = "OwnerName", desc = "权利人客户名称", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(120)", length = 120)
private String ownerName;
@Getter
@Setter
@Column(index = 8, name = "AppntFlag", desc = "投保人标记", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(1)", length = 1)
private String appntFlag;
@Getter
@Column(index = 9, name = "AppntSeq", desc = "投保人顺序", type = Schema.TYPE_INT, columnDefinition = "INTEGER", precision = 0, scale = 0)
private int appntSeq;
@Getter
@Setter
@Column(index = 10, name = "PayerFlag", desc = "付款人标记", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(1)", length = 1)
private String payerFlag;
@Getter
@Column(index = 11, name = "PayerSeq", desc = "付款人顺序", type = Schema.TYPE_INT, columnDefinition = "INTEGER", precision = 0, scale = 0)
private int payerSeq;
/**
* 冗余,标准在个人客户表
*/
@Getter
@Setter
@Column(index = 12, name = "Sex", desc = "权利人性别", type = Schema.TYPE_STRING, columnDefinition = "VARCHAR2(1)", length = 1)
private String sex;
/**
* 冗余,标准在个人客户表
*/
@Column(index = 13, name = "Birthday", desc = "权利人出生日期", type = Schema.TYPE_DATE, columnDefinition = "DATE")
private Date birthday;
/**
* 0 -- 身份证<p>
* 1 -- 护照<p>
* 2 -- 军官证<p>
* 3 -- 驾照<p>
* 4 -- 出生证明<p>
* 5 -- 户口簿<p>
* 8 -- 其他<p>
* 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-有效<p>
* 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);
}
}