Class RoomPreferenceModel

java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
de.hybris.platform.travelservices.model.accommodation.RoomPreferenceModel
All Implemented Interfaces:
Serializable

public class RoomPreferenceModel extends ItemModel
Generated model class for type RoomPreference first defined at extension travelservices.

This item represents a room preference relative to a preference type.

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 RoomPreferenceAccommodationRelation defining source attribute accommodation in extension travelservices.
    static final String
    Generated model type code constant.
    static final String
    Generated constant - Attribute key of RoomPreference.accommodation attribute defined at extension travelservices.
    static final String
    Generated constant - Attribute key of RoomPreference.preferenceType attribute defined at extension travelservices.
    static final String
    Generated constant - Attribute key of RoomPreference.value attribute defined at extension travelservices.

    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.
    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
    RoomPreferenceModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx)
    Generated constructor - Default constructor for creation with existing context
  • Method Summary

    Modifier and Type
    Method
    Description
    Generated method - Getter of the RoomPreference.accommodation attribute defined at extension travelservices.
    Generated method - Getter of the RoomPreference.preferenceType attribute defined at extension travelservices.
    Generated method - Getter of the RoomPreference.value attribute defined at extension travelservices.
    Generated method - Getter of the RoomPreference.value attribute defined at extension travelservices.
    void
    Generated method - Setter of RoomPreference.accommodation attribute defined at extension travelservices.
    void
    Generated method - Setter of RoomPreference.preferenceType attribute defined at extension travelservices.
    void
    Generated method - Setter of RoomPreference.value attribute defined at extension travelservices.
    void
    setValue(String value, Locale loc)
    Generated method - Setter of RoomPreference.value attribute defined at extension travelservices.

    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:
    • _ROOMPREFERENCEACCOMMODATIONRELATION

      public static final String _ROOMPREFERENCEACCOMMODATIONRELATION
      Generated relation code constant for relation RoomPreferenceAccommodationRelation defining source attribute accommodation in extension travelservices.
      See Also:
    • VALUE

      public static final String VALUE
      Generated constant - Attribute key of RoomPreference.value attribute defined at extension travelservices.
      See Also:
    • PREFERENCETYPE

      public static final String PREFERENCETYPE
      Generated constant - Attribute key of RoomPreference.preferenceType attribute defined at extension travelservices.
      See Also:
    • ACCOMMODATION

      public static final String ACCOMMODATION
      Generated constant - Attribute key of RoomPreference.accommodation attribute defined at extension travelservices.
      See Also:
  • Constructor Details

    • RoomPreferenceModel

      public RoomPreferenceModel()
      Generated constructor - Default constructor for generic creation.
    • RoomPreferenceModel

      public RoomPreferenceModel(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
    • RoomPreferenceModel

      @Deprecated(since="4.1.1", forRemoval=true) public RoomPreferenceModel(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:
      _owner - initial attribute declared by type Item at extension core
  • Method Details

    • getAccommodation

      @Accessor(qualifier="accommodation", type=GETTER) public Collection<AccommodationModel> getAccommodation()
      Generated method - Getter of the RoomPreference.accommodation attribute defined at extension travelservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the accommodation
    • getPreferenceType

      @Accessor(qualifier="preferenceType", type=GETTER) public RoomPreferenceType getPreferenceType()
      Generated method - Getter of the RoomPreference.preferenceType attribute defined at extension travelservices.
      Returns:
      the preferenceType
    • getValue

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

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

      @Accessor(qualifier="accommodation", type=SETTER) public void setAccommodation(Collection<AccommodationModel> value)
      Generated method - Setter of RoomPreference.accommodation attribute defined at extension travelservices.
      Parameters:
      value - the accommodation
    • setPreferenceType

      @Accessor(qualifier="preferenceType", type=SETTER) public void setPreferenceType(RoomPreferenceType value)
      Generated method - Setter of RoomPreference.preferenceType attribute defined at extension travelservices.
      Parameters:
      value - the preferenceType
    • setValue

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

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