Class ProductEntitlementModel
java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
de.hybris.platform.entitlementservices.model.ProductEntitlementModel
- All Implemented Interfaces:
Serializable
Generated model class for type ProductEntitlement first defined at extension entitlementservices.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated relation code constant for relationProduct2ProductEntitlementsRelationdefining source attributesubscriptionProductin extensionentitlementservices.static final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofProductEntitlement.catalogVersionattribute defined at extensionentitlementservices.static final StringGenerated constant - Attribute key ofProductEntitlement.conditionGeoattribute defined at extensionentitlementservices.static final StringGenerated constant - Attribute key ofProductEntitlement.conditionPathattribute defined at extensionentitlementservices.static final StringGenerated constant - Attribute key ofProductEntitlement.conditionStringattribute defined at extensionentitlementservices.static final StringGenerated constant - Attribute key ofProductEntitlement.descriptionattribute defined at extensionentitlementservices.static final StringGenerated constant - Attribute key ofProductEntitlement.entitlementattribute defined at extensionentitlementservices.static final StringGenerated constant - Attribute key ofProductEntitlement.idattribute defined at extensionentitlementservices.static final StringGenerated constant - Attribute key ofProductEntitlement.quantityattribute defined at extensionentitlementservices.static final StringGenerated constant - Attribute key ofProductEntitlement.subscriptionProductattribute defined at extensionentitlementservices.static final StringGenerated constant - Attribute key ofProductEntitlement.timeUnitattribute defined at extensionentitlementservices.static final StringGenerated constant - Attribute key ofProductEntitlement.timeUnitDurationattribute defined at extensionentitlementservices.static final StringGenerated constant - Attribute key ofProductEntitlement.timeUnitStartattribute defined at extensionentitlementservices.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.ProductEntitlementModel(CatalogVersionModel _catalogVersion, EntitlementModel _entitlement, String _id, ItemModel _owner, ProductModel _subscriptionProduct) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersProductEntitlementModel(EntitlementModel _entitlement, ProductModel _subscriptionProduct) 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 - Default constructor for creation with existing context -
Method Summary
Modifier and TypeMethodDescriptionGenerated method - Getter of theProductEntitlement.catalogVersionattribute defined at extensionentitlementservices.Generated method - Getter of theProductEntitlement.conditionGeoattribute defined at extensionentitlementservices.Generated method - Getter of theProductEntitlement.conditionPathattribute defined at extensionentitlementservices.Generated method - Getter of theProductEntitlement.conditionStringattribute defined at extensionentitlementservices.Generated method - Getter of theProductEntitlement.descriptionattribute defined at extensionentitlementservices.getDescription(Locale loc) Generated method - Getter of theProductEntitlement.descriptionattribute defined at extensionentitlementservices.Generated method - Getter of theProductEntitlement.entitlementattribute defined at extensionentitlementservices.getId()Generated method - Getter of theProductEntitlement.idattribute defined at extensionentitlementservices.Generated method - Getter of theProductEntitlement.quantityattribute defined at extensionentitlementservices.Generated method - Getter of theProductEntitlement.subscriptionProductattribute defined at extensionentitlementservices.Generated method - Getter of theProductEntitlement.timeUnitattribute defined at extensionentitlementservices.Generated method - Getter of theProductEntitlement.timeUnitDurationattribute defined at extensionentitlementservices.Generated method - Getter of theProductEntitlement.timeUnitStartattribute defined at extensionentitlementservices.voidGenerated method - Initial setter ofProductEntitlement.catalogVersionattribute defined at extensionentitlementservices.voidsetConditionGeo(Collection<String> value) Generated method - Setter ofProductEntitlement.conditionGeoattribute defined at extensionentitlementservices.voidsetConditionPath(String value) Generated method - Setter ofProductEntitlement.conditionPathattribute defined at extensionentitlementservices.voidsetConditionString(String value) Generated method - Setter ofProductEntitlement.conditionStringattribute defined at extensionentitlementservices.voidsetDescription(String value) Generated method - Setter ofProductEntitlement.descriptionattribute defined at extensionentitlementservices.voidsetDescription(String value, Locale loc) Generated method - Setter ofProductEntitlement.descriptionattribute defined at extensionentitlementservices.voidsetEntitlement(EntitlementModel value) Generated method - Setter ofProductEntitlement.entitlementattribute defined at extensionentitlementservices.voidGenerated method - Initial setter ofProductEntitlement.idattribute defined at extensionentitlementservices.voidsetQuantity(Integer value) Generated method - Setter ofProductEntitlement.quantityattribute defined at extensionentitlementservices.voidGenerated method - Setter ofProductEntitlement.subscriptionProductattribute defined at extensionentitlementservices.voidsetTimeUnit(EntitlementTimeUnit value) Generated method - Setter ofProductEntitlement.timeUnitattribute defined at extensionentitlementservices.voidsetTimeUnitDuration(Integer value) Generated method - Setter ofProductEntitlement.timeUnitDurationattribute defined at extensionentitlementservices.voidsetTimeUnitStart(Integer value) Generated method - Setter ofProductEntitlement.timeUnitStartattribute defined at extensionentitlementservices.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:
-
_PRODUCT2PRODUCTENTITLEMENTSRELATION
Generated relation code constant for relationProduct2ProductEntitlementsRelationdefining source attributesubscriptionProductin extensionentitlementservices.- See Also:
-
ID
Generated constant - Attribute key ofProductEntitlement.idattribute defined at extensionentitlementservices.- See Also:
-
DESCRIPTION
Generated constant - Attribute key ofProductEntitlement.descriptionattribute defined at extensionentitlementservices.- See Also:
-
CATALOGVERSION
Generated constant - Attribute key ofProductEntitlement.catalogVersionattribute defined at extensionentitlementservices.- See Also:
-
TIMEUNIT
Generated constant - Attribute key ofProductEntitlement.timeUnitattribute defined at extensionentitlementservices.- See Also:
-
TIMEUNITSTART
Generated constant - Attribute key ofProductEntitlement.timeUnitStartattribute defined at extensionentitlementservices.- See Also:
-
TIMEUNITDURATION
Generated constant - Attribute key ofProductEntitlement.timeUnitDurationattribute defined at extensionentitlementservices.- See Also:
-
CONDITIONSTRING
Generated constant - Attribute key ofProductEntitlement.conditionStringattribute defined at extensionentitlementservices.- See Also:
-
CONDITIONPATH
Generated constant - Attribute key ofProductEntitlement.conditionPathattribute defined at extensionentitlementservices.- See Also:
-
CONDITIONGEO
Generated constant - Attribute key ofProductEntitlement.conditionGeoattribute defined at extensionentitlementservices.- See Also:
-
QUANTITY
Generated constant - Attribute key ofProductEntitlement.quantityattribute defined at extensionentitlementservices.- See Also:
-
SUBSCRIPTIONPRODUCT
Generated constant - Attribute key ofProductEntitlement.subscriptionProductattribute defined at extensionentitlementservices.- See Also:
-
ENTITLEMENT
Generated constant - Attribute key ofProductEntitlement.entitlementattribute defined at extensionentitlementservices.- See Also:
-
-
Constructor Details
-
ProductEntitlementModel
public ProductEntitlementModel()Generated constructor - Default constructor for generic creation. -
ProductEntitlementModel
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
ProductEntitlementModel
@Deprecated(since="4.1.1", forRemoval=true) public ProductEntitlementModel(EntitlementModel _entitlement, ProductModel _subscriptionProduct) 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:
_entitlement- initial attribute declared by typeProductEntitlementat extensionentitlementservices_subscriptionProduct- initial attribute declared by typeProductEntitlementat extensionentitlementservices
-
ProductEntitlementModel
@Deprecated(since="4.1.1", forRemoval=true) public ProductEntitlementModel(CatalogVersionModel _catalogVersion, EntitlementModel _entitlement, String _id, ItemModel _owner, ProductModel _subscriptionProduct) 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:
_catalogVersion- initial attribute declared by typeProductEntitlementat extensionentitlementservices_entitlement- initial attribute declared by typeProductEntitlementat extensionentitlementservices_id- initial attribute declared by typeProductEntitlementat extensionentitlementservices_owner- initial attribute declared by typeItemat extensioncore_subscriptionProduct- initial attribute declared by typeProductEntitlementat extensionentitlementservices
-
-
Method Details
-
getCatalogVersion
Generated method - Getter of theProductEntitlement.catalogVersionattribute defined at extensionentitlementservices.- Returns:
- the catalogVersion - Catalog Version
-
getConditionGeo
Generated method - Getter of theProductEntitlement.conditionGeoattribute defined at extensionentitlementservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the conditionGeo - Geo Condition
-
getConditionPath
Generated method - Getter of theProductEntitlement.conditionPathattribute defined at extensionentitlementservices.- Returns:
- the conditionPath - Path Condition
-
getConditionString
Generated method - Getter of theProductEntitlement.conditionStringattribute defined at extensionentitlementservices.- Returns:
- the conditionString - String Condition
-
getDescription
Generated method - Getter of theProductEntitlement.descriptionattribute defined at extensionentitlementservices.- Returns:
- the description - Description
-
getDescription
Generated method - Getter of theProductEntitlement.descriptionattribute defined at extensionentitlementservices.- Parameters:
loc- the value localization key- Returns:
- the description - Description
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
getEntitlement
Generated method - Getter of theProductEntitlement.entitlementattribute defined at extensionentitlementservices.- Returns:
- the entitlement
-
getId
Generated method - Getter of theProductEntitlement.idattribute defined at extensionentitlementservices.- Returns:
- the id - Identifier
-
getQuantity
Generated method - Getter of theProductEntitlement.quantityattribute defined at extensionentitlementservices.- Returns:
- the quantity - Quantity
-
getSubscriptionProduct
@Accessor(qualifier="subscriptionProduct", type=GETTER) public ProductModel getSubscriptionProduct()Generated method - Getter of theProductEntitlement.subscriptionProductattribute defined at extensionentitlementservices.- Returns:
- the subscriptionProduct
-
getTimeUnit
Generated method - Getter of theProductEntitlement.timeUnitattribute defined at extensionentitlementservices.- Returns:
- the timeUnit - Time Unit
-
getTimeUnitDuration
Generated method - Getter of theProductEntitlement.timeUnitDurationattribute defined at extensionentitlementservices.- Returns:
- the timeUnitDuration - Duration
-
getTimeUnitStart
Generated method - Getter of theProductEntitlement.timeUnitStartattribute defined at extensionentitlementservices.- Returns:
- the timeUnitStart - Start
-
setCatalogVersion
@Accessor(qualifier="catalogVersion", type=SETTER) public void setCatalogVersion(CatalogVersionModel value) Generated method - Initial setter ofProductEntitlement.catalogVersionattribute defined at extensionentitlementservices. Can only be used at creation of model - before first save.- Parameters:
value- the catalogVersion - Catalog Version
-
setConditionGeo
@Accessor(qualifier="conditionGeo", type=SETTER) public void setConditionGeo(Collection<String> value) Generated method - Setter ofProductEntitlement.conditionGeoattribute defined at extensionentitlementservices.- Parameters:
value- the conditionGeo - Geo Condition
-
setConditionPath
Generated method - Setter ofProductEntitlement.conditionPathattribute defined at extensionentitlementservices.- Parameters:
value- the conditionPath - Path Condition
-
setConditionString
Generated method - Setter ofProductEntitlement.conditionStringattribute defined at extensionentitlementservices.- Parameters:
value- the conditionString - String Condition
-
setDescription
Generated method - Setter ofProductEntitlement.descriptionattribute defined at extensionentitlementservices.- Parameters:
value- the description - Description
-
setDescription
@Accessor(qualifier="description", type=SETTER) public void setDescription(String value, Locale loc) Generated method - Setter ofProductEntitlement.descriptionattribute defined at extensionentitlementservices.- Parameters:
value- the description - Descriptionloc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
setEntitlement
Generated method - Setter ofProductEntitlement.entitlementattribute defined at extensionentitlementservices.- Parameters:
value- the entitlement
-
setId
Generated method - Initial setter ofProductEntitlement.idattribute defined at extensionentitlementservices. Can only be used at creation of model - before first save.- Parameters:
value- the id - Identifier
-
setQuantity
Generated method - Setter ofProductEntitlement.quantityattribute defined at extensionentitlementservices.- Parameters:
value- the quantity - Quantity
-
setSubscriptionProduct
@Accessor(qualifier="subscriptionProduct", type=SETTER) public void setSubscriptionProduct(ProductModel value) Generated method - Setter ofProductEntitlement.subscriptionProductattribute defined at extensionentitlementservices.- Parameters:
value- the subscriptionProduct
-
setTimeUnit
Generated method - Setter ofProductEntitlement.timeUnitattribute defined at extensionentitlementservices.- Parameters:
value- the timeUnit - Time Unit
-
setTimeUnitDuration
Generated method - Setter ofProductEntitlement.timeUnitDurationattribute defined at extensionentitlementservices.- Parameters:
value- the timeUnitDuration - Duration
-
setTimeUnitStart
Generated method - Setter ofProductEntitlement.timeUnitStartattribute defined at extensionentitlementservices.- Parameters:
value- the timeUnitStart - Start
-