simpledb.remote
Class RemoteStatementImpl

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.RemoteStatementImpl
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, RemoteStatement

 class RemoteStatementImpl
extends java.rmi.server.UnicastRemoteObject
implements RemoteStatement

The RMI server-side implementation of RemoteStatement.

Author:
Edward Sciore

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
RemoteStatementImpl(RemoteConnectionImpl rconn)
           
 
Method Summary
 RemoteResultSet executeQuery(java.lang.String qry)
          Executes the specified SQL query string.
 int executeUpdate(java.lang.String cmd)
          Executes the specified SQL update command.
 
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

RemoteStatementImpl

public RemoteStatementImpl(RemoteConnectionImpl rconn)
                    throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

executeQuery

public RemoteResultSet executeQuery(java.lang.String qry)
                             throws java.rmi.RemoteException
Executes the specified SQL query string. The method calls the query planner to create a plan for the query. It then sends the plan to the RemoteResultSetImpl constructor for processing.

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

executeUpdate

public int executeUpdate(java.lang.String cmd)
                  throws java.rmi.RemoteException
Executes the specified SQL update command. The method sends the command to the update planner, which executes it.

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