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

public class LocationModel extends ItemModel
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

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Generated relation code constant for relation LocationLocationRelation defining source attribute superlocations in extension travelservices.
    static final String
    Generated relation code constant for relation TransportFacilityLocationRelation defining source attribute transportFacility in extension travelservices.
    static final String
    Generated relation code constant for relation TransportOfferingOriginLocationRelation defining source attribute transportOfferings in extension travelbackofficeservices.
    static final String
    Generated model type code constant.
    static final String
    Generated constant - Attribute key of Location.activity attribute defined at extension travelservices.
    static final String
    Generated constant - Attribute key of Location.code attribute defined at extension travelservices.
    static final String
    Generated constant - Attribute key of Location.description attribute defined at extension travelservices.
    static final String
    Generated constant - Attribute key of Location.identifier attribute defined at extension travelservices.
    static final String
    Generated constant - Attribute key of Location.locations attribute defined at extension travelservices.
    static final String
    Generated constant - Attribute key of Location.locationType attribute defined at extension travelservices.
    static final String
    Generated constant - Attribute key of Location.medias attribute defined at extension travelservices.
    static final String
    Generated constant - Attribute key of Location.name attribute defined at extension travelservices.
    static final String
    Generated constant - Attribute key of Location.picture attribute defined at extension travelservices.
    static final String
    Generated constant - Attribute key of Location.pointOfService attribute defined at extension travelservices.
    static final String
    Generated constant - Attribute key of Location.superlocations attribute defined at extension travelservices.
    static final String
    Generated constant - Attribute key of Location.transportFacility attribute defined at extension travelservices.
    static final String
    Generated constant - Attribute key of Location.transportOfferings attribute defined at extension travelbackofficeservices.

    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
    Generated constructor - Default constructor for generic creation.
    LocationModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx)
    Generated constructor - Default constructor for creation with existing context
    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
    LocationModel(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 Type
    Method
    Description
    Generated method - Getter of the Location.activity attribute defined at extension travelservices.
    Generated method - Getter of the Location.code attribute defined at extension travelservices.
    Generated method - Getter of the Location.description attribute defined at extension travelservices.
    Generated method - Getter of the Location.description attribute defined at extension travelservices.
    Generated method - Getter of the Location.identifier attribute defined at extension travelservices.
    Generated method - Getter of the Location.locations attribute defined at extension travelservices.
    Generated method - Getter of the Location.locationType attribute defined at extension travelservices.
    Generated method - Getter of the Location.medias attribute defined at extension travelservices.
    Generated method - Getter of the Location.name attribute defined at extension travelservices.
    Generated method - Getter of the Location.name attribute defined at extension travelservices.
    Generated method - Getter of the Location.picture attribute defined at extension travelservices.
    Generated method - Getter of the Location.pointOfService attribute defined at extension travelservices.
    Generated method - Getter of the Location.superlocations attribute defined at extension travelservices.
    Generated method - Getter of the Location.transportFacility attribute defined at extension travelservices.
    Generated method - Getter of the Location.transportOfferings attribute defined at extension travelbackofficeservices.
    void
    Generated method - Setter of Location.activity attribute defined at extension travelservices.
    void
    setCode(String value)
    Generated method - Setter of Location.code attribute defined at extension travelservices.
    void
    Generated method - Setter of Location.description attribute defined at extension travelservices.
    void
    Generated method - Setter of Location.description attribute defined at extension travelservices.
    void
    Generated method - Setter of Location.identifier attribute defined at extension travelservices.
    void
    Generated method - Setter of Location.locations attribute defined at extension travelservices.
    void
    Generated method - Setter of Location.locationType attribute defined at extension travelservices.
    void
    Generated method - Setter of Location.medias attribute defined at extension travelservices.
    void
    setName(String value)
    Generated method - Setter of Location.name attribute defined at extension travelservices.
    void
    setName(String value, Locale loc)
    Generated method - Setter of Location.name attribute defined at extension travelservices.
    void
    Generated method - Setter of Location.picture attribute defined at extension travelservices.
    void
    Generated method - Setter of Location.pointOfService attribute defined at extension travelservices.
    void
    Generated method - Setter of Location.superlocations attribute defined at extension travelservices.
    void
    Generated method - Setter of Location.transportFacility attribute defined at extension travelservices.
    void
    Generated method - Setter of Location.transportOfferings attribute defined at extension travelbackofficeservices.

    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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • _TRANSPORTFACILITYLOCATIONRELATION

      public static final String _TRANSPORTFACILITYLOCATIONRELATION
      Generated relation code constant for relation TransportFacilityLocationRelation defining source attribute transportFacility in extension travelservices.
      See Also:
    • _LOCATIONLOCATIONRELATION

      public static final String _LOCATIONLOCATIONRELATION
      Generated relation code constant for relation LocationLocationRelation defining source attribute superlocations in extension travelservices.
      See Also:
    • _TRANSPORTOFFERINGORIGINLOCATIONRELATION

      public static final String _TRANSPORTOFFERINGORIGINLOCATIONRELATION
      Generated relation code constant for relation TransportOfferingOriginLocationRelation defining source attribute transportOfferings in extension travelbackofficeservices.
      See Also:
    • LOCATIONTYPE

      public static final String LOCATIONTYPE
      Generated constant - Attribute key of Location.locationType attribute defined at extension travelservices.
      See Also:
    • NAME

      public static final String NAME
      Generated constant - Attribute key of Location.name attribute defined at extension travelservices.
      See Also:
    • DESCRIPTION

      public static final String DESCRIPTION
      Generated constant - Attribute key of Location.description attribute defined at extension travelservices.
      See Also:
    • CODE

      public static final String CODE
      Generated constant - Attribute key of Location.code attribute defined at extension travelservices.
      See Also:
    • PICTURE

      public static final String PICTURE
      Generated constant - Attribute key of Location.picture attribute defined at extension travelservices.
      See Also:
    • TRANSPORTFACILITY

      public static final String TRANSPORTFACILITY
      Generated constant - Attribute key of Location.transportFacility attribute defined at extension travelservices.
      See Also:
    • IDENTIFIER

      public static final String IDENTIFIER
      Generated constant - Attribute key of Location.identifier attribute defined at extension travelservices.
      See Also:
    • ACTIVITY

      public static final String ACTIVITY
      Generated constant - Attribute key of Location.activity attribute defined at extension travelservices.
      See Also:
    • POINTOFSERVICE

      public static final String POINTOFSERVICE
      Generated constant - Attribute key of Location.pointOfService attribute defined at extension travelservices.
      See Also:
    • SUPERLOCATIONS

      public static final String SUPERLOCATIONS
      Generated constant - Attribute key of Location.superlocations attribute defined at extension travelservices.
      See Also:
    • LOCATIONS

      public static final String LOCATIONS
      Generated constant - Attribute key of Location.locations attribute defined at extension travelservices.
      See Also:
    • MEDIAS

      public static final String MEDIAS
      Generated constant - Attribute key of Location.medias attribute defined at extension travelservices.
      See Also:
    • TRANSPORTOFFERINGS

      public static final String TRANSPORTOFFERINGS
      Generated constant - Attribute key of Location.transportOfferings attribute defined at extension travelbackofficeservices.
      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(since="4.1.1", forRemoval=true) public LocationModel(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 parameters
      Generated constructor - Constructor with all mandatory attributes.
      Parameters:
      _code - initial attribute declared by type Location at extension travelservices
    • LocationModel

      @Deprecated(since="4.1.1", forRemoval=true) public LocationModel(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
      Generated constructor - for all mandatory and initial attributes.
      Parameters:
      _code - initial attribute declared by type Location at extension travelservices
      _owner - initial attribute declared by type Item at extension core
  • Method Details

    • getActivity

      @Accessor(qualifier="activity", type=GETTER) public Collection<ActivityModel> getActivity()
      Generated method - Getter of the Location.activity attribute defined at extension travelservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the activity
    • getCode

      @Accessor(qualifier="code", type=GETTER) public String getCode()
      Generated method - Getter of the Location.code attribute defined at extension travelservices.
      Returns:
      the code
    • getDescription

      @Accessor(qualifier="description", type=GETTER) public String getDescription()
      Generated method - Getter of the Location.description attribute defined at extension travelservices.
      Returns:
      the description
    • getDescription

      @Accessor(qualifier="description", type=GETTER) public String getDescription(Locale loc)
      Generated method - Getter of the Location.description attribute defined at extension travelservices.
      Parameters:
      loc - the value localization key
      Returns:
      the description
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • getIdentifier

      @Accessor(qualifier="identifier", type=GETTER) public Collection<IdentifierModel> getIdentifier()
      Generated method - Getter of the Location.identifier attribute defined at extension travelservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the identifier
    • getLocations

      @Accessor(qualifier="locations", type=GETTER) public List<LocationModel> getLocations()
      Generated method - Getter of the Location.locations attribute defined at extension travelservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the locations - Sub Locations
    • getLocationType

      @Accessor(qualifier="locationType", type=GETTER) public LocationType getLocationType()
      Generated method - Getter of the Location.locationType attribute defined at extension travelservices.
      Returns:
      the locationType
    • getMedias

      @Accessor(qualifier="medias", type=GETTER) public List<MediaModel> getMedias()
      Generated method - Getter of the Location.medias attribute defined at extension travelservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the medias - Location medias
    • getName

      @Accessor(qualifier="name", type=GETTER) public String getName()
      Generated method - Getter of the Location.name attribute defined at extension travelservices.
      Returns:
      the name
    • getName

      @Accessor(qualifier="name", type=GETTER) public String getName(Locale loc)
      Generated method - Getter of the Location.name attribute defined at extension travelservices.
      Parameters:
      loc - the value localization key
      Returns:
      the name
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • getPicture

      @Accessor(qualifier="picture", type=GETTER) public MediaModel getPicture()
      Generated method - Getter of the Location.picture attribute defined at extension travelservices.
      Returns:
      the picture - Image
    • getPointOfService

      @Accessor(qualifier="pointOfService", type=GETTER) public Collection<PointOfServiceModel> getPointOfService()
      Generated method - Getter of the Location.pointOfService attribute defined at extension travelservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the pointOfService
    • getSuperlocations

      @Accessor(qualifier="superlocations", type=GETTER) public List<LocationModel> getSuperlocations()
      Generated method - Getter of the Location.superlocations attribute defined at extension travelservices. 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 the Location.transportFacility attribute defined at extension travelservices. 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 the Location.transportOfferings attribute defined at extension travelbackofficeservices. 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 of Location.activity attribute defined at extension travelservices.
      Parameters:
      value - the activity
    • setCode

      @Accessor(qualifier="code", type=SETTER) public void setCode(String value)
      Generated method - Setter of Location.code attribute defined at extension travelservices.
      Parameters:
      value - the code
    • setDescription

      @Accessor(qualifier="description", type=SETTER) public void setDescription(String value)
      Generated method - Setter of Location.description attribute defined at extension travelservices.
      Parameters:
      value - the description
    • setDescription

      @Accessor(qualifier="description", type=SETTER) public void setDescription(String value, Locale loc)
      Generated method - Setter of Location.description attribute defined at extension travelservices.
      Parameters:
      value - the description
      loc - 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 of Location.identifier attribute defined at extension travelservices.
      Parameters:
      value - the identifier
    • setLocations

      @Accessor(qualifier="locations", type=SETTER) public void setLocations(List<LocationModel> value)
      Generated method - Setter of Location.locations attribute defined at extension travelservices.
      Parameters:
      value - the locations - Sub Locations
    • setLocationType

      @Accessor(qualifier="locationType", type=SETTER) public void setLocationType(LocationType value)
      Generated method - Setter of Location.locationType attribute defined at extension travelservices.
      Parameters:
      value - the locationType
    • setMedias

      @Accessor(qualifier="medias", type=SETTER) public void setMedias(List<MediaModel> value)
      Generated method - Setter of Location.medias attribute defined at extension travelservices.
      Parameters:
      value - the medias - Location medias
    • setName

      @Accessor(qualifier="name", type=SETTER) public void setName(String value)
      Generated method - Setter of Location.name attribute defined at extension travelservices.
      Parameters:
      value - the name
    • setName

      @Accessor(qualifier="name", type=SETTER) public void setName(String value, Locale loc)
      Generated method - Setter of Location.name attribute defined at extension travelservices.
      Parameters:
      value - the name
      loc - the value localization key
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • setPicture

      @Accessor(qualifier="picture", type=SETTER) public void setPicture(MediaModel value)
      Generated method - Setter of Location.picture attribute defined at extension travelservices.
      Parameters:
      value - the picture - Image
    • setPointOfService

      @Accessor(qualifier="pointOfService", type=SETTER) public void setPointOfService(Collection<PointOfServiceModel> value)
      Generated method - Setter of Location.pointOfService attribute defined at extension travelservices.
      Parameters:
      value - the pointOfService
    • setSuperlocations

      @Accessor(qualifier="superlocations", type=SETTER) public void setSuperlocations(List<LocationModel> value)
      Generated method - Setter of Location.superlocations attribute defined at extension travelservices.
      Parameters:
      value - the superlocations - Super Locations
    • setTransportFacility

      @Accessor(qualifier="transportFacility", type=SETTER) public void setTransportFacility(Collection<TransportFacilityModel> value)
      Generated method - Setter of Location.transportFacility attribute defined at extension travelservices.
      Parameters:
      value - the transportFacility
    • setTransportOfferings

      @Accessor(qualifier="transportOfferings", type=SETTER) public void setTransportOfferings(Collection<TransportOfferingModel> value)
      Generated method - Setter of Location.transportOfferings attribute defined at extension travelbackofficeservices.
      Parameters:
      value - the transportOfferings