| Installing Upgrading Designing Configuring Deploying Monitoring Administering Troubleshooting Reference JBI Components | |
| Close Print View | |
| Designing: Connect To Database |
|
Creating a Runtime Environment
Designing Business Processes in the Sun Business Process Manager
Working with TCP/IP HL7 Collaborations
Developing Sun Master Indexes (Repository)
Developing Sun Master Patient Indexes
Developing OTDs for Application Adapters
Developing OTDs for Communication Adapters
Developing OTDs for Database Adapters
Steps to Edit an Existing Informix OTD
Steps to Edit the OTD from the Java CAPS IDE Include:
To Edit the OTD from the Java CAPS IDE
Editing an Existing Sybase OTD
To Edit the OTD from the Java CAPS IDE
Using the OTD Importer in Netbeans
Developing OTDs for Web Server Adapters
Designing with Application Adapters
Designing with Communication Adapters
Designing with Web Server Adapters
Designing with Sun JCA Adapters
Informix Database and click the Next button. The New Wizard - Informix Database
window appears.
Required Database Connection Fields include:
Host name- the name of the host to which you are connecting.
Port ID- the host port number (1526 is the default).
Informix Server- the name of the Informix server.
Database name- the name of the database to which you are connecting.
User name- a valid Informix database username.
Password- a password for the user name noted above.
Select the type of Informix database objects you want included in the OTD.
Steps Required to Select Database Objects Include:
Note - Views are read-only and are for informational purposes only.

Select the types of tables, views, or aliases required in the OTD.
Steps Required to Select Table/Views/Aliases Include:


The table selected is added to the Selected Tables/Views/Aliases section (see the following figure).

The data type is usually listed as Other when the driver cannot detect the data type. In these situations we recommend changing the data type to one that is more appropriate for the type of column data.

Note - The Informix database driver currently deployed with the Informix adapter displays non-nullable columns in the OTD wizard dialogue box regardless of whether the columns in the database accept null values or not.
Select the type of stored procedures required in your OTD.
Steps Required to Select Stored Procedures Include:

Note - You must use lower case schema names when calling stored procedures.
Note - The Informix database driver currently deployed with the Informix adapter does not return metadata to provide fully the type of stored procedure available when a search is executed. Thus the Type field for all procedures will be populated with “Unknown.”

The DBWizard provides three different ways to generate the ResultSet nodes of a Stored Procedure. They are "By Executing", "Manually", and "With Assistance" modes.
"By Executing" mode executes the specified Stored Procedure with default values to generate the ResultSet(s). Depending on the business logic of the Stored Procedure, zero or more ResultSets can be returned from the execution. In the case that there are multiple ResultSets and "By Executing" mode does not return all ResultSets, one should use the other modes to generate the ResultSet nodes.
"With Assistance" mode allows users to specify a query and execute it to generate the ResultSet node. To facilitate this operation, the DBWizard tries to retrieve the content of the specified Stored Procedure and display it. However, content retrieval is not supported by all types of Stored Procedures. We can roughly classify Stored Procedures into two types: SQL and external. SQL Stored Procedures are created using CREATE PROCEDURE SQL statements while external Stored Procedures are created using host languages (e.g. Java). Since external Stored Procedures do not store their execution plans in the database, content retrieval is impossible. When using "Assist" mode, highlight the execute statement up to and including the table name(s) before executing the query.
"Manually" mode is the most flexible way to generate the result set nodes. It allows users to specify the node name, original column name and data type manually. One drawback of this method is that users need to know the original column names and data types. This is not always possible. For example, the column name of 3*C in this query.
SELECT A, B, 3*C FROM table T
is generated by the database. In this case, "With Assistance" mode is a better choice.
If you modify the ResultSet generated by the “Execute” mode of the Database Wizard you need to make sure the indexes match the Stored Procedure. This assures your ResultSet indexes are preserved.
Add a Prepared Statement object to your OTD.
Steps Required to Add Prepared Statements Include:
Note - When using a Prepared Statement, the ”ResultsAvailable()’ method will always return true. Although this method is available, you should not use it with a ”while’ loop. Doing so would result in an infinite loop at runtime and will stop all of the system’s CPU. If it is used, it should only be used with the ”if’ statement.





Specify the name that your OTD will display in the Java CAPS IDE.
Steps Required to Specify the OTD Name:

Review the selections made for the new OTD.
Steps Required to Review Your OTD Selections:
The resulting OTD appears on the Java CAPS IDE.
