Interface CoreFieldTransformer<SESSION extends CoreSession>
-
- All Superinterfaces:
java.io.Serializable
- All Known Subinterfaces:
FieldTransformer
- All Known Implementing Classes:
ConstantTransformer
,FieldTransformerAdapter
,MethodBasedFieldTransformer
public interface CoreFieldTransformer<SESSION extends CoreSession> extends java.io.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 java.lang.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 java.lang.Object
buildFieldValue(java.lang.Object instance, java.lang.String fieldName, SESSION session)
-
-
-
Field Detail
-
BUILD_FIELD_VALUE_METHOD
static final java.lang.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
java.lang.Object buildFieldValue(java.lang.Object instance, java.lang.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
-
-