Oracle TopLink Developer's Guide 10g Release 3 (10.1.3) B13593-01 |
|
![]() Previous |
![]() Next |
A transformation EIS mapping lets you create a custom mapping, where one or more fields in an EIS record can be used to create the object to be stored in a Java class's attribute.
Table 56-8 summarizes the behavior of this mapping depending on the EIS record type you are using.
Table 56-8 EIS Transformation Mapping by EIS Record Type
EIS Record Type | Mapping Behavior |
---|---|
Indexed |
.The field transformer adds data to the indexed record (you have access to the indexed record in the attribute transformer). |
Mapped |
.The field transformer adds data to the mapped record (you have access to the mapped record in the attribute transformer). |
XML |
.The field transformer adds data to the XML record (you have access to the XML record in the attribute transformer). |
As Figure 56-12 illustrates, you configure the transformation mapping with an oracle.toplink.mappings.transformers.AttributeTransformer
instance to perform the XML instance-to-Java attribute transformation at unmarshall time. In this example, the AttributeTransformer
combines two XML text nodes into a single Java object.
See Chapter 64, "Configuring an EIS Transformation Mapping" for more information.