Interface IPreFieldDeserializationHookParams
-
public interface IPreFieldDeserializationHookParams
Parameters for the pre deserialization hook of fields- Since:
- 7.0.5
- Author:
- XIMA Media GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description de.xima.cmn.dao.interfaces.IEntity<Long>
getEntity()
String
getFcSerializationVersion()
Field
getField()
String
getFieldName()
com.google.gson.stream.JsonReader
getJsonReader()
BE CAREFUL & DELIBERATE! when accessing values of the JSON reader since it will alter the current position in the reader which may cause errors moving forward in deserialization of entities.IEntityDeserializationStateHolder
getStateHolder()
Gets the state holder for setting and retrieving data.
-
-
-
Method Detail
-
getFieldName
String getFieldName()
- Returns:
String
name of the entity field that is currently being processed
-
getField
Field getField()
- Returns:
Field
Entity field that is currently being processed. May benull
if no corresponding field was found on the entity
-
getJsonReader
com.google.gson.stream.JsonReader getJsonReader()
BE CAREFUL & DELIBERATE! when accessing values of the JSON reader since it will alter the current position in the reader which may cause errors moving forward in deserialization of entities.- Returns:
JsonReader
that is being evaluated while processing the current field
-
getEntity
de.xima.cmn.dao.interfaces.IEntity<Long> getEntity()
- Returns:
- the entity that is currently being processed
-
getFcSerializationVersion
String getFcSerializationVersion()
- Returns:
- the formcycle version in which the entity was serialized
-
getStateHolder
IEntityDeserializationStateHolder getStateHolder()
Gets the state holder for setting and retrieving data. The state's lifecycle is tied to the entity being serialized. In particular, state set inhandlePreFieldDeserializationHook
will be available inhandlePostEntityDeserializationHook
.- Returns:
IStateHolder
state holder for the entity being processed.
-
-