com.xiaoleilu.hutool.db.meta
类 Column

java.lang.Object
  继承者 com.xiaoleilu.hutool.db.meta.Column
所有已实现的接口:
Cloneable

public class Column
extends Object
implements Cloneable

数据库表的列信息

作者:
loolly

构造方法摘要
Column()
           
Column(String tableName, ResultSet columnMetaRs)
           
 
方法摘要
static Column create(String tableName, ResultSet columnMetaRs)
          创建列对象
 String getName()
           
 int getSize()
           
 String getTableName()
           
 int getType()
           
 void init(String tableName, ResultSet columnMetaRs)
          初始化
 boolean isNullable()
           
 void setName(String name)
           
 void setNullable(boolean isNullable)
           
 void setSize(int size)
           
 void setTableName(String tableName)
           
 void setType(int type)
           
 String toString()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

Column

public Column()

Column

public Column(String tableName,
              ResultSet columnMetaRs)
方法详细信息

create

public static Column create(String tableName,
                            ResultSet columnMetaRs)
创建列对象

参数:
tableName - 表名
columnMetaRs - 列元信息的ResultSet
返回:
列对象

init

public void init(String tableName,
                 ResultSet columnMetaRs)
          throws SQLException
初始化

参数:
tableName - 表名
columnMetaRs - 列的meta ResultSet
抛出:
SQLException

getTableName

public String getTableName()

setTableName

public void setTableName(String tableName)

getName

public String getName()

setName

public void setName(String name)

getType

public int getType()

setType

public void setType(int type)

getSize

public int getSize()

setSize

public void setSize(int size)

isNullable

public boolean isNullable()

setNullable

public void setNullable(boolean isNullable)

toString

public String toString()
覆盖:
Object 中的 toString


Copyright © 2014. All rights reserved.