org.bejug.javacareers.jobs.model
Class Country

java.lang.Object
  extended byorg.bejug.javacareers.jobs.model.AbstractPersistableObject
      extended byorg.bejug.javacareers.jobs.model.Country
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class Country
extends AbstractPersistableObject

Version:
$Revision: 1.4 $ - $Date: 2005/12/20 15:36:45 $
Author:
Sven Schauwvliege (Last modified by $Author: shally $)
See Also:
Serialized Form

Constructor Summary
Country()
          constructor
Country(java.lang.String country)
          constructor
 
Method Summary
 void add(Region newregion)
          adds the region to the country and the country to the region.
 int compareTo(java.lang.Object o)
          
 boolean equals(java.lang.Object o)
          
 java.lang.String getName()
           
 java.util.Set getRegion()
           
 int hashCode()
          
 void setName(java.lang.String name)
           
 void setRegion(java.util.Set region)
           
 java.lang.String toString()
          
 
Methods inherited from class org.bejug.javacareers.jobs.model.AbstractPersistableObject
getCreationDate, getId, getModificationDate, getVersion, isEditable, isNew, setCreationDate, setEditable, setId, setModificationDate, setVersion
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Country

public Country(java.lang.String country)
constructor

Parameters:
country - name

Country

public Country()
constructor

Method Detail

getName

public java.lang.String getName()
Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Parameters:
name - The name to set.

getRegion

public java.util.Set getRegion()
Returns:
Returns the region.

setRegion

public void setRegion(java.util.Set region)
Parameters:
region - The region to set.

add

public void add(Region newregion)
adds the region to the country and the country to the region.

Parameters:
newregion - the region to add.

equals

public boolean equals(java.lang.Object o)

Overrides:
equals in class AbstractPersistableObject

hashCode

public int hashCode()

Overrides:
hashCode in class AbstractPersistableObject

compareTo

public int compareTo(java.lang.Object o)

Specified by:
compareTo in interface java.lang.Comparable
Overrides:
compareTo in class AbstractPersistableObject

toString

public java.lang.String toString()

Overrides:
toString in class AbstractPersistableObject


Copyright © 2005-2006 BeJUG. All Rights Reserved.