Module org.eclipse.persistence.core
Interface CoreFieldTransformer<SESSION extends CoreSession>
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
FieldTransformer
- All Known Implementing Classes:
ConstantTransformer
,FieldTransformerAdapter
,MethodBasedFieldTransformer
,NamespaceURITransformer
,QNameTransformer
,QNameTransformer
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
Modifier and TypeFieldDescriptionstatic final String
Method name should be same as the value of this field. -
Method Summary
Modifier and TypeMethodDescriptionbuildFieldValue
(Object instance, String fieldName, SESSION session)
-
Field Details
-
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:
-
-
Method Details
-
buildFieldValue
- Parameters:
instance
- - an instance of the domain class which contains the attributefieldName
- - the name of the field being transformed. Used if the user wants to use this transformer for multiple fields.session
- - the current session- Returns:
- - The value to be written for the field associated with this transformer
-