simpledb.remote
Class RemoteResultSetImpl

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by simpledb.remote.RemoteResultSetImpl
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, RemoteResultSet

 class RemoteResultSetImpl
extends java.rmi.server.UnicastRemoteObject
implements RemoteResultSet

The RMI server-side implementation of RemoteResultSet.

Author:
Edward Sciore

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
RemoteResultSetImpl(Plan plan, RemoteConnectionImpl rconn)
          Creates a RemoteResultSet object.
 
Method Summary
 void close()
          Closes the result set by closing its scan.
 int getInt(java.lang.String fldname)
          Returns the integer value of the specified field, by returning the corresponding value on the saved scan.
 RemoteMetaData getMetaData()
          Returns the result set's metadata, by passing its schema into the RemoteMetaData constructor.
 java.lang.String getString(java.lang.String fldname)
          Returns the integer value of the specified field, by returning the corresponding value on the saved scan.
 boolean next()
          Moves to the next record in the result set, by moving to the next record in the saved scan.
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoteResultSetImpl

public RemoteResultSetImpl(Plan plan,
                           RemoteConnectionImpl rconn)
                    throws java.rmi.RemoteException
Creates a RemoteResultSet object. The specified plan is opened, and the scan is saved.

Parameters:
plan - the query plan
rconn - TODO
Throws:
java.rmi.RemoteException
Method Detail

next

public boolean next()
             throws java.rmi.RemoteException
Moves to the next record in the result set, by moving to the next record in the saved scan.

Specified by:
next in interface RemoteResultSet
Throws:
java.rmi.RemoteException
See Also:
RemoteResultSet.next()

getInt

public int getInt(java.lang.String fldname)
           throws java.rmi.RemoteException
Returns the integer value of the specified field, by returning the corresponding value on the saved scan.

Specified by:
getInt in interface RemoteResultSet
Throws:
java.rmi.RemoteException
See Also:
RemoteResultSet.getInt(java.lang.String)

getString

public java.lang.String getString(java.lang.String fldname)
                           throws java.rmi.RemoteException
Returns the integer value of the specified field, by returning the corresponding value on the saved scan.

Specified by:
getString in interface RemoteResultSet
Throws:
java.rmi.RemoteException
See Also:
RemoteResultSet.getInt(java.lang.String)

getMetaData

public RemoteMetaData getMetaData()
                           throws java.rmi.RemoteException
Returns the result set's metadata, by passing its schema into the RemoteMetaData constructor.

Specified by:
getMetaData in interface RemoteResultSet
Throws:
java.rmi.RemoteException
See Also:
RemoteResultSet.getMetaData()

close

public void close()
           throws java.rmi.RemoteException
Closes the result set by closing its scan.

Specified by:
close in interface RemoteResultSet
Throws:
java.rmi.RemoteException
See Also:
RemoteResultSet.close()