A database query may return one single row or multiple rows.
3. Select the option Expect Single Row if you expect one single row. Select the option Expect Columns as List if you expect a list of values that you map to a List variable. Select the option Expect Multiple Rows if you expect multiple rows.
For multiple rows, you can only map the whole ResultSet to an Object type output variable. The Object dataslot in your process must be of type, com.sun.rowset.CachedRowSetImpl. For information regarding creating an Object dataslot, see Chapter 12, "Using Dataslots" in OpenEdge Getting Started: Developing BPM Applications with Developer Studio. The CachedRowSetImpl object can be processed by a custom adapter, or can be displayed as a table as described in the Displaying multiple rows selection section.
For a single row, you can specify the output variable to which a column maps.
4. Click OK to complete the Database Adapter configuration.
To configure the installed Database Adapter, use the DBAdapter.cmd|.sh script and save the adapter configuration in the OEBPS_HOME\managedadapters\DB\DB1 directory with the name config.xml.