Class CityModel
- 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.addressservices.model.CityModel
-
- All Implemented Interfaces:
java.io.Serializable
public class CityModel extends C2LItemModel
Generated model class for type City first defined at extension chineseaddressservices.- 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
_REGION2CITIESRELATION
Generated relation code constant for relationRegion2CitiesRelation
defining source attributeregion
in extensionchineseaddressservices
.static java.lang.String
_TYPECODE
Generated model type code constant.static java.lang.String
DISTRICTS
Generated constant - Attribute key ofCity.districts
attribute defined at extensionchineseaddressservices
.static java.lang.String
REGION
Generated constant - Attribute key ofCity.region
attribute defined at extensionchineseaddressservices
.static java.lang.String
REGIONPOS
Generated constant - Attribute key ofCity.regionPOS
attribute defined at extensionchineseaddressservices
.-
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 CityModel()
Generated constructor - Default constructor for generic creation.CityModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing contextCityModel(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 parametersCityModel(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 parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<DistrictModel>
getDistricts()
Generated method - Getter of theCity.districts
attribute defined at extensionchineseaddressservices
.RegionModel
getRegion()
Generated method - Getter of theCity.region
attribute defined at extensionchineseaddressservices
.void
setDistricts(java.util.List<DistrictModel> value)
Generated method - Setter ofCity.districts
attribute defined at extensionchineseaddressservices
.void
setRegion(RegionModel value)
Generated method - Setter ofCity.region
attribute defined at extensionchineseaddressservices
.-
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
-
_REGION2CITIESRELATION
public static final java.lang.String _REGION2CITIESRELATION
Generated relation code constant for relationRegion2CitiesRelation
defining source attributeregion
in extensionchineseaddressservices
.- See Also:
- Constant Field Values
-
REGIONPOS
public static final java.lang.String REGIONPOS
Generated constant - Attribute key ofCity.regionPOS
attribute defined at extensionchineseaddressservices
.- See Also:
- Constant Field Values
-
REGION
public static final java.lang.String REGION
Generated constant - Attribute key ofCity.region
attribute defined at extensionchineseaddressservices
.- See Also:
- Constant Field Values
-
DISTRICTS
public static final java.lang.String DISTRICTS
Generated constant - Attribute key ofCity.districts
attribute defined at extensionchineseaddressservices
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CityModel
public CityModel()
Generated constructor - Default constructor for generic creation.
-
CityModel
public CityModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx
- the model context to be injected, must not be null
-
CityModel
@Deprecated(since="4.1.1", forRemoval=true) public CityModel(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:
_isocode
- initial attribute declared by typeCity
at extensionchineseaddressservices
-
CityModel
@Deprecated(since="4.1.1", forRemoval=true) public CityModel(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:
_isocode
- initial attribute declared by typeCity
at extensionchineseaddressservices
_owner
- initial attribute declared by typeItem
at extensioncore
-
-
Method Detail
-
getDistricts
@Accessor(qualifier="districts", type=GETTER) public java.util.List<DistrictModel> getDistricts()
Generated method - Getter of theCity.districts
attribute defined at extensionchineseaddressservices
. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the districts
-
getRegion
@Accessor(qualifier="region", type=GETTER) public RegionModel getRegion()
Generated method - Getter of theCity.region
attribute defined at extensionchineseaddressservices
.- Returns:
- the region
-
setDistricts
@Accessor(qualifier="districts", type=SETTER) public void setDistricts(java.util.List<DistrictModel> value)
Generated method - Setter ofCity.districts
attribute defined at extensionchineseaddressservices
.- Parameters:
value
- the districts
-
setRegion
@Accessor(qualifier="region", type=SETTER) public void setRegion(RegionModel value)
Generated method - Setter ofCity.region
attribute defined at extensionchineseaddressservices
.- Parameters:
value
- the region
-
-