Class RegionModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.core.model.c2l.C2LItemModel
-
- de.hybris.platform.core.model.c2l.RegionModel
-
- All Implemented Interfaces:
java.io.Serializable
public class RegionModel extends C2LItemModel
Generated model class for type Region first defined at extension core.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_COUNTRY2REGIONRELATIONGenerated relation code constant for relationCountry2RegionRelationdefining source attributecountryin extensioncore.static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringCITIESGenerated constant - Attribute key ofRegion.citiesattribute defined at extensionchineseaddressservices.static java.lang.StringCOUNTRYGenerated constant - Attribute key ofRegion.countryattribute defined at extensioncore.static java.lang.StringISOCODESHORTGenerated constant - Attribute key ofRegion.isocodeShortattribute defined at extensioncommerceservices.-
Fields inherited from class de.hybris.platform.core.model.c2l.C2LItemModel
ACTIVE, ISOCODE, NAME, ZONE
-
Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED
-
Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
-
-
Constructor Summary
Constructors Constructor Description RegionModel()Generated constructor - Default constructor for generic creation.RegionModel(CountryModel _country, java.lang.String _isocode)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersRegionModel(CountryModel _country, java.lang.String _isocode, ItemModel _owner)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersRegionModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing context
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<CityModel>getCities()Generated method - Getter of theRegion.citiesattribute defined at extensionchineseaddressservices.CountryModelgetCountry()Generated method - Getter of theRegion.countryattribute defined at extensioncore.java.lang.StringgetIsocodeShort()Generated method - Getter of theRegion.isocodeShortattribute defined at extensioncommerceservices.voidsetCities(java.util.List<CityModel> value)Generated method - Setter ofRegion.citiesattribute defined at extensionchineseaddressservices.voidsetCountry(CountryModel value)Generated method - Setter ofRegion.countryattribute defined at extensioncore.voidsetIsocodeShort(java.lang.String value)Generated method - Setter ofRegion.isocodeShortattribute defined at extensioncommerceservices.-
Methods inherited from class de.hybris.platform.core.model.c2l.C2LItemModel
getActive, getIsocode, getName, getName, getZone, setActive, setIsocode, setName, setName, setZone
-
Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwner
-
Methods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
equals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplace
-
-
-
-
Field Detail
-
_TYPECODE
public static final java.lang.String _TYPECODE
Generated model type code constant.- See Also:
- Constant Field Values
-
_COUNTRY2REGIONRELATION
public static final java.lang.String _COUNTRY2REGIONRELATION
Generated relation code constant for relationCountry2RegionRelationdefining source attributecountryin extensioncore.- See Also:
- Constant Field Values
-
COUNTRY
public static final java.lang.String COUNTRY
Generated constant - Attribute key ofRegion.countryattribute defined at extensioncore.- See Also:
- Constant Field Values
-
ISOCODESHORT
public static final java.lang.String ISOCODESHORT
Generated constant - Attribute key ofRegion.isocodeShortattribute defined at extensioncommerceservices.- See Also:
- Constant Field Values
-
CITIES
public static final java.lang.String CITIES
Generated constant - Attribute key ofRegion.citiesattribute defined at extensionchineseaddressservices.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RegionModel
public RegionModel()
Generated constructor - Default constructor for generic creation.
-
RegionModel
public RegionModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
RegionModel
@Deprecated(since="4.1.1", forRemoval=true) public RegionModel(CountryModel _country, java.lang.String _isocode)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_country- initial attribute declared by typeRegionat extensioncore_isocode- initial attribute declared by typeRegionat extensioncore
-
RegionModel
@Deprecated(since="4.1.1", forRemoval=true) public RegionModel(CountryModel _country, java.lang.String _isocode, ItemModel _owner)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_country- initial attribute declared by typeRegionat extensioncore_isocode- initial attribute declared by typeRegionat extensioncore_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Detail
-
getCities
@Accessor(qualifier="cities", type=GETTER) public java.util.List<CityModel> getCities()
Generated method - Getter of theRegion.citiesattribute defined at extensionchineseaddressservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the cities
-
getCountry
@Accessor(qualifier="country", type=GETTER) public CountryModel getCountry()
Generated method - Getter of theRegion.countryattribute defined at extensioncore.- Returns:
- the country
-
getIsocodeShort
@Accessor(qualifier="isocodeShort", type=GETTER) public java.lang.String getIsocodeShort()
Generated method - Getter of theRegion.isocodeShortattribute defined at extensioncommerceservices.- Returns:
- the isocodeShort - 2 character isocode
-
setCities
@Accessor(qualifier="cities", type=SETTER) public void setCities(java.util.List<CityModel> value)
Generated method - Setter ofRegion.citiesattribute defined at extensionchineseaddressservices.- Parameters:
value- the cities
-
setCountry
@Accessor(qualifier="country", type=SETTER) public void setCountry(CountryModel value)
Generated method - Setter ofRegion.countryattribute defined at extensioncore.- Parameters:
value- the country
-
-