Chapter 1 Java Classes and Interfaces
package com.sybase.CORBA.jdbc11;
public class IdlResultSet
extends java.lang.Object
implements jaguar.sql.JServerResultSet;
Implements the JServerResultSet interface, allowing you to construct TabularResults.ResultSet instances for component methods that return row results.
Component methods that return row results to clients return TabularResults.ResultSet or TabularResults.ResultSet[]. IdlResultSet allows you to create instances of these types using the JDBC style JServerResultSet interfaces.
For documentation of the TabularResults IDL types, see the generated Interface Repository documentation .
To return a single result set, initialize the rows and columns using the JServerResultSetMetaData and JServerResultSet methods, then convert to a TabularResults.ResultSet instance as shown in this code fragment:
JServerResultSetMetaData jsrs;
... define column formats ...
IdlResultSet irs = new IdlResultSet(jsrsmd);
... define row data using JServerResultSet methods ...
return irs.getResultSet();
To return multiple result sets, build an array of TabularResults.ResultSet instances, as follows:
java.util.Vector vector = new Vector();
vector.addElement(irs.getResultSet());
TabularResults.ResultSet[] array =
new TabularResults.ResultSet[vector.size()];
vector.copyInto(array);
return array;
jaguar.sql.JServerResultSet interface, jaguar.sql.JServerResultSetMetaData interface
Copyright © 2000 Sybase, Inc. All rights reserved. |
![]() |