public class ResultColumn extends Object
ResultSetMetaData
中某一列的元数据信息Modifier and Type | Class and Description |
---|---|
static class |
ResultColumn.ColumnNullable
列null值选项
|
Constructor and Description |
---|
ResultColumn(ResultSetMetaData metaData,
int columnIndexBase1)
构造
|
Modifier and Type | Method and Description |
---|---|
String |
getCatalogName()
获取表的目录名称
|
String |
getClassName()
如果调用getObject方法来从列中检索值,则返回生成其实例的 Java 类的完全限定名称
|
int |
getDisplaySize()
获取正常最大宽度(以字符数计)
|
String |
getLabel()
获取列标签
|
String |
getName()
获取列名称
|
int |
getNullable()
获取null值选项,即是否可以为
null |
ResultColumn.ColumnNullable |
getNullableEnum()
获取列null值选项枚举,即是否可以为
null |
int |
getPrecision()
获取小数位数
|
int |
getScale()
小数点右侧的位数
|
String |
getSchemaName()
获取表架构名称
|
String |
getTableName()
获取表名
|
int |
getType()
获取SQL类型
|
String |
getTypeName()
获取类型名称
|
boolean |
isAutoIncrement()
是否自增
|
boolean |
isCaseSensitive()
是否大小写敏感
|
boolean |
isCurrency()
是否为货币
|
boolean |
isDefinitelyWritable()
写入操作是否将一定成功
|
boolean |
isReadOnly()
是否只读(不可写入)
|
boolean |
isSearchable()
是否可搜索
|
boolean |
isSigned()
是否为带正负号的数字
|
boolean |
isWritable()
是否能够成功在指定列上写入
|
public ResultColumn(ResultSetMetaData metaData, int columnIndexBase1) throws DbException
metaData
- ResultSetMetaData
columnIndexBase1
- 列序号,从1开始。即第一列为1,第二列为2。。。DbException
- SQLException包装public boolean isAutoIncrement()
public boolean isCaseSensitive()
public boolean isSearchable()
public boolean isCurrency()
public int getNullable()
null
null
public ResultColumn.ColumnNullable getNullableEnum()
null
null
public boolean isSigned()
public int getDisplaySize()
public String getLabel()
public String getName()
public String getSchemaName()
public int getPrecision()
public int getScale()
public String getTableName()
public String getCatalogName()
public int getType()
public String getTypeName()
public boolean isReadOnly()
public boolean isWritable()
public boolean isDefinitelyWritable()
public String getClassName()
Copyright © 2025. All rights reserved.