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
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
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated relation code constant for relationRoomPreferenceAccommodationRelationdefining source attributeaccommodationin extensiontravelservices.static final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofRoomPreference.accommodationattribute defined at extensiontravelservices.static final StringGenerated constant - Attribute key ofRoomPreference.preferenceTypeattribute defined at extensiontravelservices.static final StringGenerated constant - Attribute key ofRoomPreference.valueattribute defined at extensiontravelservices.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.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 parametersRoomPreferenceModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing context -
Method Summary
Modifier and TypeMethodDescriptionGenerated method - Getter of theRoomPreference.accommodationattribute defined at extensiontravelservices.Generated method - Getter of theRoomPreference.preferenceTypeattribute defined at extensiontravelservices.getValue()Generated method - Getter of theRoomPreference.valueattribute defined at extensiontravelservices.Generated method - Getter of theRoomPreference.valueattribute defined at extensiontravelservices.voidGenerated method - Setter ofRoomPreference.accommodationattribute defined at extensiontravelservices.voidGenerated method - Setter ofRoomPreference.preferenceTypeattribute defined at extensiontravelservices.voidGenerated method - Setter ofRoomPreference.valueattribute defined at extensiontravelservices.voidGenerated method - Setter ofRoomPreference.valueattribute defined at extensiontravelservices.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:
-
_ROOMPREFERENCEACCOMMODATIONRELATION
Generated relation code constant for relationRoomPreferenceAccommodationRelationdefining source attributeaccommodationin extensiontravelservices.- See Also:
-
VALUE
Generated constant - Attribute key ofRoomPreference.valueattribute defined at extensiontravelservices.- See Also:
-
PREFERENCETYPE
Generated constant - Attribute key ofRoomPreference.preferenceTypeattribute defined at extensiontravelservices.- See Also:
-
ACCOMMODATION
Generated constant - Attribute key ofRoomPreference.accommodationattribute defined at extensiontravelservices.- 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, 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:
_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Details
-
getAccommodation
@Accessor(qualifier="accommodation", type=GETTER) public Collection<AccommodationModel> getAccommodation()Generated method - Getter of theRoomPreference.accommodationattribute defined at extensiontravelservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the accommodation
-
getPreferenceType
Generated method - Getter of theRoomPreference.preferenceTypeattribute defined at extensiontravelservices.- Returns:
- the preferenceType
-
getValue
Generated method - Getter of theRoomPreference.valueattribute defined at extensiontravelservices.- Returns:
- the value
-
getValue
Generated method - Getter of theRoomPreference.valueattribute defined at extensiontravelservices.- 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 ofRoomPreference.accommodationattribute defined at extensiontravelservices.- Parameters:
value- the accommodation
-
setPreferenceType
@Accessor(qualifier="preferenceType", type=SETTER) public void setPreferenceType(RoomPreferenceType value) Generated method - Setter ofRoomPreference.preferenceTypeattribute defined at extensiontravelservices.- Parameters:
value- the preferenceType
-
setValue
Generated method - Setter ofRoomPreference.valueattribute defined at extensiontravelservices.- Parameters:
value- the value
-
setValue
Generated method - Setter ofRoomPreference.valueattribute defined at extensiontravelservices.- Parameters:
value- the valueloc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-