Java components send result sets to the client using the interfaces in the com.sybase.jaguar.sql package:
Methods in the JServerResultSetMetaData interface define the format of rows in a result set.
Methods in the JServerResultSet interface define column values for rows in a result set and send the rows to the client.
You don’t have to implement these interfaces. The jaguar.server.JContext class contains static methods for obtaining objects that implement these interfaces.
To send database data to the client:
Get the data by sending a query to the remote server. Use java.sql.Statement or one of its extensions. The appropriate method depends on the query you are making.
Convert the results of the query to TabularResults.ResultSet.
You can also send the result set row by row by building another ResultSet object that contains a subset of the original query. Methods in the metadata and resultset interfaces let you specify the columns and data in the result set.