edu.pdx.cs399J.family
Interface RemoteMarriage

All Superinterfaces:
Remote

public interface RemoteMarriage
extends Remote

This interface models a Marriage that is accessed remotely using Java Remote Method Invocation.


Method Summary
 Date getDate()
          Returns the date on which the husband and wife were married
 String getDescription()
          Returns a textual description of this marriage
 int getHusbandId()
          Returns the id of the husband in the marriage
 String getLocation()
          Returns the location at which the husband and wife were married
 int getWifeId()
          Returns the id of the wife in the marriage
 void setDate(Date date)
          Sets the date on which the husband and wife were married
 void setLocation(String location)
          Sets the location at which the husband and wife were married
 

Method Detail

getHusbandId

int getHusbandId()
                 throws RemoteException
Returns the id of the husband in the marriage

Throws:
RemoteException

getWifeId

int getWifeId()
              throws RemoteException
Returns the id of the wife in the marriage

Throws:
RemoteException

getDate

Date getDate()
             throws RemoteException
Returns the date on which the husband and wife were married

Throws:
RemoteException

setDate

void setDate(Date date)
             throws RemoteException
Sets the date on which the husband and wife were married

Throws:
RemoteException

getLocation

String getLocation()
                   throws RemoteException
Returns the location at which the husband and wife were married

Throws:
RemoteException

setLocation

void setLocation(String location)
                 throws RemoteException
Sets the location at which the husband and wife were married

Throws:
RemoteException

getDescription

String getDescription()
                      throws RemoteException
Returns a textual description of this marriage

Throws:
RemoteException


Copyright © 2000-2009 Portland State University. All Rights Reserved.