org.kuali.rice.kns.bo
Class StateImpl

java.lang.Object
  extended by org.kuali.rice.kns.bo.BusinessObjectBase
      extended by org.kuali.rice.kns.bo.PersistableBusinessObjectBase
          extended by org.kuali.rice.kns.bo.StateImpl
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, BusinessObject, ExternalizableBusinessObject, Inactivateable, PersistableBusinessObject, State

public class StateImpl
extends PersistableBusinessObjectBase
implements Inactivateable, State

See Also:
Serialized Form

Field Summary
private  boolean active
           
private  Country country
           
private  String postalCountryCode
           
private  String postalStateCode
           
private  String postalStateName
           
 
Fields inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
extension, versionNumber
 
Constructor Summary
StateImpl()
          Default no-arg constructor.
 
Method Summary
 String getCodeAndDescription()
           
 Country getCountry()
          Gets the country attribute.
 String getPostalCountryCode()
          Gets the postalCountryCode attribute.
 String getPostalStateCode()
          Gets the postalStateCode attribute.
 String getPostalStateName()
          Gets the postalStateName attribute.
 boolean isActive()
          Gets the active attribute.
 void setActive(boolean active)
          Sets the active attribute value.
 void setCountry(Country country)
          Sets the country attribute value.
 void setPostalCountryCode(String postalCountryCode)
          Sets the postalCountryCode attribute value.
 void setPostalStateCode(String postalStateCode)
          Sets the postalStateCode attribute.
 void setPostalStateName(String postalStateName)
          Sets the postalStateName attribute.
protected  LinkedHashMap toStringMapper()
           
 
Methods inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
addNote, afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeInsert, beforeUpdate, beforeUpdate, buildListOfDeletionAwareLists, deleteNote, getAttachmentService, getBoNote, getBoNotes, getExtension, getNoteService, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isAutoIncrementSet, isBoNotesSupport, isNewCollectionRecord, linkEditableUserFields, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setAutoIncrementSet, setBoNotes, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber, supportsBoNotes
 
Methods inherited from class org.kuali.rice.kns.bo.BusinessObjectBase
prepareForWorkflow, toString, toStringBuilder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.kns.bo.BusinessObject
prepareForWorkflow, refresh
 

Field Detail

postalCountryCode

private String postalCountryCode

postalStateCode

private String postalStateCode

postalStateName

private String postalStateName

active

private boolean active

country

private Country country
Constructor Detail

StateImpl

public StateImpl()
Default no-arg constructor.

Method Detail

getPostalStateCode

public String getPostalStateCode()
Gets the postalStateCode attribute.

Specified by:
getPostalStateCode in interface State
Returns:
Returns the postalStateCode

setPostalStateCode

public void setPostalStateCode(String postalStateCode)
Sets the postalStateCode attribute.

Specified by:
setPostalStateCode in interface State
Parameters:
postalStateCode - The postalStateCode to set.

getPostalStateName

public String getPostalStateName()
Gets the postalStateName attribute.

Specified by:
getPostalStateName in interface State
Returns:
Returns the postalStateName

setPostalStateName

public void setPostalStateName(String postalStateName)
Sets the postalStateName attribute.

Specified by:
setPostalStateName in interface State
Parameters:
postalStateName - The postalStateName to set.

getCodeAndDescription

public String getCodeAndDescription()
Specified by:
getCodeAndDescription in interface State
Returns:
Returns the code and description in format: xx - xxxxxxxxxxxxxxxx

toStringMapper

protected LinkedHashMap toStringMapper()
Specified by:
toStringMapper in class BusinessObjectBase
Returns:
Map containing the fieldValues of the key fields for this class, indexed by fieldName
See Also:
BusinessObjectBase.toStringMapper()

isActive

public boolean isActive()
Gets the active attribute.

Specified by:
isActive in interface Inactivateable
Specified by:
isActive in interface State
Returns:
Returns the active.

setActive

public void setActive(boolean active)
Sets the active attribute value.

Specified by:
setActive in interface Inactivateable
Specified by:
setActive in interface State
Parameters:
active - The active to set.

getPostalCountryCode

public String getPostalCountryCode()
Gets the postalCountryCode attribute.

Specified by:
getPostalCountryCode in interface State
Returns:
Returns the postalCountryCode.

setPostalCountryCode

public void setPostalCountryCode(String postalCountryCode)
Sets the postalCountryCode attribute value.

Specified by:
setPostalCountryCode in interface State
Parameters:
postalCountryCode - The postalCountryCode to set.

getCountry

public Country getCountry()
Gets the country attribute.

Specified by:
getCountry in interface State
Returns:
Returns the country.

setCountry

public void setCountry(Country country)
Sets the country attribute value.

Specified by:
setCountry in interface State
Parameters:
country - The country to set.


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.