net.sf.imca.model
Class AssociationBO

java.lang.Object
  extended by net.sf.imca.model.AssociationBO

public class AssociationBO
extends java.lang.Object

Business Object representing the properties, persistence and functionality of the IMCA domain object.

Author:
dougculnane

Field Summary
static java.lang.String IMCA_AT_COUNTRY_CODE
          The country code to use for the Austrian Association
static java.lang.String IMCA_AU_COUNTRY_CODE
          The country code to use for the Australian Association
static java.lang.String IMCA_CH_COUNTRY_CODE
          The country code to use for the Swiss Association
static java.lang.String IMCA_DE_COUNTRY_CODE
          The country code to use for the German Association
static java.lang.String IMCA_DK_COUNTRY_CODE
          The country code to use for the Denmark Association
static java.lang.String IMCA_FI_COUNTRY_CODE
          The country code to use for the Finish Association
static java.lang.String IMCA_FR_COUNTRY_CODE
          The country code to use for the French Association
static java.lang.String IMCA_IT_COUNTRY_CODE
          The country code to use for the Italian Association
static java.lang.String IMCA_JP_COUNTRY_CODE
          The country code to use for the Japanese Association
static java.lang.String IMCA_NL_COUNTRY_CODE
          The country code to use for the Dutch Association
static java.lang.String IMCA_NZ_COUNTRY_CODE
          The country code to use for the New Zealand Association
static java.lang.String IMCA_SE_COUNTRY_CODE
          The country code to use for the Swedish Association
static java.lang.String IMCA_UK_COUNTRY_CODE
          The country code to use for the British Association
static java.lang.String IMCA_US_COUNTRY_CODE
          The country code to use for the United States Association
static java.lang.String IMCA_WORLD_COUNTRY_CODE
          The country code to use for the IMCA World Association
static java.lang.String IMCA_ZA_COUNTRY_CODE
          The country code to use for the South African Association
 
Constructor Summary
AssociationBO()
          Default Constructor.
AssociationBO(AssociationEntity entity)
          Constructor with state entity.
AssociationBO(javax.persistence.EntityManager em, org.w3c.dom.NodeList nodeList)
          Constructor with Persistence Entity Manager and XML node list of data.
AssociationBO(javax.persistence.EntityManager em, java.lang.String countryCode)
          Constucter for a country specific association.
AssociationBO(javax.persistence.EntityManager em, java.lang.String countryCode, java.lang.String area)
          Constructor for a country and area specific association.
 
Method Summary
 javax.mail.internet.InternetAddress[] getCommitteeEmails()
           
 java.lang.String getCountryName()
           
 AssociationEntity getEntity()
          Get the persistence entity.
 java.util.List<MembershipTypeEntity> getJoinableMembershipTypes(javax.persistence.EntityManager em)
           
 java.lang.String getName()
          Return the human friendly name of the Association.
 java.lang.String getShortName()
           
 void setEntity(AssociationEntity entity)
          Set the persistence entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMCA_WORLD_COUNTRY_CODE

public static final java.lang.String IMCA_WORLD_COUNTRY_CODE
The country code to use for the IMCA World Association

See Also:
Constant Field Values

IMCA_AU_COUNTRY_CODE

public static final java.lang.String IMCA_AU_COUNTRY_CODE
The country code to use for the Australian Association

See Also:
Constant Field Values

IMCA_AT_COUNTRY_CODE

public static final java.lang.String IMCA_AT_COUNTRY_CODE
The country code to use for the Austrian Association

See Also:
Constant Field Values

IMCA_FR_COUNTRY_CODE

public static final java.lang.String IMCA_FR_COUNTRY_CODE
The country code to use for the French Association

See Also:
Constant Field Values

IMCA_IT_COUNTRY_CODE

public static final java.lang.String IMCA_IT_COUNTRY_CODE
The country code to use for the Italian Association

See Also:
Constant Field Values

