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:
Serializable
Generated model class for type City first defined at extension chineseaddressservices.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated relation code constant for relationRegion2CitiesRelationdefining source attributeregionin extensionchineseaddressservices.static final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofCity.districtsattribute defined at extensionchineseaddressservices.static final StringGenerated constant - Attribute key ofCity.regionattribute defined at extensionchineseaddressservices.static final StringGenerated constant - Attribute key ofCity.regionPOSattribute defined at extensionchineseaddressservices.Fields inherited from class de.hybris.platform.core.model.c2l.C2LItemModel
ACTIVE, ISOCODE, NAME, ZONEFields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDFields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionGenerated constructor - Default constructor for generic creation.Generated constructor - Default constructor for creation with existing contextDeprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersDeprecated, 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
Modifier and TypeMethodDescriptionGenerated method - Getter of theCity.districtsattribute defined at extensionchineseaddressservices.Generated method - Getter of theCity.regionattribute defined at extensionchineseaddressservices.voidsetDistricts(List<DistrictModel> value) Generated method - Setter ofCity.districtsattribute defined at extensionchineseaddressservices.voidsetRegion(RegionModel value) Generated method - Setter ofCity.regionattribute defined at extensionchineseaddressservices.Methods inherited from class de.hybris.platform.core.model.c2l.C2LItemModel
getActive, getIsocode, getName, getName, getZone, setActive, setIsocode, setName, setName, setZoneMethods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerMethods 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 Details
-
_TYPECODE
Generated model type code constant.- See Also:
-
_REGION2CITIESRELATION
Generated relation code constant for relationRegion2CitiesRelationdefining source attributeregionin extensionchineseaddressservices.- See Also:
-
REGIONPOS
Generated constant - Attribute key ofCity.regionPOSattribute defined at extensionchineseaddressservices.- See Also:
-
REGION
Generated constant - Attribute key ofCity.regionattribute defined at extensionchineseaddressservices.- See Also:
-
DISTRICTS
Generated constant - Attribute key ofCity.districtsattribute defined at extensionchineseaddressservices.- See Also:
-
-
Constructor Details
-
CityModel
public CityModel()Generated constructor - Default constructor for generic creation. -
CityModel
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
CityModel
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 typeCityat extensionchineseaddressservices
-
CityModel
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 typeCityat extensionchineseaddressservices_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Details
-
getDistricts
Generated method - Getter of theCity.districtsattribute defined at extensionchineseaddressservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the districts
-
getRegion
Generated method - Getter of theCity.regionattribute defined at extensionchineseaddressservices.- Returns:
- the region
-
setDistricts
Generated method - Setter ofCity.districtsattribute defined at extensionchineseaddressservices.- Parameters:
value- the districts
-
setRegion
Generated method - Setter ofCity.regionattribute defined at extensionchineseaddressservices.- Parameters:
value- the region
-