public enum DefaultSQLValueDeserializer extends Enum<DefaultSQLValueDeserializer> implements SQLValueDeserializer
SQLValueDeserializer.SQLValueDeserializer.ValueProcessor| Enum Constant and Description |
|---|
INSTANCE
Singleton instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
addValueProcessor(SQLValueDeserializer.ValueProcessor valueProcessor)
Add a deserialized value processor.
|
<T> T |
deserialize(SQLExecutionContext context,
com.holonplatform.core.TypedExpression<T> expression,
Object valueToDeserialize)
Deserialize the
value associated to given expression, to obtain a value type which
matches the expression type. |
static DefaultSQLValueDeserializer |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefaultSQLValueDeserializer[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetDefaultpublic static final DefaultSQLValueDeserializer INSTANCE
public static DefaultSQLValueDeserializer[] values()
for (DefaultSQLValueDeserializer c : DefaultSQLValueDeserializer.values()) System.out.println(c);
public static DefaultSQLValueDeserializer valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic void addValueProcessor(SQLValueDeserializer.ValueProcessor valueProcessor)
SQLValueDeserializeraddValueProcessor in interface SQLValueDeserializervalueProcessor - the value processor to add (not null)public <T> T deserialize(SQLExecutionContext context, com.holonplatform.core.TypedExpression<T> expression, Object valueToDeserialize) throws SQLException
SQLValueDeserializervalue associated to given expression, to obtain a value type which
matches the expression type.deserialize in interface SQLValueDeserializerT - Expression typecontext - Execution contextexpression - Expression for which the deserialization is invokedvalueToDeserialize - Value to deserializeSQLException - If value cannot be deserialized using given expression typeCopyright © 2019 The Holon Platform. All rights reserved.