public class ParameterValue
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ParameterValue.Builder
Builder.
|
| Constructor and Description |
|---|
ParameterValue() |
| Modifier and Type | Method and Description |
|---|---|
static ParameterValue |
array(java.lang.String typeName,
java.lang.Object[] elements)
Creates a
ParameterValue object with a type of Array. |
static ParameterValue |
bigNumeric(java.math.BigDecimal value)
Creates a
ParameterValue object with a type of BigDecimal. |
static ParameterValue |
blob(java.sql.Blob value)
Creates a
ParameterValue object with a type of Blob. |
static ParameterValue |
bool(java.lang.Boolean value)
Creates a
ParameterValue object with a type of Boolean. |
static ParameterValue |
bytes(byte[] value)
Creates a
ParameterValue object with a type of byte[]. |
static ParameterValue |
float64(java.lang.Double value)
Creates a
ParameterValue object with a type of Double. |
static ParameterValue |
float64(java.lang.Float value)
Creates a
ParameterValue object with a type of Float. |
java.lang.Class<?> |
getType() |
java.lang.Object |
getValue() |
static ParameterValue |
int64(java.lang.Integer value)
Creates a
ParameterValue object with a type of Integer. |
static ParameterValue |
int64(java.lang.Long value)
Creates a
ParameterValue object with a type of Long. |
static ParameterValue.Builder |
newBuilder() |
static <T> ParameterValue |
of(T value,
java.lang.Class<?> type)
Creates a
ParameterValue object with the given value and type. |
static ParameterValue |
string(java.lang.String value)
Creates a
ParameterValue object with a type of String. |
java.lang.String |
toString() |
public java.lang.Class<?> getType()
public java.lang.Object getValue()
public java.lang.String toString()
toString in class java.lang.Objectpublic static ParameterValue.Builder newBuilder()
public static <T> ParameterValue of(T value, java.lang.Class<?> type)
ParameterValue object with the given value and type.T - Tvalue - value valuetype - type typepublic static ParameterValue bool(java.lang.Boolean value)
ParameterValue object with a type of Boolean.value - valuepublic static ParameterValue string(java.lang.String value)
ParameterValue object with a type of String.value - valuepublic static ParameterValue int64(java.lang.Long value)
ParameterValue object with a type of Long.value - valuepublic static ParameterValue int64(java.lang.Integer value)
ParameterValue object with a type of Integer.value - valuepublic static ParameterValue float64(java.lang.Double value)
ParameterValue object with a type of Double.value - valuepublic static ParameterValue float64(java.lang.Float value)
ParameterValue object with a type of Float.value - valuepublic static ParameterValue bigNumeric(java.math.BigDecimal value)
ParameterValue object with a type of BigDecimal.value - valuepublic static ParameterValue bytes(byte[] value)
ParameterValue object with a type of byte[].value - valuepublic static ParameterValue blob(java.sql.Blob value)
ParameterValue object with a type of Blob.value - valuepublic static ParameterValue array(java.lang.String typeName, java.lang.Object[] elements)
ParameterValue object with a type of Array.typeName - value typeelements - value