Interface CoreFieldTransformer<SESSION extends CoreSession>
-
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
FieldTransformer
- All Known Implementing Classes:
ConstantTransformer
,FieldTransformerAdapter
,MethodBasedFieldTransformer
public interface CoreFieldTransformer<SESSION extends CoreSession> extends Serializable
This interface is used by the Transformation Mapping to build the value for a specific field. The user must provide implementations of this interface to the Transformation Mapping.
-
-
Field Summary
Fields Modifier and Type Field Description static String
BUILD_FIELD_VALUE_METHOD
Method name should be same as the value of this field.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
buildFieldValue(Object instance, String fieldName, SESSION session)
-
-
-
Field Detail
-
BUILD_FIELD_VALUE_METHOD
static final String BUILD_FIELD_VALUE_METHOD
Method name should be same as the value of this field. This field is used to find method name in reflection call.- See Also:
- Constant Field Values
-
-
Method Detail
-
buildFieldValue
Object buildFieldValue(Object instance, String fieldName, SESSION session)
- Parameters:
instance
- - an instance of the domain class which contains the attributesession
- - the current sessionfieldName
- - the name of the field being transformed. Used if the user wants to use this transformer for multiple fields.- Returns:
- - The value to be written for the field associated with this transformer
-
-