Top Description Methods
org.eclipse.persistence.mappings.transformers

public Interface AttributeTransformer

extends Serializable
Known Direct Implementers
org.eclipse.persistence.mappings.transformers.AttributeTransformerAdapter, org.eclipse.persistence.mappings.transformers.MethodBasedAttributeTransformer
Imports
java.io.*, org.eclipse.persistence.sessions.Session, .DataRecord, org.eclipse.persistence.mappings.foundation.AbstractTransformationMapping

PUBLIC:
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.
Version
$Header: AttributeTransformer.java 11-jul-2006.10:33:44 gyorke Exp $

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

- The attribute value to be built into the object containing this mapping.
buildAttributeValue
(DataRecord
- The metadata being used to build the object.
dataRecord
,
Object
- The current object that the attribute is being built for.
object
,
Session
- the current session
session
)

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

Method Detail

buildAttributeValueback to summary
public Object buildAttributeValue(DataRecord dataRecord, Object object, Session session)
Parameters
dataRecord:DataRecord

- The metadata being used to build the object.

object:Object

- The current object that the attribute is being built for.

session:Session

- the current session

Returns:Object

- The attribute value to be built into the object containing this mapping.

initializeback to summary
public void initialize(AbstractTransformationMapping mapping)
Parameters
mapping:AbstractTransformationMapping

- The mapping associated with this transformer. Only used if some special information is required.