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
ConstructorsConstructorDescriptionRemoteMarriageImpl(Marriage marriage) Creates a newRemoteMarriageImplthat 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 marriageintReturns the id of the husband in the marriageReturns the location at which the husband and wife were marriedintReturns the id of the wife in the marriagevoidSets the date on which the husband and wife were marriedvoidsetLocation(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, unexportObjectMethods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
-
Constructor Details
-
RemoteMarriageImpl
RemoteMarriageImpl(Marriage marriage) throws RemoteException Creates a newRemoteMarriageImplthat delegates most of its behavior to a givenMarriage- Throws:
RemoteException
-
-
Method Details
-
getHusbandId
Description copied from interface:RemoteMarriageReturns the id of the husband in the marriage- Specified by:
getHusbandIdin interfaceRemoteMarriage- Throws:
RemoteException
-
getWifeId
Description copied from interface:RemoteMarriageReturns the id of the wife in the marriage- Specified by:
getWifeIdin interfaceRemoteMarriage- Throws:
RemoteException
-
getDate
Description copied from interface:RemoteMarriageReturns the date on which the husband and wife were married- Specified by:
getDatein interfaceRemoteMarriage- Throws:
RemoteException
-
setDate
Description copied from interface:RemoteMarriageSets the date on which the husband and wife were married- Specified by:
setDatein interfaceRemoteMarriage- Throws:
RemoteException
-
getLocation
Description copied from interface:RemoteMarriageReturns the location at which the husband and wife were married- Specified by:
getLocationin interfaceRemoteMarriage- Throws:
RemoteException
-
setLocation
Description copied from interface:RemoteMarriageSets the location at which the husband and wife were married- Specified by:
setLocationin interfaceRemoteMarriage- Throws:
RemoteException
-
getDescription
Description copied from interface:RemoteMarriageReturns a textual description of this marriage- Specified by:
getDescriptionin interfaceRemoteMarriage- Throws:
RemoteException
-