Interface FieldTransformer
- All Superinterfaces:
CoreFieldTransformer<Session>,Serializable
- All Known Implementing Classes:
ConstantTransformer,FieldTransformerAdapter,MethodBasedFieldTransformer,NamespaceURITransformer,QNameTransformer
PUBLIC:
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.
- Author:
- mmacivor
-
Field Summary
Fields inherited from interface org.eclipse.persistence.core.mappings.transformers.CoreFieldTransformer
BUILD_FIELD_VALUE_METHOD -
Method Summary
Modifier and TypeMethodDescriptionbuildFieldValue(Object instance, String fieldName, Session session) voidinitialize(AbstractTransformationMapping mapping) Initialize this transformer.
-
Method Details
-
initialize
Initialize this transformer. Only required if the user needs some special information from the mapping in order to do the transformation- Parameters:
mapping- - the mapping this transformer is associated with.
-
buildFieldValue
- Specified by:
buildFieldValuein interfaceCoreFieldTransformer<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
-