Package edu.pdx.cs410J.family
Class RemoteMarriageImpl
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
edu.pdx.cs410J.family.RemoteMarriageImpl
- All Implemented Interfaces:
RemoteMarriage
,Serializable
,Remote
This is class implements the
RemoteMarriage
interface.
Basically, it delegates all of its behavior to an underlying Marriage
that lives only on the server.-
Field Summary
Fields inherited from class java.rmi.server.RemoteObject
ref
-
Constructor Summary
ConstructorDescriptionRemoteMarriageImpl
(Marriage marriage) Creates a newRemoteMarriageImpl
that delegates most of its behavior to a givenMarriage
-
Method Summary
Modifier and TypeMethodDescriptiongetDate()
Returns the date on which the husband and wife were marriedReturns a textual description of this marriageint
Returns the id of the husband in the marriageReturns the location at which the husband and wife were marriedint
Returns the id of the wife in the marriagevoid
Sets the date on which the husband and wife were marriedvoid
setLocation
(String location) Sets the location at which the husband and wife were marriedMethods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObject
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
-
Constructor Details
-
RemoteMarriageImpl
RemoteMarriageImpl(Marriage marriage) throws RemoteException Creates a newRemoteMarriageImpl
that delegates most of its behavior to a givenMarriage
- Throws:
RemoteException
-
-
Method Details
-
getHusbandId
Description copied from interface:RemoteMarriage
Returns the id of the husband in the marriage- Specified by:
getHusbandId
in interfaceRemoteMarriage
- Throws:
RemoteException
-
getWifeId
Description copied from interface:RemoteMarriage
Returns the id of the wife in the marriage- Specified by:
getWifeId
in interfaceRemoteMarriage
- Throws:
RemoteException
-
getDate
Description copied from interface:RemoteMarriage
Returns the date on which the husband and wife were married- Specified by:
getDate
in interfaceRemoteMarriage
- Throws:
RemoteException
-
setDate
Description copied from interface:RemoteMarriage
Sets the date on which the husband and wife were married- Specified by:
setDate
in interfaceRemoteMarriage
- Throws:
RemoteException
-
getLocation
Description copied from interface:RemoteMarriage
Returns the location at which the husband and wife were married- Specified by:
getLocation
in interfaceRemoteMarriage
- Throws:
RemoteException
-
setLocation
Description copied from interface:RemoteMarriage
Sets the location at which the husband and wife were married- Specified by:
setLocation
in interfaceRemoteMarriage
- Throws:
RemoteException
-
getDescription
Description copied from interface:RemoteMarriage
Returns a textual description of this marriage- Specified by:
getDescription
in interfaceRemoteMarriage
- Throws:
RemoteException
-