类 HeaderInfo

java.lang.Object
com.sh.javax.datastore.HeaderInfo
所有已实现的接口:
Serializable, Cloneable

public class HeaderInfo extends Object implements Serializable, Cloneable
数据集每列的信息,用于描述数据集中字段的名称、类型、长度等必要信息,一个数据集对应多个 HeaderInfo信息,该类由Datastore类自动管理,编程时一般不需直接调用。

Company:首亨软件(重庆)有限公司

另请参阅:
  • 构造器详细资料

    • HeaderInfo

      public HeaderInfo()
      不带参数的构造函数
    • HeaderInfo

      public HeaderInfo(String table, String colname, int coltype, String chianname, int width, int visible, String colname2)
      带参数的构造函数
      参数:
      table - 数据集对应的表名
      colname - 列名
      coltype - 列类型
      chianname - 列标签
      width - 列的宽度
      visible - 列是否可视
      colname2 - String
  • 方法详细资料

    • setColname

      public void setColname(String colname)
      设置列的名称
      参数:
      colname - 列名称
    • setColname

      public void setColname(String colname, String dcType)
    • getColname

      public String getColname()
      获取列的名称
      返回:
      列名称
    • setLabel

      public void setLabel(String label)
      设置列的标签
      参数:
      label - 列标签
    • getLabel

      public String getLabel()
      获取列标签
      返回:
      列标签
    • setColtype

      public void setColtype(int coltype)
      设置列的类型
      参数:
      coltype - 列类型
    • getColtype

      public int getColtype()
      获取列类型
      返回:
      列类型
    • setWidth

      public void setWidth(int width)
      设置列的宽度
      参数:
      width - 列宽度
    • getWidth

      public int getWidth()
      获取列宽度
      返回:
      列宽度
    • setVisible

      public void setVisible(int visible)
      设置该列是否可见
      参数:
      visible - 值为1时可见 值为0不可见
    • getVisible

      public int getVisible()
      获取列是否可见
      返回:
      值为1时可见 值为0不可见
    • setTablename

      public void setTablename(String table)
      设置列所对应的表名
      参数:
      table - 表名
    • getTablename

      public String getTablename()
      获取列所对应的表名
      返回:
      表名
    • setAlias

      public void setAlias(String newAlias)
      设置列的别名
      参数:
      newAlias - 别名
    • getAlias

      public String getAlias()
      获取列的别名
      返回:
      别名
    • setPrimaryKey

      public void setPrimaryKey(boolean newPrimaryKey)
      设置该列是否是主件的标志
      参数:
      newPrimaryKey - 值为true时表明该列是主键对应的列, 为false时表明该列不是主键对应的列
    • isPrimaryKey

      public boolean isPrimaryKey()
      判断该列是否是主键所对应的列
      返回:
      值为true时表明该列是主键对应的列, 为false时表明该列不是主键对应的列
    • getColname2

      public String getColname2()
    • setColname2

      public void setColname2(String colname2)
    • clone

      public HeaderInfo clone()
      HeaderInfo类的克隆方法
      覆盖:
      clone 在类中 Object
      返回:
      克隆的HeaderInfo对象