Class StateBo

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, StateContract, StateEbo

@Entity public class StateBo extends PersistableBusinessObjectBase implements StateEbo
See Also:
  • Constructor Details

    • StateBo

      public StateBo()
  • Method Details

    • getCode

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

      public void setCode(String code)
    • getCountryCode

      public String getCountryCode()
      Specified by:
      getCountryCode in interface StateContract
      Specified by:
      getCountryCode in interface StateEbo
    • setCountryCode

      public void setCountryCode(String countryCode)
    • getName

      public String getName()
      Specified by:
      getName in interface StateContract
      Specified by:
      getName in interface StateEbo
    • setName

      public void setName(String name)
    • getNameV3

      public String getNameV3()
      Specified by:
      getNameV3 in interface StateContract
      Specified by:
      getNameV3 in interface StateEbo
    • setNameV3

      public void setNameV3(String nameV3)
    • isActive

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

      public void setActive(boolean active)
      Specified by:
      setActive in interface MutableInactivatable
      Specified by:
      setActive in interface StateEbo
    • getCountry

      public CountryBo getCountry()
    • setCountry

      public void setCountry(CountryBo country)
    • to

      public static State to(StateBo bo)
      Converts a mutable bo to its immutable counterpart
      Parameters:
      bo - the mutable business object
      Returns:
      An immutable State if the passed in mutable is not null. If the mutable reference was null, then null is returned.
    • from

      public static StateBo from(State im)
      Converts a immutable object to its mutable counterpart
      Parameters:
      im - immutable object
      Returns:
      a new mutable CountryBo if the passed in immutable is not null. If the immutable reference was null, then null is returned.