***  This interface provides Binary Compatibility only, not Source Compatibility  ***

com.sas.services.publish
Interface ResultSetProviderInterface

All Superinterfaces:
java.rmi.Remote
All Known Subinterfaces:
DatasetEntryInterface

public interface ResultSetProviderInterface
extends java.rmi.Remote

An object which provides result sets which may be remote.

Since:
1.0

Method Summary
 RemoteResultSetInterface getRemoteResultSet()
          Gets a remote result set This method is invoked on a remote object or if the returned ResultSet needs to be remoted.
 java.sql.ResultSet getResultSet()
          Gets a ResultSet.
 java.lang.Object hasResultSet()
          Check if getResultSet will succeed.
 

Method Detail

hasResultSet

java.lang.Object hasResultSet()
                              throws java.rmi.UnmarshalException,
                                     java.rmi.RemoteException
Check if getResultSet will succeed. See getResultSet() to determine whether this method should be used.

Returns:
non-null if getResultSet() would succeed; throws UnmarshalException if it would fail
Throws:
java.rmi.UnmarshalException - if invoked on a remote object
java.rmi.RemoteException - if a network I/O error occurs.

getResultSet

java.sql.ResultSet getResultSet()
                                throws java.rmi.UnmarshalException,
                                       TransportException,
                                       java.rmi.RemoteException
Gets a ResultSet. If this method is invoked on a remote object, a UnmarshalException exception is thrown if the ResultSet was successfully created since ResultSet is not serializable. However, the ResultSet will have been created. If this is an issue hasResultSet() may be invoked to determine if getResultSet would succeed. If a ResultSet is needed in a remote context getRemoteResultSet should be invoked.

Returns:
a result set from the provider;null if the provider does not provide the result set
Throws:
java.rmi.UnmarshalException - if invoked on a remote object
TransportException - if an exception occurred while constructing the ResultSet
java.rmi.RemoteException - if a network I/O error occurs.

getRemoteResultSet

RemoteResultSetInterface getRemoteResultSet()
                                            throws TransportException,
                                                   java.rmi.RemoteException
Gets a remote result set This method is invoked on a remote object or if the returned ResultSet needs to be remoted.

Returns:
a ResultSet from the provider.
Throws:
java.rmi.UnmarshalException - if invoked on a remote object
TransportException - if an exception occurred while constructing the RemoteResultSetInterface
java.rmi.RemoteException - if a network I/O error occurs.

***  This interface provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2009 SAS Institute Inc. All Rights Reserved.