Module org.eclipse.persistence.core
Class AttributeTransformerAdapter
- java.lang.Object
-
- org.eclipse.persistence.mappings.transformers.AttributeTransformerAdapter
-
- All Implemented Interfaces:
Serializable,AttributeTransformer
public class AttributeTransformerAdapter extends 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.
- Since:
- 10
- Version:
- $Header: AttributeTransformerAdapter.java 11-jul-2006.10:33:44 gyorke Exp $
- Author:
- mmacivor
- See Also:
AttributeTransformer, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AttributeTransformerAdapter()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectbuildAttributeValue(DataRecord dataRecord, Object object, Session session)voidinitialize(AbstractTransformationMapping mapping)
-
-
-
Method Detail
-
initialize
public void initialize(AbstractTransformationMapping mapping)
- Specified by:
initializein interfaceAttributeTransformer- Parameters:
mapping- - The mapping associated with this transformer. Only used if some special information is required.
-
buildAttributeValue
public Object buildAttributeValue(DataRecord dataRecord, Object object, Session session)
- Specified by:
buildAttributeValuein interfaceAttributeTransformer- Parameters:
dataRecord- - 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.
-
-