T - Parameter typepublic interface SQLParameter<T>
extends com.holonplatform.core.TypedExpression<T>
| Modifier and Type | Method and Description |
|---|---|
static <T> SQLParameter<T> |
create(T value,
Class<? extends T> type)
Create a new
SQLParameter. |
static <T> SQLParameter<T> |
create(T value,
Class<? extends T> type,
Function<String,String> serializationFunction)
Create a new
SQLParameter. |
static <T> SQLParameter<T> |
create(T value,
Class<? extends T> type,
com.holonplatform.core.temporal.TemporalType temporalType)
Create a new
SQLParameter. |
static <T> SQLParameter<T> |
create(T value,
Class<? extends T> type,
com.holonplatform.core.temporal.TemporalType temporalType,
Function<String,String> serializationFunction)
Create a new
SQLParameter. |
default Function<String,String> |
getSerializationFunction()
Optional function which has to be used to serialize the parameter placeholder in the SQL statement.
|
T |
getValue()
Get the parameter value
|
T getValue()
nulldefault Function<String,String> getSerializationFunction()
static <T> SQLParameter<T> create(T value, Class<? extends T> type)
SQLParameter.T - Parameter value typevalue - Parameter valuetype - Parameter value type (not null)SQLParameterstatic <T> SQLParameter<T> create(T value, Class<? extends T> type, com.holonplatform.core.temporal.TemporalType temporalType)
SQLParameter.T - Parameter value typevalue - Parameter valuetype - Parameter value type (not null)temporalType - Value temporal typeSQLParameterstatic <T> SQLParameter<T> create(T value, Class<? extends T> type, Function<String,String> serializationFunction)
SQLParameter.T - Parameter value typevalue - Parameter valuetype - Parameter value type (not null)serializationFunction - Parameter serialization functionSQLParameterstatic <T> SQLParameter<T> create(T value, Class<? extends T> type, com.holonplatform.core.temporal.TemporalType temporalType, Function<String,String> serializationFunction)
SQLParameter.T - Parameter value typevalue - Parameter valuetype - Parameter value type (not null)temporalType - Value temporal typeserializationFunction - Parameter serialization functionSQLParameterCopyright © 2019 The Holon Platform. All rights reserved.