| Modifier and Type | Field and Description |
|---|---|
static TypeArg<Tuple> |
__TYPE_ARG |
static Object |
JSON_NULL
The JSON null literal value.
|
| Constructor and Description |
|---|
Tuple(Object delegate) |
Tuple(io.vertx.sqlclient.Tuple delegate) |
| Modifier and Type | Method and Description |
|---|---|
Tuple |
addArrayOfBigDecimal(BigDecimal[] value)
Add an array of value at the end of the tuple.
|
Tuple |
addArrayOfBoolean(Boolean[] value)
Add an array of
Boolean value at the end of the tuple. |
Tuple |
addArrayOfDouble(Double[] value)
Add an array of
Double value at the end of the tuple. |
Tuple |
addArrayOfFloat(Float[] value)
Add an array of
Float value at the end of the tuple. |
Tuple |
addArrayOfInteger(Integer[] value)
Add an array of
Integer value at the end of the tuple. |
Tuple |
addArrayOfJsonArray(io.vertx.core.json.JsonArray[] value)
Add an array of value at the end of the tuple.
|
Tuple |
addArrayOfJsonObject(io.vertx.core.json.JsonObject[] value)
Add an array of value at the end of the tuple.
|
Tuple |
addArrayOfLocalDate(LocalDate[] value)
Add an array of value at the end of the tuple.
|
Tuple |
addArrayOfLocalDateTime(LocalDateTime[] value)
Add an array of value at the end of the tuple.
|
Tuple |
addArrayOfLocalTime(LocalTime[] value)
Add an array of value at the end of the tuple.
|
Tuple |
addArrayOfLong(Long[] value)
Add an array of
Long value at the end of the tuple. |
Tuple |
addArrayOfOffsetDateTime(OffsetDateTime[] value)
Add an array of value at the end of the tuple.
|
Tuple |
addArrayOfOffsetTime(OffsetTime[] value)
Add an array of value at the end of the tuple.
|
Tuple |
addArrayOfShort(Short[] value)
Add an array of
Short value at the end of the tuple. |
Tuple |
addArrayOfString(String[] value)
Add an array of
String value at the end of the tuple. |
Tuple |
addArrayOfTemporal(Temporal[] value)
Add an array of value at the end of the tuple.
|
Tuple |
addArrayOfUUID(UUID[] value)
Add an array of value at the end of the tuple.
|
Tuple |
addBigDecimal(BigDecimal value)
Add a value at the end of the tuple.
|
Tuple |
addBoolean(Boolean value)
Add a boolean value at the end of the tuple.
|
Tuple |
addBuffer(Buffer value)
Add a buffer value at the end of the tuple.
|
Tuple |
addDouble(Double value)
Add a double value at the end of the tuple.
|
Tuple |
addFloat(Float value)
Add a float value at the end of the tuple.
|
Tuple |
addInteger(Integer value)
Add an integer value at the end of the tuple.
|
Tuple |
addJsonArray(io.vertx.core.json.JsonArray value)
Add a value at the end of the tuple.
|
Tuple |
addJsonObject(io.vertx.core.json.JsonObject value)
Add a value at the end of the tuple.
|
Tuple |
addLocalDate(LocalDate value)
Add a
LocalDate value at the end of the tuple. |
Tuple |
addLocalDateTime(LocalDateTime value)
Add a
LocalDateTime value at the end of the tuple. |
Tuple |
addLocalTime(LocalTime value)
Add a
LocalTime value at the end of the tuple. |
Tuple |
addLong(Long value)
Add a long value at the end of the tuple.
|
Tuple |
addOffsetDateTime(OffsetDateTime value)
Add a
OffsetDateTime value at the end of the tuple. |
Tuple |
addOffsetTime(OffsetTime value)
Add a
OffsetTime value at the end of the tuple. |
Tuple |
addShort(Short value)
Add a short value at the end of the tuple.
|
Tuple |
addString(String value)
Add a string value at the end of the tuple.
|
Tuple |
addTemporal(Temporal value)
Add a
Temporal value at the end of the tuple. |
Tuple |
addUUID(UUID value)
Add a
UUID value at the end of the tuple. |
Tuple |
addValue(Object value)
Add an object value at the end of the tuple.
|
void |
clear() |
String |
deepToString() |
boolean |
equals(Object o) |
static <T> Tuple |
from(List<T> list)
Wrap the provided
list with a tuple. |
static Tuple |
from(Object[] array)
Wrap the provided
array with a tuple. |
<T> T |
get(Class<T> type,
int position)
Get the the at the specified
position and the specified type. |
BigDecimal[] |
getArrayOfBigDecimals(int pos)
Get an array of value at
pos. |
Boolean[] |
getArrayOfBooleans(int pos)
Get an array of
Boolean value at pos. |
Double[] |
getArrayOfDoubles(int pos)
Get an array of
Double value at pos. |
Float[] |
getArrayOfFloats(int pos)
Get an array of
Float value at pos. |
Integer[] |
getArrayOfIntegers(int pos)
Get an array of
Integer value at pos. |
io.vertx.core.json.JsonArray[] |
getArrayOfJsonArrays(int pos)
Get an array of value at
pos. |
io.vertx.core.json.JsonObject[] |
getArrayOfJsonObjects(int pos)
Get an array of value at
pos. |
Object[] |
getArrayOfJsons(int pos)
Get an array of JSON elements at
pos, the element might be #JSON_NULL null or one of the following types:
String
Number
JsonObject
JsonArray
Boolean
|
LocalDate[] |
getArrayOfLocalDates(int pos)
Get an array of value at
pos. |
LocalDateTime[] |
getArrayOfLocalDateTimes(int pos)
Get an array of value at
pos. |
LocalTime[] |
getArrayOfLocalTimes(int pos)
Get an array of value at
pos. |
Long[] |
getArrayOfLongs(int pos)
Get an array of
Long value at pos. |
io.vertx.sqlclient.data.Numeric[] |
getArrayOfNumerics(int pos)
Get an array of value at
pos. |
OffsetDateTime[] |
getArrayOfOffsetDateTimes(int pos)
Get an array of value at
pos. |
OffsetTime[] |
getArrayOfOffsetTimes(int pos)
Get an array of value at
pos. |
Short[] |
getArrayOfShorts(int pos)
Get an array of
Short value at pos. |
String[] |
getArrayOfStrings(int pos)
Get an array of
String value at pos. |
Temporal[] |
getArrayOfTemporals(int pos)
Get an array of value at
pos. |
UUID[] |
getArrayOfUUIDs(int pos)
Get an array of value at
pos. |
BigDecimal |
getBigDecimal(int pos)
Get value at
pos. |
Boolean |
getBoolean(int pos)
Get a boolean value at
pos. |
Buffer |
getBuffer(int pos)
Get a buffer value at
pos. |
io.vertx.sqlclient.Tuple |
getDelegate() |
Double |
getDouble(int pos)
Get a double value at
pos. |
Float |
getFloat(int pos)
Get a float value at
pos. |
Integer |
getInteger(int pos)
Get an integer value at
pos. |
Object |
getJson(int pos)
Get a JSON element at
pos, the element might be #JSON_NULL null or one of the following types:
String
Number
JsonObject
JsonArray
Boolean
|
io.vertx.core.json.JsonArray |
getJsonArray(int pos)
Get a value at
pos. |
io.vertx.core.json.JsonObject |
getJsonObject(int pos)
Get a value at
pos. |
LocalDate |
getLocalDate(int pos)
Get
LocalDate value at pos. |
LocalDateTime |
getLocalDateTime(int pos)
Get
LocalDateTime value at pos. |
LocalTime |
getLocalTime(int pos)
Get
LocalTime value at pos. |
Long |
getLong(int pos)
Get a long value at
pos. |
io.vertx.sqlclient.data.Numeric |
getNumeric(int pos)
Get value at
pos. |
OffsetDateTime |
getOffsetDateTime(int pos)
Get
OffsetDateTime value at pos. |
OffsetTime |
getOffsetTime(int pos)
Get
OffsetTime value at pos. |
Short |
getShort(int pos)
Get a short value at
pos. |
String |
getString(int pos)
Get a string value at
pos. |
Temporal |
getTemporal(int pos)
Get a
Temporal value at pos. |
UUID |
getUUID(int pos)
Get
UUID value at pos. |
Object |
getValue(int pos)
Get an object value at
pos. |
int |
hashCode() |
static Tuple |
newInstance(io.vertx.sqlclient.Tuple arg) |
static Tuple |
of(Object elt1)
Create a tuple of one element.
|
static Tuple |
of(Object elt1,
Object elt2)
Create a tuple of two elements.
|
static Tuple |
of(Object elt1,
Object elt2,
Object elt3)
Create a tuple of three elements.
|
static Tuple |
of(Object elt1,
Object elt2,
Object elt3,
Object elt4)
Create a tuple of four elements.
|
static Tuple |
of(Object elt1,
Object elt2,
Object elt3,
Object elt4,
Object elt5)
Create a tuple of five elements.
|
static Tuple |
of(Object elt1,
Object elt2,
Object elt3,
Object elt4,
Object elt5,
Object elt6)
Create a tuple of six elements.
|
int |
size() |
String |
toString() |
static Tuple |
tuple() |
static Tuple |
tuple(List<Object> elements)
Create a tuple with the provided
elements list. |
static <T> Tuple |
wrap(List<T> list)
Wrap the provided
list with a tuple. |
static Tuple |
wrap(Object[] array)
Wrap the provided
array with a tuple. |
public static final Object JSON_NULL
null value. This is only
used when the database supports JSON types.public Tuple(io.vertx.sqlclient.Tuple delegate)
public Tuple(Object delegate)
public io.vertx.sqlclient.Tuple getDelegate()
public static Tuple tuple()
public static <T> Tuple from(List<T> list)
list with a tuple.
list - public static <T> Tuple wrap(List<T> list)
list with a tuple.
tuple() if the list is unmodifiablelist - public static Tuple of(Object elt1)
elt1 - the first valuepublic static Tuple of(Object elt1, Object elt2)
elt1 - the first valueelt2 - the second valuepublic static Tuple of(Object elt1, Object elt2, Object elt3)
elt1 - the first valueelt2 - the second valueelt3 - the third valuepublic static Tuple of(Object elt1, Object elt2, Object elt3, Object elt4)
elt1 - the first valueelt2 - the second valueelt3 - the third valueelt4 - the fourth valuepublic static Tuple of(Object elt1, Object elt2, Object elt3, Object elt4, Object elt5)
elt1 - the first valueelt2 - the second valueelt3 - the third valueelt4 - the fourth valueelt5 - the fifth valuepublic static Tuple of(Object elt1, Object elt2, Object elt3, Object elt4, Object elt5, Object elt6)
elt1 - the first valueelt2 - the second valuegelt3 - the third valueelt4 - the fourth valueelt5 - the fifth valueelt6 - the sixth valuepublic static Tuple tuple(List<Object> elements)
elements list.
The elements list is not modified.elements - the list of elementspublic Object getValue(int pos)
pos.pos - the positionpublic Boolean getBoolean(int pos)
pos.pos - the positionpublic Short getShort(int pos)
pos.pos - the positionpublic Integer getInteger(int pos)
pos.pos - the positionpublic Long getLong(int pos)
pos.pos - the positionpublic Float getFloat(int pos)
pos.pos - the positionpublic Double getDouble(int pos)
pos.pos - the positionpublic String getString(int pos)
pos.pos - the positionpublic io.vertx.core.json.JsonObject getJsonObject(int pos)
pos.pos - the positionpublic io.vertx.core.json.JsonArray getJsonArray(int pos)
pos.pos - the positionpublic Object getJson(int pos)
pos, the element might be #JSON_NULL null or one of the following types:
pos - the positionpublic Buffer getBuffer(int pos)
pos.pos - the positionpublic Tuple addValue(Object value)
value - the valuepublic Tuple addBoolean(Boolean value)
value - the valuepublic Tuple addShort(Short value)
value - the valuepublic Tuple addInteger(Integer value)
value - the valuepublic Tuple addLong(Long value)
value - the valuepublic Tuple addFloat(Float value)
value - the valuepublic Tuple addDouble(Double value)
value - the valuepublic Tuple addString(String value)
value - the valuepublic Tuple addJsonObject(io.vertx.core.json.JsonObject value)
value - the valuepublic Tuple addJsonArray(io.vertx.core.json.JsonArray value)
value - the valuepublic Tuple addBuffer(Buffer value)
value - the valuepublic <T> T get(Class<T> type, int position)
position and the specified type.
The type can be one of the types returned by the row (e.g String.class) or an array
of the type (e.g String[].class)).
type - the expected value typeposition - the value positionpublic int size()
public void clear()
public String deepToString()
Object value of each element, separated by a comma (,) characterpublic static Tuple from(Object[] array)
array with a tuple.
array - public static Tuple wrap(Object[] array)
array with a tuple.
array - public io.vertx.sqlclient.data.Numeric getNumeric(int pos)
pos.pos - the positionpublic Temporal getTemporal(int pos)
Temporal value at pos.pos - the positionpublic LocalDate getLocalDate(int pos)
pos - the positionpublic LocalTime getLocalTime(int pos)
pos - the positionpublic LocalDateTime getLocalDateTime(int pos)
LocalDateTime value at pos.pos - the positionpublic OffsetTime getOffsetTime(int pos)
OffsetTime value at pos.
Target element instance of OffsetDateTime will be
coerced to OffsetTime.
pos - the positionpublic OffsetDateTime getOffsetDateTime(int pos)
OffsetDateTime value at pos.pos - the positionpublic UUID getUUID(int pos)
UUID value at pos.pos - the positionpublic BigDecimal getBigDecimal(int pos)
pos.pos - the positionpublic Boolean[] getArrayOfBooleans(int pos)
Boolean value at pos.
Target element instance of Object[] will be
coerced to Boolean[].
pos - the positionpublic Short[] getArrayOfShorts(int pos)
Short value at pos.
Target element instance of Number[] or Object[] will be
coerced to Short[].
pos - the positionpublic Integer[] getArrayOfIntegers(int pos)
Integer value at pos.
Target element instance of Number[] or Object[] will be
coerced to Integer[].
pos - the positionpublic Long[] getArrayOfLongs(int pos)
Long value at pos.
Target element instance of Number[] or Object[] will be
coerced to Long[].
pos - the positionpublic Float[] getArrayOfFloats(int pos)
Float value at pos.
Target element instance of Number[] or Object[] will be
coerced to Float[].
pos - the positionpublic Double[] getArrayOfDoubles(int pos)
Double value at pos.
Target element instance of Number[] or Object[] will be
coerced to Double[].
pos - the positionpublic io.vertx.sqlclient.data.Numeric[] getArrayOfNumerics(int pos)
pos.pos - the columnpublic String[] getArrayOfStrings(int pos)
String value at pos.
Target element instance of Object[] will be
coerced to String[].
pos - the positionpublic io.vertx.core.json.JsonObject[] getArrayOfJsonObjects(int pos)
pos.pos - the positionpublic io.vertx.core.json.JsonArray[] getArrayOfJsonArrays(int pos)
pos.pos - the positionpublic Object[] getArrayOfJsons(int pos)
pos, the element might be #JSON_NULL null or one of the following types:
pos - the positionpublic Temporal[] getArrayOfTemporals(int pos)
pos.pos - the positionpublic LocalDate[] getArrayOfLocalDates(int pos)
pos.
Target element instance of LocalDateTime[] will be
coerced to LocalDate[].
pos - the positionpublic LocalTime[] getArrayOfLocalTimes(int pos)
pos.
Target element instance of LocalDateTime[] will be
coerced to LocalTime[].
pos - the positionpublic LocalDateTime[] getArrayOfLocalDateTimes(int pos)
pos.pos - the positionpublic OffsetTime[] getArrayOfOffsetTimes(int pos)
pos.
Target element instance of OffsetDateTime[] will be
coerced to OffsetTime[].
pos - the positionpublic OffsetDateTime[] getArrayOfOffsetDateTimes(int pos)
pos.pos - the positionpublic UUID[] getArrayOfUUIDs(int pos)
pos.pos - the columnpublic BigDecimal[] getArrayOfBigDecimals(int pos)
pos.pos - the columnpublic Tuple addTemporal(Temporal value)
Temporal value at the end of the tuple.value - the valuepublic Tuple addLocalDate(LocalDate value)
LocalDate value at the end of the tuple.value - the valuepublic Tuple addLocalTime(LocalTime value)
LocalTime value at the end of the tuple.value - the valuepublic Tuple addLocalDateTime(LocalDateTime value)
LocalDateTime value at the end of the tuple.value - the valuepublic Tuple addOffsetTime(OffsetTime value)
OffsetTime value at the end of the tuple.value - the valuepublic Tuple addOffsetDateTime(OffsetDateTime value)
OffsetDateTime value at the end of the tuple.value - the valuepublic Tuple addUUID(UUID value)
UUID value at the end of the tuple.value - the valuepublic Tuple addBigDecimal(BigDecimal value)
value - the valuepublic Tuple addArrayOfBoolean(Boolean[] value)
Boolean value at the end of the tuple.value - the valuepublic Tuple addArrayOfShort(Short[] value)
Short value at the end of the tuple.value - the valuepublic Tuple addArrayOfInteger(Integer[] value)
Integer value at the end of the tuple.
Target element instance of Number[] will be
coerced to Integer[].
value - the valuepublic Tuple addArrayOfLong(Long[] value)
Long value at the end of the tuple.value - the valuepublic Tuple addArrayOfFloat(Float[] value)
Float value at the end of the tuple.value - the valuepublic Tuple addArrayOfDouble(Double[] value)
Double value at the end of the tuple.value - the valuepublic Tuple addArrayOfString(String[] value)
String value at the end of the tuple.value - the valuepublic Tuple addArrayOfJsonObject(io.vertx.core.json.JsonObject[] value)
value - the valuepublic Tuple addArrayOfJsonArray(io.vertx.core.json.JsonArray[] value)
value - the valuepublic Tuple addArrayOfTemporal(Temporal[] value)
value - the valuepublic Tuple addArrayOfLocalDate(LocalDate[] value)
value - the valuepublic Tuple addArrayOfLocalTime(LocalTime[] value)
value - the valuepublic Tuple addArrayOfLocalDateTime(LocalDateTime[] value)
value - the valuepublic Tuple addArrayOfOffsetTime(OffsetTime[] value)
value - the valuepublic Tuple addArrayOfOffsetDateTime(OffsetDateTime[] value)
value - the valuepublic Tuple addArrayOfUUID(UUID[] value)
value - the valuepublic Tuple addArrayOfBigDecimal(BigDecimal[] value)
value - the valuepublic static Tuple newInstance(io.vertx.sqlclient.Tuple arg)
Copyright © 2022 Eclipse. All rights reserved.