public interface SqlRow
Modifier and Type | Method and Description |
---|---|
SqlRowMetadata |
getMetadata()
Gets row metadata.
|
<T> T |
getObject(int columnIndex)
Gets the value of the column by index.
|
<T> T |
getObject(String columnName)
Gets the value of the column by column name.
|
<T> T getObject(int columnIndex)
The class of the returned value depends on the SQL type of the column. No implicit conversions are performed on the value.
columnIndex
- column index, zero-based.IndexOutOfBoundsException
- if the column index is out of boundsClassCastException
- if the type of the column type isn't assignable to the type T
getMetadata()
,
SqlColumnMetadata.getType()
<T> T getObject(@Nonnull String columnName)
Column name should be one of those defined in SqlRowMetadata
, case-sensitive. You may also use
SqlRowMetadata.findColumn(String)
to test for column existence.
The class of the returned value depends on the SQL type of the column. No implicit conversions are performed on the value.
columnName
- column nameNullPointerException
- if column name is nullIllegalArgumentException
- if a column with the given name is not foundClassCastException
- if the type of the column type isn't assignable to the type T
getMetadata()
,
SqlRowMetadata.findColumn(String)
,
SqlColumnMetadata.getName()
,
SqlColumnMetadata.getType()
@Nonnull SqlRowMetadata getMetadata()
SqlRowMetadata
Copyright © 2023 Hazelcast, Inc.. All rights reserved.