org.objectweb.jonas.jtests.beans.relatives
Interface RelativeLocal


public interface RelativeLocal

This interface describes some characteristics of the relationships between relatives of a familly. The goal was to have a simple model supporting various kind of relationships (1-1, 1-n, n-n) and a wide range of field types.

Author:
Christophe Ney - cney@batisseurs.com

Method Summary
 double getAverageAnnualVisits()
          Get the relative's average of annual visits to other relatives
 java.util.Date getBirthdate()
          Get the relative's birthdate
 java.lang.String getFullName()
          Get the relative's name
 boolean getIsMale()
          Get the relative's sex
 int getLuckyNumber()
          Get the relative's lucky number
 java.util.Set getSibblings()
          Get all sibblings (brothers and sisters) for this relative.
 RelativeLocal getSpouse()
          Get the (unique) spouse for this relative.
 java.util.Set getVisitedRelatives()
          Get all relatives that has been visited by this relative.
 void setAverageAnnualVisits(double averageAnnualVisits)
          Set the relative's average of annual visits to other relatives
 void setBirthdate(java.util.Date birthdate)
          Set the relative's birthdate
 void setFullName(java.lang.String name)
          Set the relative's name
 void setIsMale(boolean isMale)
          Set the relative's sex
 void setLuckyNumber(int luckyNumber)
          Set the relative's age
 void setSibblings(java.util.Set sibblings)
          Set the sibblings for this relative
 void setSpouse(RelativeLocal spouse)
          Set the spouse for this relative
 void setVisitedRelatives(java.util.Set sibblings)
          Set the relatives that has been visited by this relative.
 

Method Detail

getFullName

public java.lang.String getFullName()
Get the relative's name

setFullName

public void setFullName(java.lang.String name)
Set the relative's name

getIsMale

public boolean getIsMale()
Get the relative's sex

setIsMale

public void setIsMale(boolean isMale)
Set the relative's sex

getLuckyNumber

public int getLuckyNumber()
Get the relative's lucky number

setLuckyNumber

public void setLuckyNumber(int luckyNumber)
Set the relative's age

getAverageAnnualVisits

public double getAverageAnnualVisits()
Get the relative's average of annual visits to other relatives

setAverageAnnualVisits

public void setAverageAnnualVisits(double averageAnnualVisits)
Set the relative's average of annual visits to other relatives

getBirthdate

public java.util.Date getBirthdate()
Get the relative's birthdate

setBirthdate

public void setBirthdate(java.util.Date birthdate)
Set the relative's birthdate

getSpouse

public RelativeLocal getSpouse()
Get the (unique) spouse for this relative. This is a possibly null, one-to-one relationship.

setSpouse

public void setSpouse(RelativeLocal spouse)
Set the spouse for this relative

getSibblings

public java.util.Set getSibblings()
Get all sibblings (brothers and sisters) for this relative. This is a never empty one-to-many relationship since it includes the always relative calling the method.

setSibblings

public void setSibblings(java.util.Set sibblings)
Set the sibblings for this relative

getVisitedRelatives

public java.util.Set getVisitedRelatives()
Get all relatives that has been visited by this relative. This is a possibily empty many-to-many relationship.

setVisitedRelatives

public void setVisitedRelatives(java.util.Set sibblings)
Set the relatives that has been visited by this relative.