Package mc.core.model.i18n
Class Territory
java.lang.Object
mc.core.model.base.EntityBase
mc.core.model.base.SimpleEntity
mc.core.model.i18n.Territory
- All Implemented Interfaces:
Serializable,IBaseEntity,ICoreEntity,IEntity,ISortableEntity
entity to store country and optionally a subdivision
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class mc.core.model.base.EntityBase
EntityBase.EntityComparator, EntityBase.Param -
Field Summary
Fields inherited from class mc.core.model.base.EntityBase
INTDESC_COLUMN_LENGTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetChildrenTerritories(List<Territory> childrenTerritories) voidsetCountry(Country country) voidsetExtension(String extension) voidsetParentTerritory(Territory parentTerritory) toString()for logging/debuggingMethods inherited from class mc.core.model.base.SimpleEntity
getId, getIsActive, setId, setIsActiveMethods inherited from class mc.core.model.base.EntityBase
equals, getCollection, getDescription, getDescription, getFlag, getIsSystem, getName, getName, getNamespace, getPrio, hashCode, setCollection, setDescription, setDescription, setFlag, setInternalDescription, setIsSystem, setName, setName, setNamespace, setPrio
-
Constructor Details
-
Territory
public Territory()standard constructor
-
-
Method Details
-
getCountry
-
setCountry
-
getExtension
-
setExtension
-
getInternalDescription
- Specified by:
getInternalDescriptionin interfaceIEntity- Overrides:
getInternalDescriptionin classSimpleEntity- Returns:
- Unique identifier in combination with entity class if internalDescription property is defined as unique.
Might be
null.
-
getParentTerritory
-
setParentTerritory
-
getChildrenTerritories
-
setChildrenTerritories
-
hasChildren
public boolean hasChildren() -
getIsoString
- Returns:
- extension of territory if any, else iso2code of assigned country if any, else null
-
toString
Description copied from class:EntityBasefor logging/debugging- Overrides:
toStringin classEntityBase- Returns:
- super.toString()@[countryIso2]@[extension]
-