simpledb.remote
Class RemoteStatementImpl
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
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
Fields inherited from class java.rmi.server.RemoteObject |
ref |
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 |
RemoteStatementImpl
public RemoteStatementImpl(RemoteConnectionImpl rconn)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
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)