You can configure Java™ Integration stage as a
target to write data. Java Integration stage as a target can
have one or more input links, and zero or more reject links.
Procedure
- On the job design canvas, double-click the Java Integration stage
icon.
- Select the Input tab and select the input link that you want to
edit from the Input name (upstream stage) drop down list. By editing the
input link you are setting up Java Integration stage to be the
target.
- Specify an optional description of the input link in the General
tab.
- Optional: Click Configure to configure additional
properties. Depending on the 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 settings that you specified.