Class EntitlementModel
java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
de.hybris.platform.entitlementservices.model.EntitlementModel
- All Implemented Interfaces:
Serializable
Generated model class for type Entitlement 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 relationProductEntitlement2EntitlementRelationdefining source attributeproductEntitlementsin extensionentitlementservices.static final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofEntitlement.descriptionattribute defined at extensionentitlementservices.static final StringGenerated constant - Attribute key ofEntitlement.idattribute defined at extensionentitlementservices.static final StringGenerated constant - Attribute key ofEntitlement.nameattribute defined at extensionentitlementservices.static final StringGenerated constant - Attribute key ofEntitlement.productEntitlementsattribute 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.Generated constructor - Default constructor for creation with existing contextEntitlementModel(String _id) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersEntitlementModel(String _id, 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 TypeMethodDescriptionGenerated method - Getter of theEntitlement.descriptionattribute defined at extensionentitlementservices.getDescription(Locale loc) Generated method - Getter of theEntitlement.descriptionattribute defined at extensionentitlementservices.getId()Generated method - Getter of theEntitlement.idattribute defined at extensionentitlementservices.getName()Generated method - Getter of theEntitlement.nameattribute defined at extensionentitlementservices.Generated method - Getter of theEntitlement.nameattribute defined at extensionentitlementservices.Generated method - Getter of theEntitlement.productEntitlementsattribute defined at extensionentitlementservices.voidsetDescription(String value) Generated method - Setter ofEntitlement.descriptionattribute defined at extensionentitlementservices.voidsetDescription(String value, Locale loc) Generated method - Setter ofEntitlement.descriptionattribute defined at extensionentitlementservices.voidGenerated method - Initial setter ofEntitlement.idattribute defined at extensionentitlementservices.voidGenerated method - Setter ofEntitlement.nameattribute defined at extensionentitlementservices.voidGenerated method - Setter ofEntitlement.nameattribute defined at extensionentitlementservices.voidGenerated method - Setter ofEntitlement.productEntitlementsattribute 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:
-
_PRODUCTENTITLEMENT2ENTITLEMENTRELATION
Generated relation code constant for relationProductEntitlement2EntitlementRelationdefining source attributeproductEntitlementsin extensionentitlementservices.- See Also:
-
ID
Generated constant - Attribute key ofEntitlement.idattribute defined at extensionentitlementservices.- See Also:
-
NAME
Generated constant - Attribute key ofEntitlement.nameattribute defined at extensionentitlementservices.- See Also:
-
DESCRIPTION
Generated constant - Attribute key ofEntitlement.descriptionattribute defined at extensionentitlementservices.- See Also:
-
PRODUCTENTITLEMENTS
Generated constant - Attribute key ofEntitlement.productEntitlementsattribute defined at extensionentitlementservices.- See Also:
-
-
Constructor Details
-
EntitlementModel
public EntitlementModel()Generated constructor - Default constructor for generic creation. -
EntitlementModel
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
EntitlementModel
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:
_id- initial attribute declared by typeEntitlementat extensionentitlementservices
-
EntitlementModel
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:
_id- initial attribute declared by typeEntitlementat extensionentitlementservices_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Details
-
getDescription
Generated method - Getter of theEntitlement.descriptionattribute defined at extensionentitlementservices.- Returns:
- the description - Description
-
getDescription
Generated method - Getter of theEntitlement.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
-
getId
Generated method - Getter of theEntitlement.idattribute defined at extensionentitlementservices.- Returns:
- the id - Identifier
-
getName
Generated method - Getter of theEntitlement.nameattribute defined at extensionentitlementservices.- Returns:
- the name - Name
-
getName
Generated method - Getter of theEntitlement.nameattribute defined at extensionentitlementservices.- Parameters:
loc- the value localization key- Returns:
- the name - Name
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
getProductEntitlements
@Accessor(qualifier="productEntitlements", type=GETTER) public Collection<ProductEntitlementModel> getProductEntitlements()Generated method - Getter of theEntitlement.productEntitlementsattribute defined at extensionentitlementservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the productEntitlements
-
setDescription
Generated method - Setter ofEntitlement.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 ofEntitlement.descriptionattribute defined at extensionentitlementservices.- Parameters:
value- the description - Descriptionloc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
setId
Generated method - Initial setter ofEntitlement.idattribute defined at extensionentitlementservices. Can only be used at creation of model - before first save.- Parameters:
value- the id - Identifier
-
setName
Generated method - Setter ofEntitlement.nameattribute defined at extensionentitlementservices.- Parameters:
value- the name - Name
-
setName
Generated method - Setter ofEntitlement.nameattribute defined at extensionentitlementservices.- Parameters:
value- the name - Nameloc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
setProductEntitlements
@Accessor(qualifier="productEntitlements", type=SETTER) public void setProductEntitlements(Collection<ProductEntitlementModel> value) Generated method - Setter ofEntitlement.productEntitlementsattribute defined at extensionentitlementservices.- Parameters:
value- the productEntitlements
-