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:
java.io.Serializable
public class CustomerCouponModel extends AbstractCouponModel
Generated model class for type CustomerCoupon first defined at extension customercouponservices.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
_TYPECODE
Generated model type code constant.static java.lang.String
ASSIGNABLE
Generated constant - Attribute key ofCustomerCoupon.assignable
attribute defined at extensioncustomercouponservices
.static java.lang.String
CUSTOMERS
Generated constant - Attribute key ofCustomerCoupon.customers
attribute defined at extensioncustomercouponservices
.static java.lang.String
DESCRIPTION
Generated constant - Attribute key ofCustomerCoupon.description
attribute defined at extensioncustomercouponservices
.-
Fields inherited from class de.hybris.platform.couponservices.model.AbstractCouponModel
ACTIVE, COUPONID, ENDDATE, NAME, STARTDATE
-
Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED
-
Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
-
-
Constructor Summary
Constructors Constructor Description CustomerCouponModel()
Generated constructor - Default constructor for generic creation.CustomerCouponModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing contextCustomerCouponModel(java.lang.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(java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Boolean
getAssignable()
Generated method - Getter of theCustomerCoupon.assignable
attribute defined at extensioncustomercouponservices
.java.util.Collection<CustomerModel>
getCustomers()
Generated method - Getter of theCustomerCoupon.customers
attribute defined at extensioncustomercouponservices
.java.lang.String
getDescription()
Generated method - Getter of theCustomerCoupon.description
attribute defined at extensioncustomercouponservices
.java.lang.String
getDescription(java.util.Locale loc)
Generated method - Getter of theCustomerCoupon.description
attribute defined at extensioncustomercouponservices
.void
setAssignable(java.lang.Boolean value)
Generated method - Setter ofCustomerCoupon.assignable
attribute defined at extensioncustomercouponservices
.void
setCustomers(java.util.Collection<CustomerModel> value)
Generated method - Setter ofCustomerCoupon.customers
attribute defined at extensioncustomercouponservices
.void
setDescription(java.lang.String value)
Generated method - Setter ofCustomerCoupon.description
attribute defined at extensioncustomercouponservices
.void
setDescription(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofCustomerCoupon.description
attribute defined at extensioncustomercouponservices
.-
Methods inherited from class de.hybris.platform.couponservices.model.AbstractCouponModel
getActive, getCouponId, getEndDate, getName, getName, getStartDate, setActive, setCouponId, setEndDate, setName, setName, setStartDate
-
Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwner
-
Methods 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 Detail
-
_TYPECODE
public static final java.lang.String _TYPECODE
Generated model type code constant.- See Also:
- Constant Field Values
-
ASSIGNABLE
public static final java.lang.String ASSIGNABLE
Generated constant - Attribute key ofCustomerCoupon.assignable
attribute defined at extensioncustomercouponservices
.- See Also:
- Constant Field Values
-
DESCRIPTION
public static final java.lang.String DESCRIPTION
Generated constant - Attribute key ofCustomerCoupon.description
attribute defined at extensioncustomercouponservices
.- See Also:
- Constant Field Values
-
CUSTOMERS
public static final java.lang.String CUSTOMERS
Generated constant - Attribute key ofCustomerCoupon.customers
attribute defined at extensioncustomercouponservices
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CustomerCouponModel
public CustomerCouponModel()
Generated constructor - Default constructor for generic creation.
-
CustomerCouponModel
public CustomerCouponModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx
- the model context to be injected, must not be null
-
CustomerCouponModel
@Deprecated(since="4.1.1", forRemoval=true) public CustomerCouponModel(java.lang.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 parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_couponId
- initial attribute declared by typeAbstractCoupon
at extensioncouponservices
-
CustomerCouponModel
@Deprecated(since="4.1.1", forRemoval=true) public CustomerCouponModel(java.lang.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 typeAbstractCoupon
at extensioncouponservices
_owner
- initial attribute declared by typeItem
at extensioncore
-
-
Method Detail
-
getAssignable
@Accessor(qualifier="assignable", type=GETTER) public java.lang.Boolean getAssignable()
Generated method - Getter of theCustomerCoupon.assignable
attribute defined at extensioncustomercouponservices
.- Returns:
- the assignable
-
getCustomers
@Accessor(qualifier="customers", type=GETTER) public java.util.Collection<CustomerModel> getCustomers()
Generated method - Getter of theCustomerCoupon.customers
attribute defined at extensioncustomercouponservices
. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the customers - Customers
-
getDescription
@Accessor(qualifier="description", type=GETTER) public java.lang.String getDescription()
Generated method - Getter of theCustomerCoupon.description
attribute defined at extensioncustomercouponservices
.- Returns:
- the description
-
getDescription
@Accessor(qualifier="description", type=GETTER) public java.lang.String getDescription(java.util.Locale loc)
Generated method - Getter of theCustomerCoupon.description
attribute defined at extensioncustomercouponservices
.- Parameters:
loc
- the value localization key- Returns:
- the description
- Throws:
java.lang.IllegalArgumentException
- if localization key cannot be mapped to data language
-
setAssignable
@Accessor(qualifier="assignable", type=SETTER) public void setAssignable(java.lang.Boolean value)
Generated method - Setter ofCustomerCoupon.assignable
attribute defined at extensioncustomercouponservices
.- Parameters:
value
- the assignable
-
setCustomers
@Accessor(qualifier="customers", type=SETTER) public void setCustomers(java.util.Collection<CustomerModel> value)
Generated method - Setter ofCustomerCoupon.customers
attribute defined at extensioncustomercouponservices
.- Parameters:
value
- the customers - Customers
-
setDescription
@Accessor(qualifier="description", type=SETTER) public void setDescription(java.lang.String value)
Generated method - Setter ofCustomerCoupon.description
attribute defined at extensioncustomercouponservices
.- Parameters:
value
- the description
-
setDescription
@Accessor(qualifier="description", type=SETTER) public void setDescription(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofCustomerCoupon.description
attribute defined at extensioncustomercouponservices
.- Parameters:
value
- the descriptionloc
- the value localization key- Throws:
java.lang.IllegalArgumentException
- if localization key cannot be mapped to data language
-
-