You can configure the Java Integration stage to process
data as a source for 1 or more output links.
Procedure
- On the job design canvas, double-click the Java
Integration stage icon.
- Select the Output tab and select
the output link that you want to edit from the Output name
(downstream stage) drop down list. By editing the output
link you are setting up Java Integration stage to be the source.
- Specify an optional description of the output link in the General tab.
- Optional: Click Configure to configure additional properties. Depending on your user code
the Custom Property Editor, Column
Mapping Editor or the Column Metadata Importer window is displayed.
- You need to specify values for the properties. If your
user code exposes user-defined properties by using the Processor.getUserPropertyDefinitions() method, the Custom Property Editor window
is displayed where you can specify the value of each property.
- If your user code uses JavaBeans in its interface (by
implementing the Processor.getBeanForInput() and Processor.getBeanForOutput() methods), the Column
Mapping Editor window is displayed. Populate DataStage
column schema based on the JavaBeans properties and then map JavaBeans
properties to the DataStage columns. If you create a job where the
links contain no columns, then the initial Column Mapping
Editor contains empty tables. Click Browse
Objects to launch Select Bean Properties window, and select the bean properties or user-defined function
(UDF) arguments to be imported in the Column Mapping Editor, and then click OK. Click Finish. You can also map JavaBean properties to existing DataStage columns,
instead of creating new columns.
- If your user code implements the Processor.getColumnMetadataForInput() and Processor.getColumnMetadataForOutput() methods
instead of implementing the Processor.getBeanForInput() and Processor.getBeanForOutput() methods, the Column Metadata Importer window is displayed. In the Column Metadata Importer window select the column metadata
to populate DataStage column schema from a list of ColumnMetadata instances that are returned by the Processor.getColumnMetadataForInput() and Processor.getColumnMetadataForOutput() methods
for each link. Click Browse Objects and select
the column metadata to be populated in the job. Click Finish.
- Specify required details in the Properties tab and the Advanced tab.
- Click OK to save the connection
settings that you specified.