Class CountyBo

All Implemented Interfaces:
Serializable, Cloneable, org.apache.ojb.broker.PersistenceBrokerAware, org.eclipse.persistence.descriptors.changetracking.ChangeTracker, org.eclipse.persistence.internal.descriptors.PersistenceEntity, org.eclipse.persistence.internal.descriptors.PersistenceObject, org.eclipse.persistence.internal.weaving.PersistenceWeaved, org.eclipse.persistence.internal.weaving.PersistenceWeavedChangeTracking, org.eclipse.persistence.internal.weaving.PersistenceWeavedFetchGroups, org.eclipse.persistence.internal.weaving.PersistenceWeavedRest, org.eclipse.persistence.queries.FetchGroupTracker, Inactivatable, MutableInactivatable, Coded, GloballyUnique, Versioned, ModelObjectBasic, BusinessObject, ExternalizableBusinessObject, PersistableBusinessObject, CountyContract, CountyEbo

@Entity public class CountyBo extends PersistableBusinessObjectBase implements CountyEbo
See Also:
  • Constructor Details

    • CountyBo

      public CountyBo()
  • Method Details

    • getCode

      public String getCode()
      Specified by:
      getCode in interface Coded
      Specified by:
      getCode in interface CountyEbo
    • setCode

      public void setCode(String code)
    • getCountryCode

      public String getCountryCode()
      Specified by:
      getCountryCode in interface CountyContract
      Specified by:
      getCountryCode in interface CountyEbo
    • setCountryCode

      public void setCountryCode(String countryCode)
    • getStateCode

      public String getStateCode()
      Specified by:
      getStateCode in interface CountyContract
      Specified by:
      getStateCode in interface CountyEbo
    • setStateCode

      public void setStateCode(String stateCode)
    • getName

      public String getName()
      Specified by:
      getName in interface CountyContract
      Specified by:
      getName in interface CountyEbo
    • setName

      public void setName(String name)
    • isActive

      public boolean isActive()
      Specified by:
      isActive in interface CountyEbo
      Specified by:
      isActive in interface Inactivatable
    • setActive

      public void setActive(boolean active)
      Specified by:
      setActive in interface CountyEbo
      Specified by:
      setActive in interface MutableInactivatable
    • 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.