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

public Class AttributeTransformerAdapter

extends Object
implements AttributeTransformer
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.mappings.transformers.AttributeTransformer, java.io.Serializable
Imports
org.eclipse.persistence.sessions.DataRecord, .Session, org.eclipse.persistence.mappings.foundation.AbstractTransformationMapping

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.

Author
mmacivor
Since
10
Version
$Header: AttributeTransformerAdapter.java 11-jul-2006.10:33:44 gyorke Exp $
See Also
AttributeTransformer

Constructor Summary

AccessConstructor and Description
public
AttributeTransformerAdapter()

Default constructor.

Method Summary

Modifier and TypeMethod and Description
public Object
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
)

Implements org.eclipse.persistence.mappings.transformers.AttributeTransformer.buildAttributeValue.

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

Implements org.eclipse.persistence.mappings.transformers.AttributeTransformer.initialize.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AttributeTransformerAdapterback to summary
public AttributeTransformerAdapter()

Default constructor.

Method Detail

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

Implements org.eclipse.persistence.mappings.transformers.AttributeTransformer.buildAttributeValue.

Parameters
dataRecord:DataRecord

Doc from org.eclipse.persistence.mappings.transformers.AttributeTransformer.buildAttributeValue.

- The metadata being used to build the object.

object:Object

Doc from org.eclipse.persistence.mappings.transformers.AttributeTransformer.buildAttributeValue.

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

session:Session

Doc from org.eclipse.persistence.mappings.transformers.AttributeTransformer.buildAttributeValue.

- the current session

Returns:Object

Doc from org.eclipse.persistence.mappings.transformers.AttributeTransformer.buildAttributeValue.

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

Annotations
@Override
initializeback to summary
public void initialize(AbstractTransformationMapping mapping)

Implements org.eclipse.persistence.mappings.transformers.AttributeTransformer.initialize.

Parameters
mapping:AbstractTransformationMapping

Doc from org.eclipse.persistence.mappings.transformers.AttributeTransformer.initialize.

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

Annotations
@Override