| Modifier and Type | Field and Description |
|---|---|
static TypeArg<Tuple> |
__TYPE_ARG |
static Object |
JSON_NULL
The JSON null literal value.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
addBooleanArray(Boolean[] value)
Add an array of
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 |
addDoubleArray(Double[] value)
Add an array of
Double value at the end of the tuple. |
Tuple |
addFloat(Float value)
Add a float value at the end of the tuple.
|
Tuple |
addFloatArray(Float[] value)
Add an array of
Float value at the end of the tuple. |
Tuple |
addInteger(Integer value)
Add an integer value at the end of the tuple.
|
Tuple |
addIntegerArray(Integer[] value)
Add an array of
Integer value at the end of the tuple. |
Tuple |
addLocalDate(LocalDate value)
Add a
LocalDate value at the end of the tuple. |
Tuple |
addLocalDateArray(LocalDate[] value)
Add an array of value at the end of the tuple.
|
Tuple |
addLocalDateTime(LocalDateTime value)
Add a
LocalDateTime value at the end of the tuple. |
Tuple |
addLocalDateTimeArray(LocalDateTime[] value)
Add an array of value at the end of the tuple.
|
Tuple |
addLocalTime(LocalTime value)
Add a
LocalTime value at the end of the tuple. |
Tuple |
addLocalTimeArray(LocalTime[] value)
Add an array of value at the end of the tuple.
|
Tuple |
addLong(Long value)
Add a long value at the end of the tuple.
|
Tuple |
addLongArray(Long[] value)
Add an array of
Long value at the end of the tuple. |
Tuple |
addOffsetDateTime(OffsetDateTime value)
Add a
OffsetDateTime value at the end of the tuple. |
Tuple |
addOffsetDateTimeArray(OffsetDateTime[] value)
Add an array of value at the end of the tuple.
|
Tuple |
addOffsetTime(OffsetTime value)
Add a
OffsetTime value at the end of the tuple. |
Tuple |
addOffsetTimeArray(OffsetTime[] value)
Add an array of value at the end of the tuple.
|
Tuple |
addShort(Short value)
Add a short value at the end of the tuple.
|
Tuple |
addShortArray(Short[] value)
Add an array of
Short value at the end of the tuple. |
Tuple |
addString(String value)
Add a string value at the end of the tuple.
|
Tuple |
addStringArray(String[] value)
Add an array of
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 |
addUUIDArray(UUID[] value)
Add an array of value at the end of the tuple.
|
Tuple |
addValue(Object value)
Add an object value at the end of the tuple.
|
void |
clear() |
boolean |
equals(Object o) |
<T> T |
get(Class<T> type,
int pos) |
BigDecimal |
getBigDecimal(int pos)
Get value at
pos. |
Boolean |
getBoolean(int pos)
Get a boolean value at
pos. |
Boolean[] |
getBooleanArray(int pos)
Get an array of
Boolean value at pos. |
Buffer |
getBuffer(int pos)
Get a buffer value at
pos. |
Tuple |
getDelegate() |
Double |
getDouble(int pos)
Get a double value at
pos. |
Double[] |
getDoubleArray(int pos)
Get an array of
Double value at pos. |
Float |
getFloat(int pos)
Get a float value at
pos. |
Float[] |
getFloatArray(int pos)
Get an array of
Float value at pos. |
Integer |
getInteger(int pos)
Get an integer value at
pos. |
Integer[] |
getIntegerArray(int pos)
Get an array of
Integer value at pos. |
LocalDate |
getLocalDate(int pos)
Get
LocalDate value at pos. |
LocalDate[] |
getLocalDateArray(int pos)
Get an array of value at
pos. |
LocalDateTime |
getLocalDateTime(int pos)
Get
LocalDateTime value at pos. |
LocalDateTime[] |
getLocalDateTimeArray(int pos)
Get an array of value at
pos. |
LocalTime |
getLocalTime(int pos)
Get
LocalTime value at pos. |
LocalTime[] |
getLocalTimeArray(int pos)
Get an array of value at
pos. |
Long |
getLong(int pos)
Get a long value at
pos. |
Long[] |
getLongArray(int pos)
Get an array of
Long value at pos. |
OffsetDateTime |
getOffsetDateTime(int pos)
Get
OffsetDateTime value at pos. |
OffsetDateTime[] |
getOffsetDateTimeArray(int pos)
Get an array of value at
pos. |
OffsetTime |
getOffsetTime(int pos)
Get
OffsetTime value at pos. |
OffsetTime[] |
getOffsetTimeArray(int pos)
Get an array of value at
pos. |
Short |
getShort(int pos)
Get a short value at
pos. |
Short[] |
getShortArray(int pos)
Get an array of
Short value at pos. |
String |
getString(int pos)
Get a string value at
pos. |
String[] |
getStringArray(int pos)
Get an array of
String value at pos. |
Temporal |
getTemporal(int pos)
Get a
Temporal value at pos. |
UUID |
getUUID(int pos)
Get
UUID value at pos. |
UUID[] |
getUUIDArray(int pos)
Get an array of value at
pos. |
Object |
getValue(int pos)
Get an object value at
pos. |
int |
hashCode() |
static Tuple |
newInstance(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 Tuple |
wrap(List<Object> 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(Tuple delegate)
public Tuple getDelegate()
public static Tuple tuple()
public static Tuple wrap(List<Object> list)
list with a tuple.
list - 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 Boolean getBoolean(int pos)
pos.pos - the positionnullpublic Object getValue(int pos)
pos.pos - the positionnullpublic Short getShort(int pos)
pos.pos - the positionnullpublic Integer getInteger(int pos)
pos.pos - the positionnullpublic Long getLong(int pos)
pos.pos - the positionnullpublic Float getFloat(int pos)
pos.pos - the positionnullpublic Double getDouble(int pos)
pos.pos - the positionnullpublic String getString(int pos)
pos.pos - the positionnullpublic Buffer getBuffer(int pos)
pos.pos - the positionnullpublic Tuple addBoolean(Boolean value)
value - the valuepublic Tuple addValue(Object 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 addBuffer(Buffer value)
value - the valuepublic <T> T get(Class<T> type, int pos)
public int size()
public void clear()
public static Tuple wrap(Object[] array)
array with a tuple.
array - public Temporal getTemporal(int pos)
Temporal value at pos.pos - the positionnullpublic LocalDate getLocalDate(int pos)
LocalDate value at pos.pos - the positionnullpublic LocalTime getLocalTime(int pos)
LocalTime value at pos.pos - the positionnullpublic LocalDateTime getLocalDateTime(int pos)
LocalDateTime value at pos.pos - the positionnullpublic OffsetTime getOffsetTime(int pos)
OffsetTime value at pos.pos - the positionnullpublic OffsetDateTime getOffsetDateTime(int pos)
OffsetDateTime value at pos.pos - the positionnullpublic UUID getUUID(int pos)
UUID value at pos.pos - the positionnullpublic BigDecimal getBigDecimal(int pos)
pos.pos - the positionnullpublic Integer[] getIntegerArray(int pos)
Integer value at pos.pos - the positionnullpublic Boolean[] getBooleanArray(int pos)
Boolean value at pos.pos - the positionnullpublic Short[] getShortArray(int pos)
Short value at pos.pos - the positionnullpublic Long[] getLongArray(int pos)
Long value at pos.pos - the positionnullpublic Float[] getFloatArray(int pos)
Float value at pos.pos - the positionnullpublic Double[] getDoubleArray(int pos)
Double value at pos.pos - the positionnullpublic String[] getStringArray(int pos)
String value at pos.pos - the positionnullpublic LocalDate[] getLocalDateArray(int pos)
pos.pos - the positionnullpublic LocalTime[] getLocalTimeArray(int pos)
pos.pos - the positionnullpublic OffsetTime[] getOffsetTimeArray(int pos)
pos.pos - the positionnullpublic LocalDateTime[] getLocalDateTimeArray(int pos)
pos.pos - the positionnullpublic OffsetDateTime[] getOffsetDateTimeArray(int pos)
pos.pos - the positionnullpublic UUID[] getUUIDArray(int pos)
pos.pos - the columnnullpublic 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 addIntegerArray(Integer[] value)
Integer value at the end of the tuple.value - the valuepublic Tuple addBooleanArray(Boolean[] value)
Boolean value at the end of the tuple.value - the valuepublic Tuple addShortArray(Short[] value)
Short value at the end of the tuple.value - the valuepublic Tuple addLongArray(Long[] value)
Long value at the end of the tuple.value - the valuepublic Tuple addFloatArray(Float[] value)
Float value at the end of the tuple.value - the valuepublic Tuple addDoubleArray(Double[] value)
Double value at the end of the tuple.value - the valuepublic Tuple addStringArray(String[] value)
String value at the end of the tuple.value - the valuepublic Tuple addLocalDateArray(LocalDate[] value)
value - the valuepublic Tuple addLocalTimeArray(LocalTime[] value)
value - the valuepublic Tuple addOffsetTimeArray(OffsetTime[] value)
value - the valuepublic Tuple addLocalDateTimeArray(LocalDateTime[] value)
value - the valuepublic Tuple addOffsetDateTimeArray(OffsetDateTime[] value)
value - the valuepublic Tuple addUUIDArray(UUID[] value)
value - the valueCopyright © 2020. All rights reserved.