EclipseLink 1.1.1_ 1.1.1.v20090430-r4097 API Reference

org.eclipse.persistence.mappings.transformers
Interface AttributeTransformer

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
AttributeTransformerAdapter, MethodBasedAttributeTransformer, QNameTransformer

public interface AttributeTransformer
extends java.io.Serializable

PUBLIC:

Version:
$Header: /cvsroot/org.eclipse/www/eclipselink/api/1.1.1/org/eclipse/persistence/mappings/transformers/AttributeTransformer.html,v 1.1 2009/05/12 17:53:57 pkrogh Exp $
Author:
mmacivor
Since:
10 This interface is used by the Transformation Mapping to build the value for a the mapped attribute on a read. The user must provide an implementation of this interface to the Transformation Mapping.

Method Summary
 java.lang.Object buildAttributeValue(Record record, java.lang.Object object, Session session)
           
 void initialize(AbstractTransformationMapping mapping)
           
 

Method Detail

initialize

void initialize(AbstractTransformationMapping mapping)
Parameters:
mapping - - The mapping associated with this transformer. Only used if some special information is required.

buildAttributeValue

java.lang.Object buildAttributeValue(Record record,
                                     java.lang.Object object,
                                     Session session)
Parameters:
record - - The metadata being used to build the object.
session - - the current session
object - - The current object that the attribute is being built for.
Returns:
- The attribute value to be built into the object containing this mapping.

EclipseLink 1.1.1_ 1.1.1.v20090430-r4097 API Reference