@Entity public class CountryBo extends PersistableBusinessObjectBase implements CountryEbo
extension, newCollectionRecord, objectId, versionNumber| Constructor and Description |
|---|
CountryBo() |
| Modifier and Type | Method and Description |
|---|---|
static CountryBo |
from(Country immutable)
Creates a CountryBo business object from an immutable representation of a Country.
|
String |
getAlternateCode()
An alternative country code to represent a country.
|
String |
getCode()
The code value for this object.
|
String |
getName()
A full, familiar, name of a country.
|
boolean |
isActive()
The active indicator for an object.
|
boolean |
isRestricted()
Value representing whether a country is restricted.
|
void |
setActive(boolean active)
Sets the record to active or inactive.
|
void |
setAlternateCode(String alternateCode) |
void |
setCode(String code) |
void |
setName(String name) |
void |
setRestricted(boolean restricted) |
static Country |
to(CountryBo bo)
Converts a mutable CountryBo to an immutable Country representation.
|
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, setVersionNumbertoStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetVersionNumberrefreshtoStringpublic CountryBo()
public String getCode()
CountryEboThis property is required to exist.
An abbreviated String representing the unique identifying code for a given country. This code correlates directly to the alpha-2 country codes from the ISO-3166-1-alpha-2 standard.This property is required to exist.
getCode in interface CodedgetCode in interface CountryContractgetCode in interface CountryEbopublic String getAlternateCode()
CountryEboThis property is optional
getAlternateCode in interface CountryContractgetAlternateCode in interface CountryEbopublic void setAlternateCode(String alternateCode)
public String getName()
CountryEboThis property is optional
getName in interface CountryContractgetName in interface CountryEbopublic boolean isRestricted()
CountryEboThe meaning of restricted for a country varies depending upon the implementer - for instance if a country may not be used in the address of a Vendor.
The default value of this property is false.
isRestricted in interface CountryContractisRestricted in interface CountryEbopublic void setRestricted(boolean restricted)
public boolean isActive()
CountryEboisActive in interface InactivatableisActive in interface CountryEbopublic void setActive(boolean active)
CountryEbosetActive in interface MutableInactivatablesetActive in interface CountryEbopublic static Country to(CountryBo bo)
bo - Copyright © 2005–2014 The Kuali Foundation. All rights reserved.