org.bejug.javacareers.jobs.model
Class Organisation

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

public class Organisation
extends AbstractPersistableObject

Models an organisation. An organisation can be an educational institution, the government or a private company. The distinction is made through the member OrganisationType.

Version:
$Revision: 1.3 $ - $Date: 2005/12/20 15:36:45 $
Author:
Bart Meyers (last modified by $Author: shally $ )
See Also:
Serialized Form

Constructor Summary
Organisation()
          default constructor
Organisation(java.lang.String name, java.lang.String description)
          constructor.
 
Method Summary
 int compareTo(java.lang.Object o)
          
 boolean equals(java.lang.Object o)
          
 Address getAddress()
          Retrieves the organisation address.
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 OrganisationType getOrganisationType()
          Returns the type of the organisation.
 int hashCode()
          
 void setAddress(Address address)
          Sets the address of the organisation.
 void setDescription(java.lang.String description)
          sets the description.
 void setName(java.lang.String name)
          sets the name of the organisation.
 void setOrganisationType(OrganisationType organisationType)
          Sets the organsation type.
 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

Organisation

public Organisation()
default constructor


Organisation

public Organisation(java.lang.String name,
                    java.lang.String description)
constructor.

Parameters:
name - the name of the organisation.
description - the description of the organisation.
Method Detail

getAddress

public Address getAddress()
Retrieves the organisation address.

Returns:
The organisation address.

setAddress

public void setAddress(Address address)
Sets the address of the organisation.

Parameters:
address - The organisation address.

getOrganisationType

public OrganisationType getOrganisationType()
Returns the type of the organisation.

Returns:
The organisation type.

setOrganisationType

public void setOrganisationType(OrganisationType organisationType)
Sets the organsation type.

Parameters:
organisationType - The organisation type.

getDescription

public java.lang.String getDescription()
Returns:
the wanted description.

setDescription

public void setDescription(java.lang.String description)
sets the description.

Parameters:
description - the description.

getName

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

setName

public void setName(java.lang.String name)
sets the name of the organisation.

Parameters:
name - the name.

compareTo

public int compareTo(java.lang.Object o)

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

equals

public boolean equals(java.lang.Object o)

Overrides:
equals in class AbstractPersistableObject

hashCode

public int hashCode()

Overrides:
hashCode in class AbstractPersistableObject

toString

public java.lang.String toString()

Overrides:
toString in class AbstractPersistableObject


Copyright © 2005-2006 BeJUG. All Rights Reserved.