public interface JPQLValueDeserializer
| Modifier and Type | Interface and Description |
|---|---|
static interface |
JPQLValueDeserializer.ValueProcessor
Processor to process a value before actual deserialization.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addValueProcessor(JPQLValueDeserializer.ValueProcessor valueProcessor)
Add a deserialized value processor.
|
<T> T |
deserialize(JpaExecutionContext 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. |
static JPQLValueDeserializer |
getDefault()
Create the default
JPQLValueDeserializer. |
<T> T deserialize(JpaExecutionContext context, com.holonplatform.core.TypedExpression<T> expression, Object value) throws com.holonplatform.core.exceptions.DataAccessException
value associated to given expression, to obtain a value type which
matches the expression type.T - Expression typecontext - Execution contextexpression - Expression for which the deserialization is invokedvalue - Value to deserializecom.holonplatform.core.exceptions.DataAccessException - If value cannot be deserialized using given expression typevoid addValueProcessor(JPQLValueDeserializer.ValueProcessor valueProcessor)
valueProcessor - the value processor to add (not null)static JPQLValueDeserializer getDefault()
JPQLValueDeserializer.JPQLValueDeserializerCopyright © 2019 The Holon Platform. All rights reserved.