ca.bc.gov.webade
Class Organization

java.lang.Object
  extended byca.bc.gov.webade.Organization
All Implemented Interfaces:
java.io.Serializable

public final class Organization
extends java.lang.Object
implements java.io.Serializable

Author:
jross
See Also:
Serialized Form

Field Summary
static java.lang.String BC_GOVERNMENT_ORG
          The organization type value for BC Government organizations.
static java.lang.String NON_GOVERNMENT_ORG
          The organization type value for non-government organizations.
 
Constructor Summary
Organization()
          Default Constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDescription()
           
 java.util.Date getEffectiveDate()
           
 java.util.Date getExpiryDate()
           
 MinistryOrganizationInfo getMinistryInfo()
           
 java.lang.String getName()
           
 java.lang.String getOrganizationCode()
           
 int getOrganizationCodeAsInt()
           
 long getOrganizationCodeAsLong()
           
 long getOrganizationId()
           
 java.lang.String getOrganizationType()
           
 int hashCode()
           
 void setDescription(java.lang.String description)
           
 void setEffectiveDate(java.util.Date effectiveDate)
           
 void setExpiryDate(java.util.Date expiryDate)
           
 void setMinistryInfo(MinistryOrganizationInfo ministryInfo)
           
 void setName(java.lang.String name)
           
 void setOrganizationId(long organizationId)
           
 void setOrganizationType(java.lang.String organizationType)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

BC_GOVERNMENT_ORG

public static final java.lang.String BC_GOVERNMENT_ORG
The organization type value for BC Government organizations.

See Also:
Constant Field Values

NON_GOVERNMENT_ORG

public static final java.lang.String NON_GOVERNMENT_ORG
The organization type value for non-government organizations.

See Also:
Constant Field Values
Constructor Detail

Organization

public Organization()
Default Constructor.

Method Detail

getDescription

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

setDescription

public void setDescription(java.lang.String description)
Parameters:
description - The description to set.

getName

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

setName

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

getOrganizationId

public long getOrganizationId()
Returns:
Returns the organizationId.

setOrganizationId

public void setOrganizationId(long organizationId)
Parameters:
organizationId - The organizationId to set.

getOrganizationType

public java.lang.String getOrganizationType()
Returns:
Returns the organizationType.

setOrganizationType

public void setOrganizationType(java.lang.String organizationType)
Parameters:
organizationType - The organizationType to set.

getOrganizationCode

public java.lang.String getOrganizationCode()
Returns:
Returns the organizationCode.

getOrganizationCodeAsInt

public int getOrganizationCodeAsInt()
                             throws java.lang.UnsupportedOperationException
Returns:
Returns the organizationCode as an integer.
Throws:
java.lang.UnsupportedOperationException - Thrown if the organization code cannot be converted to a number.

getOrganizationCodeAsLong

public long getOrganizationCodeAsLong()
                               throws java.lang.UnsupportedOperationException
Returns:
Returns the organizationCode as a long.
Throws:
java.lang.UnsupportedOperationException - Thrown if the organization code cannot be converted to a number.

getEffectiveDate

public java.util.Date getEffectiveDate()
Returns:
Returns The organization's effective date.

setEffectiveDate

public void setEffectiveDate(java.util.Date effectiveDate)
Parameters:
effectiveDate - The organization's effective date to set.

getExpiryDate

public java.util.Date getExpiryDate()
Returns:
Returns The organization's expiry date.

setExpiryDate

public void setExpiryDate(java.util.Date expiryDate)
Parameters:
expiryDate - The organization's expiry date to set.

getMinistryInfo

public MinistryOrganizationInfo getMinistryInfo()
Returns:
Returns the ministryInfo.

setMinistryInfo

public void setMinistryInfo(MinistryOrganizationInfo ministryInfo)
Parameters:
ministryInfo - The ministryInfo to set.

equals

public boolean equals(java.lang.Object obj)
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
See Also:
Object.hashCode()

toString

public java.lang.String toString()
See Also:
Object.toString()