PJODe

The PersonalJava ODBMS

com.linxpda.PJODe
Class RemotePJODe

java.lang.Object
  |
  +--com.linxpda.PJODe.RemotePJODe

public class RemotePJODe
extends java.lang.Object

RMI client frontend for connecting to a remotely administered PJODeRMIServer. All attempts have been made to make the API for this class exact to that of PJODe with all method signatures being exactly the same. This way migrating from a single-user package to a client-server setup only requires that your client obtain reference to a RemotePJODe instance rather than a PJODe object. No other code changes should be necessary.


Constructor Summary
RemotePJODe(java.lang.String dbfile, java.lang.String url)
          Create a new RemotePJODe, which connects to the remotely bound PJODeRMIServer bound at the supplied url.
 
Method Summary
 void close()
          Remote implementation of PJODe.close().
 ResultSet get(java.lang.Object query)
          Remote implementation of PJODe.get(Object).
 void remove(java.lang.Object value)
          Remote implementation of PJODe.remove(Object).
 void set(java.lang.Object value)
          Remote implementation of PJODe.set(Object).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemotePJODe

public RemotePJODe(java.lang.String dbfile,
                   java.lang.String url)
            throws java.rmi.RemoteException,
                   java.io.IOException,
                   DBException
Create a new RemotePJODe, which connects to the remotely bound PJODeRMIServer bound at the supplied url. The datafile 'dbfile' is opened or created on the remote server.
Parameters:
dbfile - The database filename to open or create
url - The URL encoded lookup for the remote PJODeRMIServer. Should be in format "//IPaddress:port/remote_name". Requires that you know the IP address of the server machine and the remote name under which the server has been bound.
Throws:
java.rmi.RemoteException - If a connection cannot be established or the remote server has not been started.
java.io.IOException - If there is an error opening or creating the remote database file.
DBException - If there are data errors in the specified database.
See Also:
PJODe
Method Detail

set

public void set(java.lang.Object value)
         throws java.rmi.RemoteException,
                java.io.IOException,
                DBException
Remote implementation of PJODe.set(Object).

close

public void close()
           throws java.rmi.RemoteException,
                  java.io.IOException,
                  DBException
Remote implementation of PJODe.close().

remove

public void remove(java.lang.Object value)
            throws java.rmi.RemoteException,
                   java.io.IOException,
                   DBException
Remote implementation of PJODe.remove(Object).

get

public ResultSet get(java.lang.Object query)
              throws java.rmi.RemoteException,
                     java.io.IOException,
                     DBException,
                     java.lang.ClassNotFoundException
Remote implementation of PJODe.get(Object).

(c)2001 Linxpda, Inc. www.linxpda.com