Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI Question?????

 
Lisa Foster
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
see this code I am not sure in this class unicast
are we to put all the code in every method here or not confused??
package suncertify.db;
import java.util.*;
import java.rmi.server.UnicastRemoteObject;
import java.rmi.RemoteException;
public class DataClientImpl extends UnicastRemoteObject
implements DataClient {


public DataClientImpl() throws RemoteException
{

}
public FieldInfo [] getFieldInfo()throws RemoteException
{
FieldInfo [] description = null;
return description;
}
public DataInfo getRecord(int recNum)throws DatabaseException,RemoteException
{

}
public DataInfo find(String toMatch)throws DatabaseException, RemoteException
{
FieldInfo [] description = null;
DataInfo rv = null;
String [] values = null;
int r=0;
rv = new DataInfo(r, description, values);
return rv;
}
public void add(String [] newData)throws DatabaseException, RemoteException{}
public void modify(DataInfo newData)throws DatabaseException, RemoteException{}
public void delete(DataInfo toDelete)throws DatabaseException, RemoteException{}
public void close() throws RemoteException{}
public void lock(int record)throws RemoteException{}
public void unlock(int record)throws RemoteException{}
public DataInfo[] criteriaFind(String criteria) throws DatabaseException , RemoteException
{
Vector temp = new Vector(1,1);
DataInfo[] rv = new DataInfo[temp.size()];
rv = (DataInfo[])temp.toArray(rv);
return rv;
}
public String[] getComboValues(int fieldNum) throws DatabaseException, RemoteException
{
TreeSet origin = new TreeSet();
return (String[])origin.toArray(new String[0]);
}
}

Thanks Lisa
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic