org.eclipse.persistence.mappings.transformers
Class AttributeTransformerAdapter
java.lang.Object
org.eclipse.persistence.mappings.transformers.AttributeTransformerAdapter
- All Implemented Interfaces:
- java.io.Serializable, AttributeTransformer
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.
- Version:
- $Header: /cvsroot/org.eclipse/www/eclipselink/api/2.2/org/eclipse/persistence/mappings/transformers/AttributeTransformerAdapter.html,v 1.2 2011/02/14 15:11:09 pkrogh Exp $
- See Also:
org.eclipse.persistence.mappings.AttributeTransformer
,
Serialized Form- Author:
- mmacivor
- Since:
- 10
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributeTransformerAdapter
public AttributeTransformerAdapter()
initialize
public void initialize(AbstractTransformationMapping mapping)
- Specified by:
initialize
in interface AttributeTransformer
- Parameters:
mapping
- - The mapping associated with this transformer. Only used if some special information is required.
buildAttributeValue
public java.lang.Object buildAttributeValue(Record record,
java.lang.Object object,
Session session)
- Specified by:
buildAttributeValue
in interface AttributeTransformer
- Parameters:
record
- - The metadata being used to build the object.object
- - The current object that the attribute is being built for.session
- - the current session
- Returns:
- - The attribute value to be built into the object containing this mapping.