| Package | Description |
|---|---|
| com.holonplatform.datastore.jdbc.composer |
| Modifier and Type | Method and Description |
|---|---|
static SQLExecutionContext |
SQLExecutionContext.create(SQLContext context)
Create a new
SQLExecutionContext using given SQLContext. |
static SQLExecutionContext |
SQLExecutionContext.create(SQLContext context,
Connection connection)
|
| Modifier and Type | Method and Description |
|---|---|
R |
SQLResultConverter.convert(SQLExecutionContext context,
SQLResult result)
Convert a
SQLResult into expected result type. |
<T> T |
SQLValueDeserializer.deserialize(SQLExecutionContext context,
com.holonplatform.core.TypedExpression<T> expression,
Object value)
Deserialize the
value associated to given expression, to obtain a value type which
matches the expression type. |
default <T> T |
SQLResult.getValue(SQLExecutionContext context,
int index)
Get the result value at given
index using current SQLValueDeserializer to obtain the value
in the expected type. |
default <T> T |
SQLResult.getValue(SQLExecutionContext context,
String name)
Get the result value with given
name using current SQLValueDeserializer to obtain the value
in the expected type. |
default <T> T |
SQLResult.getValue(SQLExecutionContext context,
com.holonplatform.core.TypedExpression<T> expression,
int index)
Get the result value at given
index, using given expression to provide the expected
value type and any other value deserialization strategy element, such as a converter, which can be used by
current SQLValueDeserializer. |
default <T> T |
SQLResult.getValue(SQLExecutionContext context,
com.holonplatform.core.TypedExpression<T> expression,
String name)
Get the result value with given
name, using given expression to provide the expected
value type and any other value deserialization strategy element, such as a converter, which can be used by
current SQLValueDeserializer. |
Object |
SQLValueDeserializer.ValueProcessor.processValue(SQLExecutionContext context,
com.holonplatform.core.TypedExpression<?> expression,
Object value)
Process a value to be deserialized.
|
| Modifier and Type | Method and Description |
|---|---|
static <R> SQLResultConverter<R> |
SQLResultConverter.create(Class<? extends R> conversionType,
BiFunction<SQLExecutionContext,SQLResult,R> conversionFunction)
Create a new
SQLResultConverter for given conversionType, using provided BiFunction
as result conversion strategy. |
Copyright © 2019 The Holon Platform. All rights reserved.