org.kuali.rice.location.impl.county
Class CountyBo

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.county.CountyBo
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, Inactivatable, MutableInactivatable, Coded, GloballyUnique, Versioned, ModelObjectBasic, BusinessObject, ExternalizableBusinessObject, PersistableBusinessObject, CountyContract, CountyEbo

@Entity
public class CountyBo
extends PersistableBusinessObjectBase
implements CountyEbo

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
extension, newCollectionRecord, objectId, versionNumber
 
Constructor Summary
CountyBo()
           
 
Method Summary
static CountyBo from(County im)
          Converts a immutable object to its mutable counterpart
 String getCode()
          The code value for this object.
 CountryBo getCountry()
           
 String getCountryCode()
          This the postal country code for the County.
 String getName()
          This the name for the County.
 StateBo getState()
           
 String getStateCode()
          This the postal state code for the County.
 boolean isActive()
          The active indicator for an object.
 void setActive(boolean active)
          Sets the record to active or inactive.
 void setCode(String code)
           
 void setCountry(CountryBo country)
           
 void setCountryCode(String countryCode)
           
 void setName(String name)
           
 void setState(StateBo state)
           
 void setStateCode(String stateCode)
           
static County to(CountyBo 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.county.CountyEbo
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

CountyBo

public CountyBo()
Method Detail

getCode

public String getCode()
Description copied from interface: CountyEbo
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 CountyEbo
Returns:
the code value for this object.

setCode

public void setCode(String code)

getCountryCode

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

Specified by:
getCountryCode in interface CountyContract
Specified by:
getCountryCode in interface CountyEbo
Returns:
postal country code

setCountryCode

public void setCountryCode(String countryCode)

getStateCode

public String getStateCode()
Description copied from interface: CountyEbo
This the postal state code for the County. This cannot be null or a blank string.

Specified by:
getStateCode in interface CountyContract
Specified by:
getStateCode in interface CountyEbo
Returns:
postal state code

setStateCode

public void setStateCode(String stateCode)

getName

public String getName()
Description copied from interface: CountyEbo
This the name for the County. This cannot be null or a blank string.

Specified by:
getName in interface CountyContract
Specified by:
getName in interface CountyEbo
Returns:
name

setName

public void setName(String name)

isActive

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

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

setActive

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

Specified by:
setActive in interface MutableInactivatable
Specified by:
setActive in interface CountyEbo

getCountry

public CountryBo getCountry()

setCountry

public void setCountry(CountryBo country)

getState

public StateBo getState()

setState

public void setState(StateBo state)

to

public static County to(CountyBo bo)
Converts a mutable bo to its immutable counterpart

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

from

public static CountyBo from(County im)
Converts a immutable object to its mutable counterpart

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


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