Class TravelSectorModel
java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
de.hybris.platform.travelservices.model.travel.TravelSectorModel
- All Implemented Interfaces:
Serializable
Generated model class for type TravelSector first defined at extension travelservices.
This type represents a point to point segment. One or more sectors form a travel route.
- 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 relationTravelRouteTravelSectorRelationdefining source attributetravelRoutein extensiontravelservices.static final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofTravelSector.codeattribute defined at extensiontravelservices.static final StringGenerated constant - Attribute key ofTravelSector.destinationattribute defined at extensiontravelservices.static final StringGenerated constant - Attribute key ofTravelSector.nameattribute defined at extensiontravelservices.static final StringGenerated constant - Attribute key ofTravelSector.originattribute defined at extensiontravelservices.static final StringGenerated constant - Attribute key ofTravelSector.transportOfferingattribute defined at extensiontravelservices.static final StringGenerated constant - Attribute key ofTravelSector.travelRouteattribute 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.TravelSectorModel(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 parametersTravelSectorModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing context -
Method Summary
Modifier and TypeMethodDescriptiongetCode()Generated method - Getter of theTravelSector.codeattribute defined at extensiontravelservices.Generated method - Getter of theTravelSector.destinationattribute defined at extensiontravelservices.getName()Generated method - Getter of theTravelSector.nameattribute defined at extensiontravelservices.Generated method - Getter of theTravelSector.nameattribute defined at extensiontravelservices.Generated method - Getter of theTravelSector.originattribute defined at extensiontravelservices.Generated method - Getter of theTravelSector.transportOfferingattribute defined at extensiontravelservices.Generated method - Getter of theTravelSector.travelRouteattribute defined at extensiontravelservices.voidGenerated method - Setter ofTravelSector.codeattribute defined at extensiontravelservices.voidGenerated method - Setter ofTravelSector.destinationattribute defined at extensiontravelservices.voidGenerated method - Setter ofTravelSector.nameattribute defined at extensiontravelservices.voidGenerated method - Setter ofTravelSector.nameattribute defined at extensiontravelservices.voidsetOrigin(TransportFacilityModel value) Generated method - Setter ofTravelSector.originattribute defined at extensiontravelservices.voidGenerated method - Setter ofTravelSector.transportOfferingattribute defined at extensiontravelservices.voidsetTravelRoute(Collection<TravelRouteModel> value) Generated method - Setter ofTravelSector.travelRouteattribute 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:
-
_TRAVELROUTETRAVELSECTORRELATION
Generated relation code constant for relationTravelRouteTravelSectorRelationdefining source attributetravelRoutein extensiontravelservices.- See Also:
-
CODE
Generated constant - Attribute key ofTravelSector.codeattribute defined at extensiontravelservices.- See Also:
-
NAME
Generated constant - Attribute key ofTravelSector.nameattribute defined at extensiontravelservices.- See Also:
-
ORIGIN
Generated constant - Attribute key ofTravelSector.originattribute defined at extensiontravelservices.- See Also:
-
DESTINATION
Generated constant - Attribute key ofTravelSector.destinationattribute defined at extensiontravelservices.- See Also:
-
TRAVELROUTE
Generated constant - Attribute key ofTravelSector.travelRouteattribute defined at extensiontravelservices.- See Also:
-
TRANSPORTOFFERING
Generated constant - Attribute key ofTravelSector.transportOfferingattribute defined at extensiontravelservices.- See Also:
-
-
Constructor Details
-
TravelSectorModel
public TravelSectorModel()Generated constructor - Default constructor for generic creation. -
TravelSectorModel
public TravelSectorModel(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
-
TravelSectorModel
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
-
getCode
Generated method - Getter of theTravelSector.codeattribute defined at extensiontravelservices.- Returns:
- the code
-
getDestination
Generated method - Getter of theTravelSector.destinationattribute defined at extensiontravelservices.- Returns:
- the destination
-
getName
Generated method - Getter of theTravelSector.nameattribute defined at extensiontravelservices.- Returns:
- the name
-
getName
Generated method - Getter of theTravelSector.nameattribute defined at extensiontravelservices.- Parameters:
loc- the value localization key- Returns:
- the name
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
getOrigin
Generated method - Getter of theTravelSector.originattribute defined at extensiontravelservices.- Returns:
- the origin
-
getTransportOffering
@Accessor(qualifier="transportOffering", type=GETTER) public Collection<TransportOfferingModel> getTransportOffering()Generated method - Getter of theTravelSector.transportOfferingattribute defined at extensiontravelservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the transportOffering
-
getTravelRoute
@Accessor(qualifier="travelRoute", type=GETTER) public Collection<TravelRouteModel> getTravelRoute()Generated method - Getter of theTravelSector.travelRouteattribute defined at extensiontravelservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the travelRoute
-
setCode
Generated method - Setter ofTravelSector.codeattribute defined at extensiontravelservices.- Parameters:
value- the code
-
setDestination
@Accessor(qualifier="destination", type=SETTER) public void setDestination(TransportFacilityModel value) Generated method - Setter ofTravelSector.destinationattribute defined at extensiontravelservices.- Parameters:
value- the destination
-
setName
Generated method - Setter ofTravelSector.nameattribute defined at extensiontravelservices.- Parameters:
value- the name
-
setName
Generated method - Setter ofTravelSector.nameattribute defined at extensiontravelservices.- Parameters:
value- the nameloc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
setOrigin
Generated method - Setter ofTravelSector.originattribute defined at extensiontravelservices.- Parameters:
value- the origin
-
setTransportOffering
@Accessor(qualifier="transportOffering", type=SETTER) public void setTransportOffering(Collection<TransportOfferingModel> value) Generated method - Setter ofTravelSector.transportOfferingattribute defined at extensiontravelservices.- Parameters:
value- the transportOffering
-
setTravelRoute
@Accessor(qualifier="travelRoute", type=SETTER) public void setTravelRoute(Collection<TravelRouteModel> value) Generated method - Setter ofTravelSector.travelRouteattribute defined at extensiontravelservices.- Parameters:
value- the travelRoute
-