public class FieldTransformerAdapter extends java.lang.Object implements FieldTransformer
Purpose: Provides an empty implementation of FieldTransformer. Users who do not require the full FieldTransformer API can subclass this class and implement only the methods required.
org.eclipse.persistence.mappings.FieldTransformer,
Serialized Form| Constructor and Description |
|---|
FieldTransformerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
buildFieldValue(java.lang.Object object,
java.lang.String fieldName,
Session session) |
void |
initialize(AbstractTransformationMapping mapping)
Initialize this transformer.
|
public void initialize(AbstractTransformationMapping mapping)
FieldTransformerinitialize in interface FieldTransformermapping - - the mapping this transformer is associated with.public java.lang.Object buildFieldValue(java.lang.Object object,
java.lang.String fieldName,
Session session)
buildFieldValue in interface FieldTransformerobject - - 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