IMCA_UK_COUNTRY_CODE

public static final java.lang.String IMCA_UK_COUNTRY_CODE
The country code to use for the British Association

See Also:
Constant Field Values

IMCA_SE_COUNTRY_CODE

public static final java.lang.String IMCA_SE_COUNTRY_CODE
The country code to use for the Swedish Association

See Also:
Constant Field Values

IMCA_CH_COUNTRY_CODE

public static final java.lang.String IMCA_CH_COUNTRY_CODE
The country code to use for the Swiss Association

See Also:
Constant Field Values

IMCA_DE_COUNTRY_CODE

public static final java.lang.String IMCA_DE_COUNTRY_CODE
The country code to use for the German Association

See Also:
Constant Field Values

IMCA_JP_COUNTRY_CODE

public static final java.lang.String IMCA_JP_COUNTRY_CODE
The country code to use for the Japanese Association

See Also:
Constant Field Values

IMCA_DK_COUNTRY_CODE

public static final java.lang.String IMCA_DK_COUNTRY_CODE
The country code to use for the Denmark Association

See Also:
Constant Field Values

IMCA_NL_COUNTRY_CODE

public static final java.lang.String IMCA_NL_COUNTRY_CODE
The country code to use for the Dutch Association

See Also:
Constant Field Values

IMCA_ZA_COUNTRY_CODE

public static final java.lang.String IMCA_ZA_COUNTRY_CODE
The country code to use for the South African Association

See Also:
Constant Field Values

IMCA_NZ_COUNTRY_CODE

public static final java.lang.String IMCA_NZ_COUNTRY_CODE
The country code to use for the New Zealand Association

See Also:
Constant Field Values

IMCA_US_COUNTRY_CODE

public static final java.lang.String IMCA_US_COUNTRY_CODE
The country code to use for the United States Association

See Also:
Constant Field Values

IMCA_FI_COUNTRY_CODE

public static final java.lang.String IMCA_FI_COUNTRY_CODE
The country code to use for the Finish Association

See Also:
Constant Field Values
Constructor Detail

AssociationBO

public AssociationBO(javax.persistence.EntityManager em,
                     java.lang.String countryCode)
Constucter for a country specific association.

Parameters:
em - EntityManager for database interation.
countryCode - 2 digit iso country code

AssociationBO

public AssociationBO(javax.persistence.EntityManager em,
                     java.lang.String countryCode,
                     java.lang.String area)
Constructor for a country and area specific association.

Parameters:
em - EntityManager for database iteration.
countryCode - 2 digit ISO country code
area - Name of the area within the country for association

AssociationBO

public AssociationBO(AssociationEntity entity)
Constructor with state entity.

Parameters:
entity -

AssociationBO

public AssociationBO(javax.persistence.EntityManager em,
                     org.w3c.dom.NodeList nodeList)
Constructor with Persistence Entity Manager and XML node list of data.

Parameters:
em - Persistence Entity Manager.
nodeList - XML node list with data.

AssociationBO

public AssociationBO()
Default Constructor.

Method Detail

getName

public java.lang.String getName()
Return the human friendly name of the Association.

Returns:

getEntity

public AssociationEntity getEntity()
Get the persistence entity.

Returns:
The persistence entity for this Business Object.

setEntity

public void setEntity(AssociationEntity entity)
Set the persistence entity.

Parameters:
entity - The new persistence entity for this Business Object.

getJoinableMembershipTypes

public java.util.List<MembershipTypeEntity> getJoinableMembershipTypes(javax.persistence.EntityManager em)

getCommitteeEmails

public javax.mail.internet.InternetAddress[] getCommitteeEmails()
                                                         throws javax.mail.internet.AddressException
Throws:
javax.mail.internet.AddressException

getCountryName

public java.lang.String getCountryName()

getShortName

public java.lang.String getShortName()


Copyright © 2007-2008 The International Moth Class Association (IMCA).. All Rights Reserved.