org.kuali.rice.location.impl.postalcode
Class PostalCodeBo

java.lang.Object
  extended by org.kuali.rice.krad.bo.BusinessObjectBase
      extended by org.kuali.rice.krad.bo.PersistableBusinessObjectBase
          extended by org.kuali.rice.location.impl.postalcode.PostalCodeBo
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, Inactivatable, MutableInactivatable, Coded, GloballyUnique, Versioned, ModelObjectBasic, BusinessObject, ExternalizableBusinessObject, PersistableBusinessObject, PostalCodeContract, PostalCodeEbo

@Entity
public class PostalCodeBo
extends PersistableBusinessObjectBase
implements PostalCodeEbo

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
extension, newCollectionRecord, objectId, versionNumber
 
Constructor Summary
PostalCodeBo()
           
 
Method Summary
static PostalCodeBo from(PostalCode im)
          Converts a immutable object to its mutable counterpart
 String getCityName()
          This the postal state code for the PostalCode.
 String getCode()
          The code value for this object.
 CountryBo getCountry()
           
 String getCountryCode()
          This the postal country code for the PostalCode.
 CountyBo getCounty()
           
 String getCountyCode()
          This the county code for the PostalCode.
 StateBo getState()
           
 String getStateCode()
          This the postal state code for the PostalCode.
 boolean isActive()
          The active indicator for an object.
 void setActive(boolean active)
          Sets the record to active or inactive.
 void setCityName(String cityName)
           
 void setCode(String code)
           
 void setCountry(CountryBo country)
           
 void setCountryCode(String countryCode)
           
 void setCounty(CountyBo county)
           
 void setCountyCode(String countyCode)
           
 void setState(StateBo state)
           
 void setStateCode(String stateCode)
           
static PostalCode to(PostalCodeBo bo)
          Converts a mutable bo to its immutable counterpart
 
Methods inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getLegacyDataAdapter, getObjectId, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
 
Methods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.location.framework.postalcode.PostalCodeEbo
getVersionNumber
 
Methods inherited from interface org.kuali.rice.krad.bo.BusinessObject
refresh
 
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toString
 

Constructor Detail

PostalCodeBo

public PostalCodeBo()
Method Detail

getCode

public String getCode()
Description copied from interface: PostalCodeEbo
The code value for this object. In general a code value cannot be null or a blank string.

Specified by:
getCode in interface Coded
Specified by:
getCode in interface PostalCodeEbo
Returns:
the code value for this object.

setCode

public void setCode(String code)

getCountryCode

public String getCountryCode()
Description copied from interface: PostalCodeEbo
This the postal country code for the PostalCode. This cannot be null or a blank string.

Specified by:
getCountryCode in interface PostalCodeContract
Specified by:
getCountryCode in interface PostalCodeEbo
Returns:
postal country code

setCountryCode

public void setCountryCode(String countryCode)

getCityName

public String getCityName()
Description copied from interface: PostalCodeEbo
This the postal state code for the PostalCode. This can be null.

Specified by:
getCityName in interface PostalCodeContract
Specified by:
getCityName in interface PostalCodeEbo
Returns:
postal state code

setCityName

public void setCityName(String cityName)

getStateCode

public String getStateCode()
Description copied from interface: PostalCodeEbo
This the postal state code for the PostalCode. This can be null.

Specified by:
getStateCode in interface PostalCodeContract
Specified by:
getStateCode in interface PostalCodeEbo
Returns:
postal state code

setStateCode

public void setStateCode(String stateCode)

getCountyCode

public String getCountyCode()
Description copied from interface: PostalCodeEbo
This the county code for the PostalCode. This cannot be null.

Specified by:
getCountyCode in interface PostalCodeContract
Specified by:
getCountyCode in interface PostalCodeEbo
Returns:
postal state code

setCountyCode

public void setCountyCode(String countyCode)

isActive

public boolean isActive()
Description copied from interface: PostalCodeEbo
The active indicator for an object.

Specified by:
isActive in interface Inactivatable
Specified by:
isActive in interface PostalCodeEbo
Returns:
true if active false if not.

setActive

public void setActive(boolean active)
Description copied from interface: PostalCodeEbo
Sets the record to active or inactive.

Specified by:
setActive in interface MutableInactivatable
Specified by:
setActive in interface PostalCodeEbo

getCountry

public CountryBo getCountry()

setCountry

public void setCountry(CountryBo country)

getState

public StateBo getState()

setState

public void setState(StateBo state)

getCounty

public CountyBo getCounty()

setCounty

public void setCounty(CountyBo county)

to

public static PostalCode to(PostalCodeBo bo)
Converts a mutable bo to its immutable counterpart

Parameters:
bo - the mutable business object
Returns:
An immutable PostalCode if the passed in mutable is not null. If the mutable reference was null, then null is returned.

from

public static PostalCodeBo from(PostalCode im)
Converts a immutable object to its mutable counterpart

Parameters:
im - immutable object
Returns:
a new mutable PostalCodeBo if the passed in mutable is not null. If the immutable reference was null, then null is returned.


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.