public interface SQLValueSerializer
| Modifier and Type | Method and Description |
|---|---|
static SQLValueSerializer |
getDefault()
Get the default
SQLValueSerializer. |
default String |
serialize(Object value)
Serialize given value as a SQL string.
|
String |
serialize(Object value,
com.holonplatform.core.temporal.TemporalType temporalType)
Serialize given value as a SQL string.
|
Optional<String> |
serializeTemporal(Object value,
com.holonplatform.core.temporal.TemporalType temporalType)
Try to serialize given temporal value as a SQL string, using given
temporalType to select a suitable
serialization format. |
default String serialize(Object value)
value - Value to serializenull value will be serialized as the NULL stringString serialize(Object value, com.holonplatform.core.temporal.TemporalType temporalType)
value - Value to serializetemporalType - The TemporalType to use with temporal valuesnull value will be serialized as the NULL stringOptional<String> serializeTemporal(Object value, com.holonplatform.core.temporal.TemporalType temporalType)
temporalType to select a suitable
serialization format.value - Value to serializetemporalType - Value temporal typestatic SQLValueSerializer getDefault()
SQLValueSerializer.SQLValueSerializerCopyright © 2019 The Holon Platform. All rights reserved.