Class CustomerCouponModel
java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
de.hybris.platform.couponservices.model.AbstractCouponModel
de.hybris.platform.customercouponservices.model.CustomerCouponModel
- All Implemented Interfaces:
Serializable
Generated model class for type CustomerCoupon first defined at extension customercouponservices.
- 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 model type code constant.static final StringGenerated constant - Attribute key ofCustomerCoupon.assignableattribute defined at extensioncustomercouponservices.static final StringGenerated constant - Attribute key ofCustomerCoupon.customersattribute defined at extensioncustomercouponservices.static final StringGenerated constant - Attribute key ofCustomerCoupon.descriptionattribute defined at extensioncustomercouponservices.Fields inherited from class de.hybris.platform.couponservices.model.AbstractCouponModel
ACTIVE, COUPONID, ENDDATE, NAME, STARTDATEFields 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 contextCustomerCouponModel(String _couponId) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersCustomerCouponModel(String _couponId, 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 theCustomerCoupon.assignableattribute defined at extensioncustomercouponservices.Generated method - Getter of theCustomerCoupon.customersattribute defined at extensioncustomercouponservices.Generated method - Getter of theCustomerCoupon.descriptionattribute defined at extensioncustomercouponservices.getDescription(Locale loc) Generated method - Getter of theCustomerCoupon.descriptionattribute defined at extensioncustomercouponservices.voidsetAssignable(Boolean value) Generated method - Setter ofCustomerCoupon.assignableattribute defined at extensioncustomercouponservices.voidsetCustomers(Collection<CustomerModel> value) Generated method - Setter ofCustomerCoupon.customersattribute defined at extensioncustomercouponservices.voidsetDescription(String value) Generated method - Setter ofCustomerCoupon.descriptionattribute defined at extensioncustomercouponservices.voidsetDescription(String value, Locale loc) Generated method - Setter ofCustomerCoupon.descriptionattribute defined at extensioncustomercouponservices.Methods inherited from class de.hybris.platform.couponservices.model.AbstractCouponModel
getActive, getCouponId, getEndDate, getName, getName, getStartDate, setActive, setCouponId, setEndDate, setName, setName, setStartDateMethods 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:
-
ASSIGNABLE
Generated constant - Attribute key ofCustomerCoupon.assignableattribute defined at extensioncustomercouponservices.- See Also:
-
DESCRIPTION
Generated constant - Attribute key ofCustomerCoupon.descriptionattribute defined at extensioncustomercouponservices.- See Also:
-
CUSTOMERS
Generated constant - Attribute key ofCustomerCoupon.customersattribute defined at extensioncustomercouponservices.- See Also:
-
-
Constructor Details
-
CustomerCouponModel
public CustomerCouponModel()Generated constructor - Default constructor for generic creation. -
CustomerCouponModel
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
CustomerCouponModel
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:
_couponId- initial attribute declared by typeAbstractCouponat extensioncouponservices
-
CustomerCouponModel
@Deprecated(since="4.1.1", forRemoval=true) public CustomerCouponModel(String _couponId, 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 parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_couponId- initial attribute declared by typeAbstractCouponat extensioncouponservices_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Details
-
getAssignable
Generated method - Getter of theCustomerCoupon.assignableattribute defined at extensioncustomercouponservices.- Returns:
- the assignable
-
getCustomers
Generated method - Getter of theCustomerCoupon.customersattribute defined at extensioncustomercouponservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the customers - Customers
-
getDescription
Generated method - Getter of theCustomerCoupon.descriptionattribute defined at extensioncustomercouponservices.- Returns:
- the description
-
getDescription
Generated method - Getter of theCustomerCoupon.descriptionattribute defined at extensioncustomercouponservices.- Parameters:
loc- the value localization key- Returns:
- the description
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
setAssignable
Generated method - Setter ofCustomerCoupon.assignableattribute defined at extensioncustomercouponservices.- Parameters:
value- the assignable
-
setCustomers
@Accessor(qualifier="customers", type=SETTER) public void setCustomers(Collection<CustomerModel> value) Generated method - Setter ofCustomerCoupon.customersattribute defined at extensioncustomercouponservices.- Parameters:
value- the customers - Customers
-
setDescription
Generated method - Setter ofCustomerCoupon.descriptionattribute defined at extensioncustomercouponservices.- Parameters:
value- the description
-
setDescription
@Accessor(qualifier="description", type=SETTER) public void setDescription(String value, Locale loc) Generated method - Setter ofCustomerCoupon.descriptionattribute defined at extensioncustomercouponservices.- Parameters:
value- the descriptionloc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-