Use this procedure to create transformation mappings.
To create a transformation mapping:
 from the Mapping toolbar.
 from the Mapping toolbar. Figure 7-5 Transformation Mapping Tab
 
You can also specify:
Example 7-1 Transformation Mapping Code Example
The following code example illustrates the methods required for a transformation mapping:
// Get method for the normalHours attribute since method access indicatedaccess public Time[] getNormalHours(){     return normalHours;}// Set method for the normalHours attribute since method access indicatedaccess public void setNormalHours(Time[] theNormalHours){     normalHours = theNormalHours;}// Create attribute transformation method to read from the database row//** Builds the normalHours Vector. IMPORTANT: This method builds the value but does not set it. The mapping will set it using method or direct access as defined in the descriptor. */public Time[] getNormalHoursFromRow(DatabaseRow row){     Time[] hours = new Time[2];    hours[0] = (Time)row.get("START_TIME");    hours[1] = (Time)row.get("END_TIME");    return hours;}// Define a field transformation method to write out the start time. Return the first element of the normalHours attribute.public java.sql.Time getStartTime(){     return getNormalHours()[0];}// Define a field transformation method to write out the end time. Return the last element of the normalHours attribute.public java.sql.Time getEndTime(){     return getNormalHours()[1];}
Copyright © 1997, 2004, Oracle. All rights reserved.