|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RemotePerson
This interface models a Person
that is accessed remotely using Java Remote Method Invocation.
| Method Summary | |
|---|---|
Date |
getDateOfBirth()
Returns this person's date of birth |
Date |
getDateOfDeath()
Returns this person's date of death |
String |
getDescription()
Returns a string describing this person |
int |
getFatherId()
Returns the id of this person's father |
String |
getFirstName()
Returns this person's first name |
Person.Gender |
getGender()
Returns this person's gender (either Person.MALE or
Person.FEMALE. |
int |
getId()
Returns this person's unique id |
String |
getLastName()
Returns this person's last name |
String |
getMiddleName()
Returns this person's middle name |
int |
getMotherId()
Returns the id of this person's mother |
void |
setDateOfBirth(Date dob)
Sets this person's date of birth |
void |
setDateOfDeath(Date dod)
Sets this person's date of death |
void |
setFatherId(int fatherId)
Sets the id of this person's father |
void |
setFirstName(String firstName)
Sets this person's first name |
void |
setLastName(String lastName)
Sets this person's last name |
void |
setMiddleName(String middleName)
Sets this person's middle name |
void |
setMotherId(int motherId)
Sets the id of this person's mother |
| Method Detail |
|---|
int getId()
throws RemoteException
RemoteException
Person.Gender getGender()
throws RemoteException
Person.MALE or
Person.FEMALE.
RemoteException
String getFirstName()
throws RemoteException
RemoteException
void setFirstName(String firstName)
throws RemoteException
RemoteException
String getMiddleName()
throws RemoteException
RemoteException
void setMiddleName(String middleName)
throws RemoteException
RemoteException
String getLastName()
throws RemoteException
RemoteException
void setLastName(String lastName)
throws RemoteException
RemoteException
int getFatherId()
throws RemoteException
RemoteException
void setFatherId(int fatherId)
throws RemoteException
FamilyTreeException - The person with the given id cannot be found or the person
with that id is not Person.MALE
RemoteException
int getMotherId()
throws RemoteException
RemoteException
void setMotherId(int motherId)
throws RemoteException
FamilyTreeException - The person with the given id cannot be found or the person
with that id is not Person.FEMALE
RemoteException
Date getDateOfBirth()
throws RemoteException
RemoteException
void setDateOfBirth(Date dob)
throws RemoteException
RemoteException
Date getDateOfDeath()
throws RemoteException
RemoteException
void setDateOfDeath(Date dod)
throws RemoteException
RemoteException
String getDescription()
throws RemoteException
RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||