public class AttributeTransformerAdapter extends java.lang.Object implements AttributeTransformer
Purpose: Provides an empty implementation of AttributeTransformer. Users who do not require the full AttributeTransformer API can subclass this class and implement only the methods required.
org.eclipse.persistence.mappings.AttributeTransformer
,
Serialized FormConstructor and Description |
---|
AttributeTransformerAdapter() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
buildAttributeValue(Record record,
java.lang.Object object,
Session session) |
void |
initialize(AbstractTransformationMapping mapping) |
public void initialize(AbstractTransformationMapping mapping)
initialize
in interface AttributeTransformer
mapping
- - The mapping associated with this transformer. Only used if some special information is required.public java.lang.Object buildAttributeValue(Record record, java.lang.Object object, Session session)
buildAttributeValue
in interface AttributeTransformer
record
- - The metadata being used to build the object.object
- - The current object that the attribute is being built for.session
- - the current session