public interface RowMetadata
| Modifier and Type | Method and Description |
|---|---|
ColumnMetadata |
getColumnMetadata(Object identifier)
Returns the
ColumnMetadata for one column in this row. |
Iterable<? extends ColumnMetadata> |
getColumnMetadatas()
Returns the
ColumnMetadata for all columns in this row. |
Collection<String> |
getColumnNames()
Returns an unmodifiable collection of column names.
|
ColumnMetadata getColumnMetadata(Object identifier)
ColumnMetadata for one column in this row.identifier - the identifier of the column. Can be either the column index starting at 0 or column name. Column names are case insensitive. When a get method is called with a column
name and several columns have the same name, then the value of the first matching column will be returned.ColumnMetadata for one column in this rowIllegalArgumentException - if identifier is null or not supportedNoSuchElementException - if there is no column with the name identifierArrayIndexOutOfBoundsException - if the identifier is a index and it is less than zero or greater than the number of available columns.Iterable<? extends ColumnMetadata> getColumnMetadatas()
ColumnMetadata for all columns in this row.ColumnMetadata for all columns in this rowCollection<String> getColumnNames()
Any attempts to modify the returned collection, whether direct or via its iterator, result in an UnsupportedOperationException.
The iteration order of the column names depends on the actual query result.
Column names may appear multiple times if the result specifies multiple columns with the same name.
Lookups through Collection.contains(Object) are case-insensitive.
Drivers may enhance comparison sorting rules with escape characters to enforce a particular mode of comparison
when querying for presence/absence of a column.
Copyright © 2019. All rights reserved.