public class ResultSetMetaData extends Object implements ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown| 限定符和类型 | 方法和说明 |
|---|---|
String |
getCatalogName(int column)
获取指定列的表目录名称(数据库名称)
|
String |
getColumnClassName(int column)
如果调用方法 ResultSet.getObject 从列中检索值,则返回构造其实例的 Java 类的完全限定名称。
|
int |
getColumnCount()
返回此 ResultSet 对象中的列数。
|
int |
getColumnDisplaySize(int column)
指示指定列的最大标准宽度,以字符为单位
---暂时考虑不实现
|
String |
getColumnLabel(int column)
获取用于打印输出和显示的指定列的建议标题,即获取指定列的别名
|
String |
getColumnName(int column)
获取指定列的名称
|
int |
getColumnType(int column)
检索指定列的 SQL 类型
|
String |
getColumnTypeName(int column)
检索指定列的数据库特定的类型名称
|
int |
getPrecision(int column)
获取10进制数的数位数目
|
int |
getScale(int column)
获取指定列的小数点右边的位数
|
String |
getSchemaName(int column)
获取指定列的表模式
---暂时考虑不实现
因为服务器并没有返回模式信息给接口
|
String |
getTableName(int column)
获取指定列所属表的名称
|
boolean |
isAutoIncrement(int column)
指示列是否为自增性
|
boolean |
isCaseSensitive(int column)
指示列的大小写是否有关系。
|
boolean |
isCurrency(int column)
指示指定的列是否是一个哈希代码值
---暂时考虑不实现
|
static boolean |
isDecimalType(int type)
判断是否为10进制数据类型
|
boolean |
isDefinitelyWritable(int column)
指示在指定的列上进行写操作是否明确可以获得成功
|
int |
isNullable(int column)
指示指定列中的值是否可以为 null
|
boolean |
isReadOnly(int column)
指示指定的列是否明确不可写入
|
boolean |
isSearchable(int column)
指示是否可以在 where 子句中使用指定的列
|
boolean |
isSigned(int column)
指示指定列中的值是否带正负号
|
boolean |
isWrapperFor(Class arg0) |
boolean |
isWritable(int column)
指示在指定的列上进行写操作是否可以获得成功
|
Object |
unwrap(Class arg0) |
public static final boolean isDecimalType(int type)
public int getColumnCount()
throws SQLException
getColumnCount 在接口中 ResultSetMetaDataSQLExceptionpublic boolean isAutoIncrement(int column)
throws SQLException
isAutoIncrement 在接口中 ResultSetMetaDataSQLExceptionpublic boolean isCaseSensitive(int column)
throws SQLException
isCaseSensitive 在接口中 ResultSetMetaDataSQLExceptionpublic boolean isSearchable(int column)
throws SQLException
isSearchable 在接口中 ResultSetMetaDataSQLExceptionpublic boolean isCurrency(int column)
throws SQLException
isCurrency 在接口中 ResultSetMetaDataSQLExceptionpublic int isNullable(int column)
throws SQLException
isNullable 在接口中 ResultSetMetaDataSQLExceptionpublic boolean isSigned(int column)
throws SQLException
isSigned 在接口中 ResultSetMetaDataSQLExceptionpublic int getColumnDisplaySize(int column)
throws SQLException
getColumnDisplaySize 在接口中 ResultSetMetaDataSQLExceptionpublic String getColumnLabel(int column) throws SQLException
getColumnLabel 在接口中 ResultSetMetaDataSQLExceptionpublic String getColumnName(int column) throws SQLException
getColumnName 在接口中 ResultSetMetaDataSQLExceptionpublic String getSchemaName(int column) throws SQLException
getSchemaName 在接口中 ResultSetMetaDataSQLExceptionpublic int getPrecision(int column)
throws SQLException
getPrecision 在接口中 ResultSetMetaDataSQLExceptionpublic int getScale(int column)
throws SQLException
getScale 在接口中 ResultSetMetaDataSQLExceptionpublic String getTableName(int column) throws SQLException
getTableName 在接口中 ResultSetMetaDataSQLExceptionpublic String getCatalogName(int column) throws SQLException
getCatalogName 在接口中 ResultSetMetaDataSQLExceptionpublic int getColumnType(int column)
throws SQLException
getColumnType 在接口中 ResultSetMetaDataSQLExceptionpublic String getColumnTypeName(int column) throws SQLException
getColumnTypeName 在接口中 ResultSetMetaDataSQLExceptionpublic boolean isReadOnly(int column)
throws SQLException
isReadOnly 在接口中 ResultSetMetaDataSQLExceptionpublic boolean isWritable(int column)
throws SQLException
isWritable 在接口中 ResultSetMetaDataSQLExceptionpublic boolean isDefinitelyWritable(int column)
throws SQLException
isDefinitelyWritable 在接口中 ResultSetMetaDataSQLExceptionpublic String getColumnClassName(int column) throws SQLException
getColumnClassName 在接口中 ResultSetMetaDataSQLExceptionpublic boolean isWrapperFor(Class arg0) throws SQLException
isWrapperFor 在接口中 WrapperSQLExceptionpublic Object unwrap(Class arg0) throws SQLException
unwrap 在接口中 WrapperSQLExceptionCopyright © 2025. All rights reserved.