Class LocationModel
java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
de.hybris.platform.travelservices.model.travel.LocationModel
- All Implemented Interfaces:
Serializable
Generated model class for type Location first defined at extension travelservices.
This type represents a particular place or position.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.servicelayer.model.AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated relation code constant for relationLocationLocationRelationdefining source attributesuperlocationsin extensiontravelservices.static final StringGenerated relation code constant for relationTransportFacilityLocationRelationdefining source attributetransportFacilityin extensiontravelservices.static final StringGenerated relation code constant for relationTransportOfferingOriginLocationRelationdefining source attributetransportOfferingsin extensiontravelbackofficeservices.static final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofLocation.activityattribute defined at extensiontravelservices.static final StringGenerated constant - Attribute key ofLocation.codeattribute defined at extensiontravelservices.static final StringGenerated constant - Attribute key ofLocation.descriptionattribute defined at extensiontravelservices.static final StringGenerated constant - Attribute key ofLocation.identifierattribute defined at extensiontravelservices.static final StringGenerated constant - Attribute key ofLocation.locationsattribute defined at extensiontravelservices.static final StringGenerated constant - Attribute key ofLocation.locationTypeattribute defined at extensiontravelservices.static final StringGenerated constant - Attribute key ofLocation.mediasattribute defined at extensiontravelservices.static final StringGenerated constant - Attribute key ofLocation.nameattribute defined at extensiontravelservices.static final StringGenerated constant - Attribute key ofLocation.pictureattribute defined at extensiontravelservices.static final StringGenerated constant - Attribute key ofLocation.pointOfServiceattribute defined at extensiontravelservices.static final StringGenerated constant - Attribute key ofLocation.superlocationsattribute defined at extensiontravelservices.static final StringGenerated constant - Attribute key ofLocation.transportFacilityattribute defined at extensiontravelservices.static final StringGenerated constant - Attribute key ofLocation.transportOfferingsattribute defined at extensiontravelbackofficeservices.Fields 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.LocationModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing contextLocationModel(String _code) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersLocationModel(String _code, 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
Modifier and TypeMethodDescriptionGenerated method - Getter of theLocation.activityattribute defined at extensiontravelservices.getCode()Generated method - Getter of theLocation.codeattribute defined at extensiontravelservices.Generated method - Getter of theLocation.descriptionattribute defined at extensiontravelservices.getDescription(Locale loc) Generated method - Getter of theLocation.descriptionattribute defined at extensiontravelservices.Generated method - Getter of theLocation.identifierattribute defined at extensiontravelservices.Generated method - Getter of theLocation.locationsattribute defined at extensiontravelservices.Generated method - Getter of theLocation.locationTypeattribute defined at extensiontravelservices.Generated method - Getter of theLocation.mediasattribute defined at extensiontravelservices.getName()Generated method - Getter of theLocation.nameattribute defined at extensiontravelservices.Generated method - Getter of theLocation.nameattribute defined at extensiontravelservices.Generated method - Getter of theLocation.pictureattribute defined at extensiontravelservices.Generated method - Getter of theLocation.pointOfServiceattribute defined at extensiontravelservices.Generated method - Getter of theLocation.superlocationsattribute defined at extensiontravelservices.Generated method - Getter of theLocation.transportFacilityattribute defined at extensiontravelservices.Generated method - Getter of theLocation.transportOfferingsattribute defined at extensiontravelbackofficeservices.voidsetActivity(Collection<ActivityModel> value) Generated method - Setter ofLocation.activityattribute defined at extensiontravelservices.voidGenerated method - Setter ofLocation.codeattribute defined at extensiontravelservices.voidsetDescription(String value) Generated method - Setter ofLocation.descriptionattribute defined at extensiontravelservices.voidsetDescription(String value, Locale loc) Generated method - Setter ofLocation.descriptionattribute defined at extensiontravelservices.voidsetIdentifier(Collection<IdentifierModel> value) Generated method - Setter ofLocation.identifierattribute defined at extensiontravelservices.voidsetLocations(List<LocationModel> value) Generated method - Setter ofLocation.locationsattribute defined at extensiontravelservices.voidsetLocationType(LocationType value) Generated method - Setter ofLocation.locationTypeattribute defined at extensiontravelservices.voidsetMedias(List<MediaModel> value) Generated method - Setter ofLocation.mediasattribute defined at extensiontravelservices.voidGenerated method - Setter ofLocation.nameattribute defined at extensiontravelservices.voidGenerated method - Setter ofLocation.nameattribute defined at extensiontravelservices.voidsetPicture(MediaModel value) Generated method - Setter ofLocation.pictureattribute defined at extensiontravelservices.voidGenerated method - Setter ofLocation.pointOfServiceattribute defined at extensiontravelservices.voidsetSuperlocations(List<LocationModel> value) Generated method - Setter ofLocation.superlocationsattribute defined at extensiontravelservices.voidGenerated method - Setter ofLocation.transportFacilityattribute defined at extensiontravelservices.voidGenerated method - Setter ofLocation.transportOfferingsattribute defined at extensiontravelbackofficeservices.Methods 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:
-
_TRANSPORTFACILITYLOCATIONRELATION
Generated relation code constant for relationTransportFacilityLocationRelationdefining source attributetransportFacilityin extensiontravelservices.- See Also:
-
_LOCATIONLOCATIONRELATION
Generated relation code constant for relationLocationLocationRelationdefining source attributesuperlocationsin extensiontravelservices.- See Also:
-
_TRANSPORTOFFERINGORIGINLOCATIONRELATION
Generated relation code constant for relationTransportOfferingOriginLocationRelationdefining source attributetransportOfferingsin extensiontravelbackofficeservices.- See Also:
-
LOCATIONTYPE
Generated constant - Attribute key ofLocation.locationTypeattribute defined at extensiontravelservices.- See Also:
-
NAME
Generated constant - Attribute key ofLocation.nameattribute defined at extensiontravelservices.- See Also:
-
DESCRIPTION
Generated constant - Attribute key ofLocation.descriptionattribute defined at extensiontravelservices.- See Also:
-
CODE
Generated constant - Attribute key ofLocation.codeattribute defined at extensiontravelservices.- See Also:
-
PICTURE
Generated constant - Attribute key ofLocation.pictureattribute defined at extensiontravelservices.- See Also:
-
TRANSPORTFACILITY
Generated constant - Attribute key ofLocation.transportFacilityattribute defined at extensiontravelservices.- See Also:
-
IDENTIFIER
Generated constant - Attribute key ofLocation.identifierattribute defined at extensiontravelservices.- See Also:
-
ACTIVITY
Generated constant - Attribute key ofLocation.activityattribute defined at extensiontravelservices.- See Also:
-
POINTOFSERVICE
Generated constant - Attribute key ofLocation.pointOfServiceattribute defined at extensiontravelservices.- See Also:
-
SUPERLOCATIONS
Generated constant - Attribute key ofLocation.superlocationsattribute defined at extensiontravelservices.- See Also:
-
LOCATIONS
Generated constant - Attribute key ofLocation.locationsattribute defined at extensiontravelservices.- See Also:
-
MEDIAS
Generated constant - Attribute key ofLocation.mediasattribute defined at extensiontravelservices.- See Also:
-
TRANSPORTOFFERINGS
Generated constant - Attribute key ofLocation.transportOfferingsattribute defined at extensiontravelbackofficeservices.- See Also:
-
-
Constructor Details
-
LocationModel
public LocationModel()Generated constructor - Default constructor for generic creation. -
LocationModel
public LocationModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
LocationModel
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:
_code- initial attribute declared by typeLocationat extensiontravelservices
-
LocationModel
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:
_code- initial attribute declared by typeLocationat extensiontravelservices_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Details
-
getActivity
Generated method - Getter of theLocation.activityattribute defined at extensiontravelservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the activity
-
getCode
Generated method - Getter of theLocation.codeattribute defined at extensiontravelservices.- Returns:
- the code
-
getDescription
Generated method - Getter of theLocation.descriptionattribute defined at extensiontravelservices.- Returns:
- the description
-
getDescription
Generated method - Getter of theLocation.descriptionattribute defined at extensiontravelservices.- Parameters:
loc- the value localization key- Returns:
- the description
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
getIdentifier
Generated method - Getter of theLocation.identifierattribute defined at extensiontravelservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the identifier
-
getLocations
Generated method - Getter of theLocation.locationsattribute defined at extensiontravelservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the locations - Sub Locations
-
getLocationType
Generated method - Getter of theLocation.locationTypeattribute defined at extensiontravelservices.- Returns:
- the locationType
-
getMedias
Generated method - Getter of theLocation.mediasattribute defined at extensiontravelservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the medias - Location medias
-
getName
Generated method - Getter of theLocation.nameattribute defined at extensiontravelservices.- Returns:
- the name
-
getName
Generated method - Getter of theLocation.nameattribute defined at extensiontravelservices.- Parameters:
loc- the value localization key- Returns:
- the name
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
getPicture
Generated method - Getter of theLocation.pictureattribute defined at extensiontravelservices.- Returns:
- the picture - Image
-
getPointOfService
@Accessor(qualifier="pointOfService", type=GETTER) public Collection<PointOfServiceModel> getPointOfService()Generated method - Getter of theLocation.pointOfServiceattribute defined at extensiontravelservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the pointOfService
-
getSuperlocations
Generated method - Getter of theLocation.superlocationsattribute defined at extensiontravelservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the superlocations - Super Locations
-
getTransportFacility
@Accessor(qualifier="transportFacility", type=GETTER) public Collection<TransportFacilityModel> getTransportFacility()Generated method - Getter of theLocation.transportFacilityattribute defined at extensiontravelservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the transportFacility
-
getTransportOfferings
@Accessor(qualifier="transportOfferings", type=GETTER) public Collection<TransportOfferingModel> getTransportOfferings()Generated method - Getter of theLocation.transportOfferingsattribute defined at extensiontravelbackofficeservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the transportOfferings
-
setActivity
@Accessor(qualifier="activity", type=SETTER) public void setActivity(Collection<ActivityModel> value) Generated method - Setter ofLocation.activityattribute defined at extensiontravelservices.- Parameters:
value- the activity
-
setCode
Generated method - Setter ofLocation.codeattribute defined at extensiontravelservices.- Parameters:
value- the code
-
setDescription
Generated method - Setter ofLocation.descriptionattribute defined at extensiontravelservices.- Parameters:
value- the description
-
setDescription
@Accessor(qualifier="description", type=SETTER) public void setDescription(String value, Locale loc) Generated method - Setter ofLocation.descriptionattribute defined at extensiontravelservices.- Parameters:
value- the descriptionloc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
setIdentifier
@Accessor(qualifier="identifier", type=SETTER) public void setIdentifier(Collection<IdentifierModel> value) Generated method - Setter ofLocation.identifierattribute defined at extensiontravelservices.- Parameters:
value- the identifier
-
setLocations
Generated method - Setter ofLocation.locationsattribute defined at extensiontravelservices.- Parameters:
value- the locations - Sub Locations
-
setLocationType
Generated method - Setter ofLocation.locationTypeattribute defined at extensiontravelservices.- Parameters:
value- the locationType
-
setMedias
Generated method - Setter ofLocation.mediasattribute defined at extensiontravelservices.- Parameters:
value- the medias - Location medias
-
setName
Generated method - Setter ofLocation.nameattribute defined at extensiontravelservices.- Parameters:
value- the name
-
setName
Generated method - Setter ofLocation.nameattribute defined at extensiontravelservices.- Parameters:
value- the nameloc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
setPicture
Generated method - Setter ofLocation.pictureattribute defined at extensiontravelservices.- Parameters:
value- the picture - Image
-
setPointOfService
@Accessor(qualifier="pointOfService", type=SETTER) public void setPointOfService(Collection<PointOfServiceModel> value) Generated method - Setter ofLocation.pointOfServiceattribute defined at extensiontravelservices.- Parameters:
value- the pointOfService
-
setSuperlocations
@Accessor(qualifier="superlocations", type=SETTER) public void setSuperlocations(List<LocationModel> value) Generated method - Setter ofLocation.superlocationsattribute defined at extensiontravelservices.- Parameters:
value- the superlocations - Super Locations
-
setTransportFacility
@Accessor(qualifier="transportFacility", type=SETTER) public void setTransportFacility(Collection<TransportFacilityModel> value) Generated method - Setter ofLocation.transportFacilityattribute defined at extensiontravelservices.- Parameters:
value- the transportFacility
-
setTransportOfferings
@Accessor(qualifier="transportOfferings", type=SETTER) public void setTransportOfferings(Collection<TransportOfferingModel> value) Generated method - Setter ofLocation.transportOfferingsattribute defined at extensiontravelbackofficeservices.- Parameters:
value- the transportOfferings
-