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.
142 lines
4.1 KiB
142 lines
4.1 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: LSQuotRelaCustomerSchema </p>
|
|
* <p>Description: DB层 Schema 类文件 </p>
|
|
* <p>Company: Sinosoft Co.,LTD </p>
|
|
* @Database Schema2
|
|
* @author Makerx2
|
|
* @CreateDatetime 2019-03-16 16:05:17 208
|
|
*/
|
|
@Table(name = "LSQuotRelaCustomer")
|
|
@EqualsAndHashCode(callSuper = false)
|
|
@Accessors(chain = true)
|
|
public class LSQuotRelaCustomerSchema extends Entity implements Schema<LSQuotRelaCustomerSchema>, Cloneable {
|
|
// @Field
|
|
@Getter
|
|
@Setter
|
|
@Id
|
|
@Column(index = 0, name = "QuotNo", desc = "询价号", type = Schema.TYPE_STRING)
|
|
private String quotNo;
|
|
|
|
@Getter
|
|
@Id
|
|
@Column(index = 1, name = "QuotBatNo", desc = "询价批次号", type = Schema.TYPE_INT)
|
|
private int quotBatNo;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Id
|
|
@Column(index = 2, name = "PreCustomerNo", desc = "准客户号码", type = Schema.TYPE_STRING)
|
|
private String preCustomerNo;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 3, name = "PreCustomerName", desc = "准客户名称", type = Schema.TYPE_STRING)
|
|
private String preCustomerName;
|
|
|
|
|
|
public static final int FIELDNUM = 4; // 数据库表的字段个数
|
|
|
|
public transient CErrors mErrors; // 错误信息
|
|
|
|
// @Constructor
|
|
public LSQuotRelaCustomerSchema() {
|
|
mErrors = new CErrors();
|
|
}
|
|
|
|
// @Method
|
|
public Object clone() throws CloneNotSupportedException {
|
|
LSQuotRelaCustomerSchema cloned = (LSQuotRelaCustomerSchema) super.clone();
|
|
cloned.mErrors = (CErrors) mErrors.clone();
|
|
SchemaHelper.cloneDate(cloned, this, this.getClass());
|
|
return cloned;
|
|
}
|
|
|
|
public String[] getPK() {
|
|
return SchemaHelper.getPK(this.getClass());
|
|
}
|
|
|
|
public LSQuotRelaCustomerSchema setQuotBatNo(int aQuotBatNo) {
|
|
quotBatNo = aQuotBatNo;
|
|
return this;
|
|
}
|
|
|
|
public LSQuotRelaCustomerSchema setQuotBatNo(String aQuotBatNo) {
|
|
if (aQuotBatNo != null && !aQuotBatNo.equals("") && !aQuotBatNo.equals("null")) {
|
|
quotBatNo = new Integer(aQuotBatNo);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public LSQuotRelaCustomerSchema setSchema(LSQuotRelaCustomerSchema aLSQuotRelaCustomerSchema) {
|
|
SchemaHelper.setSchema(aLSQuotRelaCustomerSchema, this);
|
|
return this;
|
|
}
|
|
|
|
public LSQuotRelaCustomerSchema getSchema() {
|
|
LSQuotRelaCustomerSchema aLSQuotRelaCustomerSchema = new LSQuotRelaCustomerSchema();
|
|
aLSQuotRelaCustomerSchema.setSchema(this);
|
|
return aLSQuotRelaCustomerSchema;
|
|
}
|
|
|
|
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);
|
|
}
|
|
}
|
|
|