Handling the Output
Use
For a Function
IInteraction.execute returns MappedRecord as output.
Using MappedRecord can retrieve output parameter values by parameter name: MappedRecord.get(paramname) , which returns an object. There are four possibilities of output handling:
-
If the parameter type is a primitive, you get an object, such as String, Integer, Float .
-
If the parameter type is tabular, IRecordset is returned. ( IRecordset is parallel to the standard java.sql.resultset .)
-
If the parameter type is array, then it returns an array of objects of one of these four types.
-
If the output is a set of objects where each of them may be one of these four types, IRecordset is returned.
For a Query
INativeQuery returns an object, the type of which depends on the EIS. For example, an RDBMS using the JDBC connector returns java.sql.resultset .
execute(IOperation operation) returns an integer indicating a number of rows. Iterate using IExection methods to retrieve the entire record set.
See the Javadoc for the portal and portal runtime APIs at http://help.sap.com/javadocs. The packages related to the connector framework start with com.sapportals.connector* .