Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

RMI Question?????

 
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
 
Beware the other head of science - it bites! Nibble on this message:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic