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
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.