public interface SerializationStrategy
Every strategy can support a different set of data types.
| Modifier and Type | Method and Description |
|---|---|
<T> T |
deserialize(String serialized,
Class<T> targetType)
Deserialize payload into the expected
targetType |
GridType |
overrideType(org.hibernate.type.Type type)
If the datastore does not support a
Type the dialect might override it with a custom one. |
String |
serialize(Object payload)
Serialize the
payload into the target representation. |
<T> T deserialize(String serialized, Class<T> targetType)
targetTypeT - expected typeserialized - string in the serialized formtargetType - expected typetargetType or nullString serialize(Object payload)
payload into the target representation.payload - the payloadGridType overrideType(org.hibernate.type.Type type)
Type the dialect might override it with a custom one.type - The Type that might need to be overriddentype or null if the type does not need to be overriddenCopyright © 2010–2016 Hibernate. All rights reserved.