Class Row

java.lang.Object
io.vertx.mutiny.sqlclient.Tuple
io.vertx.mutiny.sqlclient.Row
All Implemented Interfaces:
MutinyDelegate

public class Row extends Tuple implements MutinyDelegate
A single row of the execution result rowset.

NOTE: This class has been automatically generated from the original non Mutiny-ified interface.

See Also:
  • Row
  • Field Details

    • __TYPE_ARG

      public static final TypeArg<Row> __TYPE_ARG
  • Constructor Details

    • Row

      public Row(io.vertx.sqlclient.Row delegate)
      Create a new instance of Row delegating to the given (non-null) instance of Row.
    • Row

      public Row(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.sqlclient.Row getDelegate()
      Get the delegate instance.

      This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.

      Specified by:
      getDelegate in interface MutinyDelegate
      Overrides:
      getDelegate in class Tuple
      Returns:
      the delegate instance
    • getColumnName

      public String getColumnName(int pos)
      Get a column name at pos.
      Parameters:
      pos - the column position
      Returns:
      the column name or null
    • getColumnIndex

      public int getColumnIndex(String column)
      Get a column position for the given @code column}.
      Parameters:
      column - the column name
      Returns:
      the column name or -1 if not found
    • getValue

      public Object getValue(String column)
      Get a value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getBoolean

      public Boolean getBoolean(String column)
      Get a boolean value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getByte

      public Byte getByte(String column)
      Get a byte value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getShort

      public Short getShort(String column)
      Get a short value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getInteger

      public Integer getInteger(String column)
      Get an integer value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getLong

      public Long getLong(String column)
      Get a long value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getFloat

      public Float getFloat(String column)
      Get a float value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getDouble

      public Double getDouble(String column)
      Get a double value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getNumeric

      public io.vertx.sqlclient.data.Numeric getNumeric(String column)
      Get Numeric value for the given column.
      Parameters:
      column - the column
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getString

      public String getString(String column)
      Get a string value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getJson

      public Object getJson(String column)
      Get a JSON element for the given column, the element might be null or one of the following types:
      • String
      • Number
      • JsonObject
      • JsonArray
      • Boolean
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getJsonObject

      public io.vertx.core.json.JsonObject getJsonObject(String column)
      Get a JsonObject value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getJsonArray

      public io.vertx.core.json.JsonArray getJsonArray(String column)
      Get a JsonArray value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getTemporal

      public Temporal getTemporal(String column)
      Get a temporal value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getLocalDate

      public LocalDate getLocalDate(String column)
      Get LocalDate value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getLocalTime

      public LocalTime getLocalTime(String column)
      Get LocalTime value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getLocalDateTime

      public LocalDateTime getLocalDateTime(String column)
      Get LocalDateTime value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getOffsetTime

      public OffsetTime getOffsetTime(String column)
      Get OffsetTime value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getOffsetDateTime

      public OffsetDateTime getOffsetDateTime(String column)
      Get OffsetDateTime value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getBuffer

      public io.vertx.core.buffer.Buffer getBuffer(String column)
      Get a buffer value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getUUID

      public UUID getUUID(String column)
      Get UUID value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getBigDecimal

      public BigDecimal getBigDecimal(String column)
      Get BigDecimal value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getArrayOfBooleans

      public Boolean[] getArrayOfBooleans(String column)
      Get an array of Boolean value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getArrayOfBytes

      public Byte[] getArrayOfBytes(String column)
      Get an array of Byte value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getArrayOfShorts

      public Short[] getArrayOfShorts(String column)
      Get an array of Short value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getArrayOfIntegers

      public Integer[] getArrayOfIntegers(String column)
      Get an array of Integer value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getArrayOfLongs

      public Long[] getArrayOfLongs(String column)
      Get an array of Long value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getArrayOfFloats

      public Float[] getArrayOfFloats(String column)
      Get an array of Float value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getArrayOfDoubles

      public Double[] getArrayOfDoubles(String column)
      Get an array of Double value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getArrayOfNumerics

      public io.vertx.sqlclient.data.Numeric[] getArrayOfNumerics(String column)
      Get an array of Numeric value for the given column.
      Parameters:
      column - the column
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getArrayOfStrings

      public String[] getArrayOfStrings(String column)
      Get an array of String value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getArrayOfJsonObjects

      public io.vertx.core.json.JsonObject[] getArrayOfJsonObjects(String column)
      Get an array of JsonObject value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getArrayOfJsonArrays

      public io.vertx.core.json.JsonArray[] getArrayOfJsonArrays(String column)
      Get an array of JsonArray value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getArrayOfTemporals

      public Temporal[] getArrayOfTemporals(String column)
      Get an array of Temporal value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getArrayOfLocalDates

      public LocalDate[] getArrayOfLocalDates(String column)
      Get an array of LocalDate value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getArrayOfLocalTimes

      public LocalTime[] getArrayOfLocalTimes(String column)
      Get an array of LocalTime value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getArrayOfLocalDateTimes

      public LocalDateTime[] getArrayOfLocalDateTimes(String column)
      Get an array of LocalDateTime value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getArrayOfOffsetTimes

      public OffsetTime[] getArrayOfOffsetTimes(String column)
      Get an array of OffsetTime value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getArrayOfOffsetDateTimes

      public OffsetDateTime[] getArrayOfOffsetDateTimes(String column)
      Get an array of OffsetDateTime value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getArrayOfUUIDs

      public UUID[] getArrayOfUUIDs(String column)
      Get an array of UUID value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getArrayOfBigDecimals

      public BigDecimal[] getArrayOfBigDecimals(String column)
      Get an array of BigDecimal value for the given column.
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • getArrayOfJsons

      public Object[] getArrayOfJsons(String column)
      Get an array of JSON elements for the given column, the element might be null or one of the following types:
      • String
      • Number
      • JsonObject
      • JsonArray
      • Boolean
      Parameters:
      column - the column name
      Returns:
      the column value
      Throws:
      when - the column does not exist
    • get

      public <T> T get(Class<T> type, String column)
      Like Tuple.get(Class, int) but specifying the column instead of the position.
    • toJson

      public io.vertx.core.json.JsonObject toJson()
      Return a JSON object representation of the row.

      Column names are mapped to JSON keys.

      The following rules are applied for the column values:

      • number, boolean and string are preserved
      • the null value is preserved
      • JSON elements are preserved
      • Buffer are converted to base64 encoded strings
      • array is mapped JsonArray
      • otherwise the type converted to a string
      Returns:
      the json representation
    • release

      public void release()
      Signal the row can be recycled, this is only effective when dealing with a row in a collector query and the row has already been processed and transformed.
    • newInstance

      public static Row newInstance(io.vertx.sqlclient.Row delegate)
      Creates a new instance of the Row.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Tuple
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Tuple
    • toString

      public String toString()
      Overrides:
      toString in class Tuple