public interface Record
RecordSet
. Column values can be accessed by either
column name or a zero-based index.Modifier and Type | Method and Description |
---|---|
java.lang.String |
get(int index)
Gets the value of a column by column index.
|
java.lang.String |
get(java.lang.String column)
Gets the value of a column by column name.
|
int |
getCount()
Gets the number of columns in the record.
|
java.lang.String |
getName(int index)
Gets the name of a column.
|
java.util.List |
getNames()
Get the names of the columns in the record.
|
int |
indexOf(java.lang.String column)
Gets the index of column.
|
java.util.List getNames()
java.lang.String getName(int index) throws java.lang.IllegalArgumentException
index
- the zero-based column indexjava.lang.IllegalArgumentException
- if the column index is invalidjava.lang.String get(java.lang.String column) throws java.lang.IllegalArgumentException
column
- the column namejava.lang.IllegalArgumentException
- if the column name is invalidint getCount()
int indexOf(java.lang.String column)
column
- the column namejava.lang.String get(int index) throws java.lang.IllegalArgumentException
index
- zero-based the column indexjava.lang.IllegalArgumentException
- if the column index is invalid