public interface RowMetadata
Modifier and Type | Method and Description |
---|---|
ColumnMetadata |
getColumnMetadata(int index)
Returns the
ColumnMetadata for one column in this row. |
ColumnMetadata |
getColumnMetadata(String name)
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(int index)
ColumnMetadata
for one column in this row.index
- the column index starting at 0ColumnMetadata
for one column in this rowArrayIndexOutOfBoundsException
- if the index
is less than zero or greater than the number of available columns.ColumnMetadata getColumnMetadata(String name)
ColumnMetadata
for one column in this row.name
- the name of the column. Column names are case insensitive. When a get method contains several columns with same name, then the value of the first matching column will be returnedColumnMetadata
for one column in this rowIllegalArgumentException
- if name
is null
NoSuchElementException
- if there is no column with the name
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.