A single row in a query result.
- Since:
- 1.2
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptionget
(int index) Returns the value at the specified index.<T> T
Returns the value at the specified index in the specified type.Returns the value of the column identified by the specified name.<T> T
Returns the value of the column identified by the specified name in the specified type.getBigDecimal
(int index) Returns the value at the specified index as a BigDecimal.getBigDecimal
(String name) Returns the value of the column identified by the specified name as a BigDecimal.getBoolean
(int index) Returns the value at the specified index as a Boolean.getBoolean
(String name) Returns the value of the column identified by the specified name as a Boolean.getByte
(int index) Returns the value at the specified index as a Byte.Returns the value of the column identified by the specified name as a Byte.getByteBuf
(int index) Returns the value at the specified index as a ByteBuf.getByteBuf
(String name) Returns the value of the column identified by the specified name as a ByteBuf.getDouble
(int index) Returns the value at the specified index as a Double.Returns the value of the column identified by the specified name as a Double.getFloat
(int index) Returns the value at the specified index as a Float.Returns the value of the column identified by the specified name as a Float.getInteger
(int index) Returns the value at the specified index as an Integer.getInteger
(String name) Returns the value of the column identified by the specified name as an Integer.getLocalDate
(int index) Returns the value at the specified index as a LocalDate.getLocalDate
(String name) Returns the value of the column identified by the specified name as a LocalDate.getLocalDateTime
(int index) Returns the value at the specified index as a LocalDateTime.getLocalDateTime
(String name) Returns the value of the column identified by the specified name as a LocalDateTime.getLocalTime
(int index) Returns the value at the specified index as a LocalTime.getLocalTime
(String name) Returns the value of the column identified by the specified name as a LocalTime.getLong
(int index) Returns the value at the specified index as a Long.Returns the value of the column identified by the specified name as a Long.getOffsetDateTime
(int index) Returns the value at the specified index as an OffsetDateTime.getOffsetDateTime
(String name) Returns the value of the column identified by the specified name as an OffsetDateTime.getOffsetTime
(int index) Returns the value at the specified index as an OffsetTime.getOffsetTime
(String name) Returns the value of the column identified by the specified name as an OffsetTime.getShort
(int index) Returns the value at the specified index as a Short.Returns the value of the column identified by the specified name as a Short.getString
(int index) Returns the value at the specified index as a String.Returns the value of the column identified by the specified name as a String.
-
Method Details
-
get
Returns the value at the specified index in the specified type.
- Type Parameters:
T
- the value type- Parameters:
index
- the index of the value in the rowtype
- the expected type of the value- Returns:
- the value or null
- Throws:
ClassCastException
- if the value can't be cast into the type
-
get
Returns the value of the column identified by the specified name in the specified type.
- Type Parameters:
T
- the value type- Parameters:
name
- the name of the columntype
- the expected type of the value- Returns:
- the value or null
- Throws:
ClassCastException
- if the value can't be cast into the typeNoSuchElementException
- if there is no column with the specified name
-
get
Returns the value at the specified index.
- Parameters:
index
- the index of the value in the row- Returns:
- the value or null
-
get
Returns the value of the column identified by the specified name.
- Parameters:
name
- the name of the column- Returns:
- the value or null
- Throws:
NoSuchElementException
- if there is no column with the specified name
-
getString
Returns the value at the specified index as a String.
- Parameters:
index
- the index of the value in the row- Returns:
- the value or null
- Throws:
ClassCastException
- if the value can't be cast into a String
-
getString
Returns the value of the column identified by the specified name as a String.
- Parameters:
name
- the name of the column- Returns:
- the value or null
- Throws:
NoSuchElementException
- if there is no column with the specified nameClassCastException
- if the value can't be cast into a String
-
getBoolean
Returns the value at the specified index as a Boolean.
- Parameters:
index
- the index of the value in the row- Returns:
- the value or null
- Throws:
ClassCastException
- if the value can't be cast into a Boolean
-
getBoolean
Returns the value of the column identified by the specified name as a Boolean.
- Parameters:
name
- the name of the column- Returns:
- the value or null
- Throws:
NoSuchElementException
- if there is no column with the specified nameClassCastException
- if the value can't be cast into a Boolean
-
getByte
Returns the value at the specified index as a Byte.
- Parameters:
index
- the index of the value in the row- Returns:
- the value or null
- Throws:
ClassCastException
- if the value can't be cast into a Byte
-
getByte
Returns the value of the column identified by the specified name as a Byte.
- Parameters:
name
- the name of the column- Returns:
- the value or null
- Throws:
NoSuchElementException
- if there is no column with the specified nameClassCastException
- if the value can't be cast into a Byte
-
getShort
Returns the value at the specified index as a Short.
- Parameters:
index
- the index of the value in the row- Returns:
- the value or null
- Throws:
ClassCastException
- if the value can't be cast into a Short
-
getShort
Returns the value of the column identified by the specified name as a Short.
- Parameters:
name
- the name of the column- Returns:
- the value or null
- Throws:
NoSuchElementException
- if there is no column with the specified nameClassCastException
- if the value can't be cast into a Short
-
getInteger
Returns the value at the specified index as an Integer.
- Parameters:
index
- the index of the value in the row- Returns:
- the value or null
- Throws:
ClassCastException
- if the value can't be cast into an Integer
-
getInteger
Returns the value of the column identified by the specified name as an Integer.
- Parameters:
name
- the name of the column- Returns:
- the value or null
- Throws:
NoSuchElementException
- if there is no column with the specified nameClassCastException
- if the value can't be cast into an Integer
-
getLong
Returns the value at the specified index as a Long.
- Parameters:
index
- the index of the value in the row- Returns:
- the value or null
- Throws:
ClassCastException
- if the value can't be cast into a Long
-
getLong
Returns the value of the column identified by the specified name as a Long.
- Parameters:
name
- the name of the column- Returns:
- the value or null
- Throws:
NoSuchElementException
- if there is no column with the specified nameClassCastException
- if the value can't be cast into a Long
-
getFloat
Returns the value at the specified index as a Float.
- Parameters:
index
- the index of the value in the row- Returns:
- the value or null
- Throws:
ClassCastException
- if the value can't be cast into a Float
-
getFloat
Returns the value of the column identified by the specified name as a Float.
- Parameters:
name
- the name of the column- Returns:
- the value or null
- Throws:
NoSuchElementException
- if there is no column with the specified nameClassCastException
- if the value can't be cast into a Float
-
getDouble
Returns the value at the specified index as a Double.
- Parameters:
index
- the index of the value in the row- Returns:
- the value or null
- Throws:
ClassCastException
- if the value can't be cast into a Double
-
getDouble
Returns the value of the column identified by the specified name as a Double.
- Parameters:
name
- the name of the column- Returns:
- the value or null
- Throws:
NoSuchElementException
- if there is no column with the specified nameClassCastException
- if the value can't be cast into a Double
-
getBigDecimal
Returns the value at the specified index as a BigDecimal.
- Parameters:
index
- the index of the value in the row- Returns:
- the value or null
- Throws:
ClassCastException
- if the value can't be cast into a BigDecimal
-
getBigDecimal
Returns the value of the column identified by the specified name as a BigDecimal.
- Parameters:
name
- the name of the column- Returns:
- the value or null
- Throws:
NoSuchElementException
- if there is no column with the specified nameClassCastException
- if the value can't be cast into a BigDecimal
-
getLocalDate
Returns the value at the specified index as a LocalDate.
- Parameters:
index
- the index of the value in the row- Returns:
- the value or null
- Throws:
ClassCastException
- if the value can't be cast into a LocalDate
-
getLocalDate
Returns the value of the column identified by the specified name as a LocalDate.
- Parameters:
name
- the name of the column- Returns:
- the value or null
- Throws:
NoSuchElementException
- if there is no column with the specified nameClassCastException
- if the value can't be cast into a LocalDate
-
getLocalTime
Returns the value at the specified index as a LocalTime.
- Parameters:
index
- the index of the value in the row- Returns:
- the value or null
- Throws:
ClassCastException
- if the value can't be cast into a LocalTime
-
getLocalTime
Returns the value of the column identified by the specified name as a LocalTime.
- Parameters:
name
- the name of the column- Returns:
- the value or null
- Throws:
NoSuchElementException
- if there is no column with the specified nameClassCastException
- if the value can't be cast into a LocalTime
-
getLocalDateTime
Returns the value at the specified index as a LocalDateTime.
- Parameters:
index
- the index of the value in the row- Returns:
- the value or null
- Throws:
ClassCastException
- if the value can't be cast into a LocalDateTime
-
getLocalDateTime
Returns the value of the column identified by the specified name as a LocalDateTime.
- Parameters:
name
- the name of the column- Returns:
- the value or null
- Throws:
NoSuchElementException
- if there is no column with the specified nameClassCastException
- if the value can't be cast into a LocalDateTime
-
getOffsetTime
Returns the value at the specified index as an OffsetTime.
- Parameters:
index
- the index of the value in the row- Returns:
- the value or null
- Throws:
ClassCastException
- if the value can't be cast into an OffsetTime
-
getOffsetTime
Returns the value of the column identified by the specified name as an OffsetTime.
- Parameters:
name
- the name of the column- Returns:
- the value or null
- Throws:
NoSuchElementException
- if there is no column with the specified nameClassCastException
- if the value can't be cast into an OffsetTime
-
getOffsetDateTime
Returns the value at the specified index as an OffsetDateTime.
- Parameters:
index
- the index of the value in the row- Returns:
- the value or null
- Throws:
ClassCastException
- if the value can't be cast into an OffsetDateTime
-
getOffsetDateTime
Returns the value of the column identified by the specified name as an OffsetDateTime.
- Parameters:
name
- the name of the column- Returns:
- the value or null
- Throws:
NoSuchElementException
- if there is no column with the specified nameClassCastException
- if the value can't be cast into an OffsetDateTime
-
getByteBuf
Returns the value at the specified index as a ByteBuf.
- Parameters:
index
- the index of the value in the row- Returns:
- the value or null
- Throws:
ClassCastException
- if the value can't be cast into a ByteBuf
-
getByteBuf
Returns the value of the column identified by the specified name as a ByteBuf.
- Parameters:
name
- the name of the column- Returns:
- the value or null
- Throws:
NoSuchElementException
- if there is no column with the specified nameClassCastException
- if the value can't be cast into a ByteBuf
-