public class ResultSetDescription extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
columnNoNulls
The constant indicating that a
column does not allow
NULL values. |
static int |
columnNullableUnknown
The constant indicating that the
nullability of a column's values is unknown.
|
| 构造器和说明 |
|---|
ResultSetDescription(ResultSetMetaData resultSetMetaData) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getCatalogName(int column)
Gets the designated column's table's catalog name.
|
String |
getColumnClassName(int column)
Returns the fully-qualified name of the Java class whose instances
are manufactured if the method
ResultSet.getObject
is called to retrieve a value
from the column. |
int |
getColumnCount() |
int |
getColumnDisplaySize(int column)
Indicates the designated column's normal maximum width in characters.
|
String |
getColumnLabel(int column)
Gets the designated column's suggested title for use in printouts and
displays.
|
String |
getColumnName(int column)
Get the designated column's name.
|
List<String> |
getColumnNames() |
JdbcType |
getColumnType(int column)
Retrieves the designated column's SQL type.
|
String |
getColumnTypeName(int column)
Retrieves the designated column's database-specific type name.
|
int |
getPrecision(int column)
Get the designated column's specified column size.
|
int |
getScale(int column)
Gets the designated column's number of digits to right of the decimal point.
0 is returned for data types where the scale is not applicable.
|
String |
getSchemaName(int column)
Get the designated column's table's schema.
|
String |
getTableName(int column)
Gets the designated column's table name.
|
boolean |
isAutoIncrement(int column)
Indicates whether the designated column is automatically numbered.
|
boolean |
isCaseSensitive(int column)
Indicates whether a column's case matters.
|
boolean |
isCurrency(int column)
Indicates whether the designated column is a cash value.
|
boolean |
isDefinitelyWritable(int column)
Indicates whether a write on the designated column will definitely succeed.
|
int |
isNullable(int column)
Indicates the nullability of values in the designated column.
|
boolean |
isReadOnly(int column)
Indicates whether the designated column is definitely not writable.
|
boolean |
isSearchable(int column)
Indicates whether the designated column can be used in a where clause.
|
boolean |
isSigned(int column)
Indicates whether values in the designated column are signed numbers.
|
boolean |
isWritable(int column)
Indicates whether it is possible for a write on the designated column to succeed.
|
public static final int columnNoNulls
NULL values.public static final int columnNullableUnknown
public ResultSetDescription(ResultSetMetaData resultSetMetaData)
public int getColumnCount()
public boolean isAutoIncrement(int column)
column - the first column is 1, the second is 2, ...true if so; false otherwisepublic boolean isCaseSensitive(int column)
column - the first column is 1, the second is 2, ...true if so; false otherwisepublic boolean isSearchable(int column)
column - the first column is 1, the second is 2, ...true if so; false otherwisepublic boolean isCurrency(int column)
column - the first column is 1, the second is 2, ...true if so; false otherwisepublic int isNullable(int column)
column - the first column is 1, the second is 2, ...columnNoNulls,
columnNullable or columnNullableUnknownpublic boolean isSigned(int column)
column - the first column is 1, the second is 2, ...true if so; false otherwisepublic int getColumnDisplaySize(int column)
column - the first column is 1, the second is 2, ...public String getColumnLabel(int column)
AS
clause. If a SQL AS is not specified, the value returned from
getColumnLabel will be the same as the value returned by the
getColumnName method.column - the first column is 1, the second is 2, ...public String getColumnName(int column)
column - the first column is 1, the second is 2, ...public String getSchemaName(int column)
column - the first column is 1, the second is 2, ...public int getPrecision(int column)
column - the first column is 1, the second is 2, ...public int getScale(int column)
column - the first column is 1, the second is 2, ...public String getTableName(int column)
column - the first column is 1, the second is 2, ...public String getCatalogName(int column)
column - the first column is 1, the second is 2, ...public JdbcType getColumnType(int column)
column - the first column is 1, the second is 2, ...Typespublic String getColumnTypeName(int column)
column - the first column is 1, the second is 2, ...public boolean isReadOnly(int column)
column - the first column is 1, the second is 2, ...true if so; false otherwisepublic boolean isWritable(int column)
column - the first column is 1, the second is 2, ...true if so; false otherwisepublic boolean isDefinitelyWritable(int column)
column - the first column is 1, the second is 2, ...true if so; false otherwisepublic String getColumnClassName(int column)
Returns the fully-qualified name of the Java class whose instances
are manufactured if the method ResultSet.getObject
is called to retrieve a value
from the column. ResultSet.getObject may return a subclass of the
class returned by this method.
column - the first column is 1, the second is 2, ...ResultSet.getObject to retrieve the value in the specified
column. This is the class name used for custom mapping.Copyright © 2020. All rights reserved.