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.
150 lines
4.1 KiB
150 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: LFComISCSchema </p>
|
|
* <p>Description: DB层 Schema 类文件 </p>
|
|
* <p>Company: Sinosoft Co.,LTD </p>
|
|
* @Database Schema2
|
|
* @author Makerx2
|
|
* @CreateDatetime 2019-03-16 16:05:49 169
|
|
*/
|
|
@Table(name = "LFComISC")
|
|
@EqualsAndHashCode(callSuper = false)
|
|
@Accessors(chain = true)
|
|
public class LFComISCSchema extends Entity implements Schema<LFComISCSchema>, Cloneable {
|
|
// @Field
|
|
@Getter
|
|
@Setter
|
|
@Id
|
|
@Column(index = 0, name = "ComCodeISC", desc = "保监会机构编码", type = Schema.TYPE_STRING)
|
|
private String comCodeISC;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 1, name = "Name", desc = "机构名称", type = Schema.TYPE_STRING)
|
|
private String name;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 2, name = "ParentComCodeISC", desc = "上级机构编码", type = Schema.TYPE_STRING)
|
|
private String parentComCodeISC;
|
|
|
|
@Getter
|
|
@Column(index = 3, name = "ComLevel", desc = "机构层次", type = Schema.TYPE_INT)
|
|
private int comLevel;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 4, name = "IsLeaf", desc = "是否是叶子结点", type = Schema.TYPE_STRING)
|
|
private String isLeaf;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Column(index = 5, name = "OutputFlag", desc = "是否上报标志", type = Schema.TYPE_STRING)
|
|
private String outputFlag;
|
|
|
|
|
|
public static final int FIELDNUM = 6; // 数据库表的字段个数
|
|
|
|
public transient CErrors mErrors; // 错误信息
|
|
|
|
// @Constructor
|
|
public LFComISCSchema() {
|
|
mErrors = new CErrors();
|
|
}
|
|
|
|
// @Method
|
|
public Object clone() throws CloneNotSupportedException {
|
|
LFComISCSchema cloned = (LFComISCSchema) super.clone();
|
|
cloned.mErrors = (CErrors) mErrors.clone();
|
|
SchemaHelper.cloneDate(cloned, this, this.getClass());
|
|
return cloned;
|
|
}
|
|
|
|
public String[] getPK() {
|
|
return SchemaHelper.getPK(this.getClass());
|
|
}
|
|
|
|
public LFComISCSchema setComLevel(int aComLevel) {
|
|
comLevel = aComLevel;
|
|
return this;
|
|
}
|
|
|
|
public LFComISCSchema setComLevel(String aComLevel) {
|
|
if (aComLevel != null && !aComLevel.equals("") && !aComLevel.equals("null")) {
|
|
comLevel = new Integer(aComLevel);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public LFComISCSchema setSchema(LFComISCSchema aLFComISCSchema) {
|
|
SchemaHelper.setSchema(aLFComISCSchema, this);
|
|
return this;
|
|
}
|
|
|
|
public LFComISCSchema getSchema() {
|
|
LFComISCSchema aLFComISCSchema = new LFComISCSchema();
|
|
aLFComISCSchema.setSchema(this);
|
|
return aLFComISCSchema;
|
|
}
|
|
|
|
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);
|
|
}
|
|
}
|
|
|