Class Tuple

  • Direct Known Subclasses:
    Row

    public class Tuple
    extends Object
    A general purpose tuple.

    CAUTION: indexes start at 0, not at 1.

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

    • Field Detail

      • JSON_NULL

        public static final Object JSON_NULL
        The JSON null literal value.
        It is used to distinguish a JSON null literal value from the Java null value. This is only used when the database supports JSON types.
    • Constructor Detail

      • Tuple

        public Tuple​(io.vertx.sqlclient.Tuple delegate)
      • Tuple

        public Tuple​(Object delegate)
    • Method Detail

      • getDelegate

        public io.vertx.sqlclient.Tuple getDelegate()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • tuple

        public static Tuple tuple()
        Returns:
        a new empty tuple
      • from

        public static <T> Tuple from​(List<T> list)
        Parameters:
        list -
        Returns:
        the list wrapped as a tuple
      • wrap

        public static <T> Tuple wrap​(List<T> list)
        Parameters:
        list -
        Returns:
        the list wrapped as a tuple
      • of

        public static Tuple of​(Object elt1)
        Parameters:
        elt1 - the first value
        Returns:
        the tuple
      • of

        public static Tuple of​(Object elt1,
                               Object elt2)
        Parameters:
        elt1 - the first value
        elt2 - the second value
        Returns:
        the tuple
      • of

        public static Tuple of​(Object elt1,
                               Object elt2,
                               Object elt3)
        Parameters:
        elt1 - the first value
        elt2 - the second value
        elt3 - the third value
        Returns:
        the tuple
      • of

        public static Tuple of​(Object elt1,
                               Object elt2,
                               Object elt3,
                               Object elt4)
        Parameters:
        elt1 - the first value
        elt2 - the second value
        elt3 - the third value
        elt4 - the fourth value
        Returns:
        the tuple
      • of

        public static Tuple of​(Object elt1,
                               Object elt2,
                               Object elt3,
                               Object elt4,
                               Object elt5)
        Parameters:
        elt1 - the first value
        elt2 - the second value
        elt3 - the third value
        elt4 - the fourth value
        elt5 - the fifth value
        Returns:
        the tuple
      • of

        public static Tuple of​(Object elt1,
                               Object elt2,
                               Object elt3,
                               Object elt4,
                               Object elt5,
                               Object elt6)
        Parameters:
        elt1 - the first value
        elt2 - the second valueg
        elt3 - the third value
        elt4 - the fourth value
        elt5 - the fifth value
        elt6 - the sixth value
        Returns:
        the tuple
      • tuple

        public static Tuple tuple​(List<Object> elements)
        Parameters:
        elements - the list of elements
        Returns:
        the tuple
      • getValue

        public Object getValue​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getBoolean

        public Boolean getBoolean​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getShort

        public Short getShort​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getInteger

        public Integer getInteger​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getLong

        public Long getLong​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getFloat

        public Float getFloat​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getDouble

        public Double getDouble​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getString

        public String getString​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getJsonObject

        public io.vertx.core.json.JsonObject getJsonObject​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getJsonArray

        public io.vertx.core.json.JsonArray getJsonArray​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getJson

        public Object getJson​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getBuffer

        public Buffer getBuffer​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • addValue

        public Tuple addValue​(Object value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addBoolean

        public Tuple addBoolean​(Boolean value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addShort

        public Tuple addShort​(Short value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addInteger

        public Tuple addInteger​(Integer value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addLong

        public Tuple addLong​(Long value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addFloat

        public Tuple addFloat​(Float value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addDouble

        public Tuple addDouble​(Double value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addString

        public Tuple addString​(String value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addJsonObject

        public Tuple addJsonObject​(io.vertx.core.json.JsonObject value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addJsonArray

        public Tuple addJsonArray​(io.vertx.core.json.JsonArray value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addBuffer

        public Tuple addBuffer​(Buffer value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • get

        public <T> T get​(Class<T> type,
                         int position)
        Parameters:
        type - the expected value type
        position - the value position
        Returns:
        the value if the value is found or null.
      • size

        public int size()
        Returns:
        the tuple size
      • clear

        public void clear()
      • deepToString

        public String deepToString()
        Returns:
        A String containing the Object value of each element, separated by a comma (,) character
      • from

        public static Tuple from​(Object[] array)
        Parameters:
        array -
        Returns:
        the list wrapped as a tuple
      • wrap

        public static Tuple wrap​(Object[] array)
        Parameters:
        array -
        Returns:
        the list wrapped as a tuple
      • getNumeric

        public io.vertx.sqlclient.data.Numeric getNumeric​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getTemporal

        public Temporal getTemporal​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getLocalDate

        public LocalDate getLocalDate​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getLocalTime

        public LocalTime getLocalTime​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getLocalDateTime

        public LocalDateTime getLocalDateTime​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getOffsetTime

        public OffsetTime getOffsetTime​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getOffsetDateTime

        public OffsetDateTime getOffsetDateTime​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getUUID

        public UUID getUUID​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getBigDecimal

        public BigDecimal getBigDecimal​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getArrayOfBooleans

        public Boolean[] getArrayOfBooleans​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getArrayOfShorts

        public Short[] getArrayOfShorts​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getArrayOfIntegers

        public Integer[] getArrayOfIntegers​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getArrayOfLongs

        public Long[] getArrayOfLongs​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getArrayOfFloats

        public Float[] getArrayOfFloats​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getArrayOfDoubles

        public Double[] getArrayOfDoubles​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getArrayOfNumerics

        public io.vertx.sqlclient.data.Numeric[] getArrayOfNumerics​(int pos)
        Parameters:
        pos - the column
        Returns:
        the value
      • getArrayOfStrings

        public String[] getArrayOfStrings​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getArrayOfJsonObjects

        public io.vertx.core.json.JsonObject[] getArrayOfJsonObjects​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getArrayOfJsonArrays

        public io.vertx.core.json.JsonArray[] getArrayOfJsonArrays​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getArrayOfJsons

        public Object[] getArrayOfJsons​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getArrayOfTemporals

        public Temporal[] getArrayOfTemporals​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getArrayOfLocalDates

        public LocalDate[] getArrayOfLocalDates​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getArrayOfLocalTimes

        public LocalTime[] getArrayOfLocalTimes​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getArrayOfLocalDateTimes

        public LocalDateTime[] getArrayOfLocalDateTimes​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getArrayOfOffsetTimes

        public OffsetTime[] getArrayOfOffsetTimes​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getArrayOfOffsetDateTimes

        public OffsetDateTime[] getArrayOfOffsetDateTimes​(int pos)
        Parameters:
        pos - the position
        Returns:
        the value
      • getArrayOfUUIDs

        public UUID[] getArrayOfUUIDs​(int pos)
        Parameters:
        pos - the column
        Returns:
        the value
      • getArrayOfBigDecimals

        public BigDecimal[] getArrayOfBigDecimals​(int pos)
        Parameters:
        pos - the column
        Returns:
        the value
      • addTemporal

        public Tuple addTemporal​(Temporal value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addLocalDate

        public Tuple addLocalDate​(LocalDate value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addLocalTime

        public Tuple addLocalTime​(LocalTime value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addLocalDateTime

        public Tuple addLocalDateTime​(LocalDateTime value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addOffsetTime

        public Tuple addOffsetTime​(OffsetTime value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addOffsetDateTime

        public Tuple addOffsetDateTime​(OffsetDateTime value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addUUID

        public Tuple addUUID​(UUID value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addBigDecimal

        public Tuple addBigDecimal​(BigDecimal value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addArrayOfBoolean

        public Tuple addArrayOfBoolean​(Boolean[] value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addArrayOfShort

        public Tuple addArrayOfShort​(Short[] value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addArrayOfInteger

        public Tuple addArrayOfInteger​(Integer[] value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addArrayOfLong

        public Tuple addArrayOfLong​(Long[] value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addArrayOfFloat

        public Tuple addArrayOfFloat​(Float[] value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addArrayOfDouble

        public Tuple addArrayOfDouble​(Double[] value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addArrayOfString

        public Tuple addArrayOfString​(String[] value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addArrayOfJsonObject

        public Tuple addArrayOfJsonObject​(io.vertx.core.json.JsonObject[] value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addArrayOfJsonArray

        public Tuple addArrayOfJsonArray​(io.vertx.core.json.JsonArray[] value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addArrayOfTemporal

        public Tuple addArrayOfTemporal​(Temporal[] value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addArrayOfLocalDate

        public Tuple addArrayOfLocalDate​(LocalDate[] value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addArrayOfLocalTime

        public Tuple addArrayOfLocalTime​(LocalTime[] value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addArrayOfLocalDateTime

        public Tuple addArrayOfLocalDateTime​(LocalDateTime[] value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addArrayOfOffsetTime

        public Tuple addArrayOfOffsetTime​(OffsetTime[] value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addArrayOfOffsetDateTime

        public Tuple addArrayOfOffsetDateTime​(OffsetDateTime[] value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addArrayOfUUID

        public Tuple addArrayOfUUID​(UUID[] value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • addArrayOfBigDecimal

        public Tuple addArrayOfBigDecimal​(BigDecimal[] value)
        Parameters:
        value - the value
        Returns:
        a reference to this, so the API can be used fluently
      • newInstance

        public static Tuple newInstance​(io.vertx.sqlclient.Tuple arg)