Class AbstractCouponModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.couponservices.model.AbstractCouponModel
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
CustomerCouponModel
,MultiCodeCouponModel
,SingleCodeCouponModel
public class AbstractCouponModel extends ItemModel
Generated model class for type AbstractCoupon first defined at extension couponservices.- 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
ACTIVE
Generated constant - Attribute key ofAbstractCoupon.active
attribute defined at extensioncouponservices
.static java.lang.String
COUPONID
Generated constant - Attribute key ofAbstractCoupon.couponId
attribute defined at extensioncouponservices
.static java.lang.String
ENDDATE
Generated constant - Attribute key ofAbstractCoupon.endDate
attribute defined at extensioncouponservices
.static java.lang.String
NAME
Generated constant - Attribute key ofAbstractCoupon.name
attribute defined at extensioncouponservices
.static java.lang.String
STARTDATE
Generated constant - Attribute key ofAbstractCoupon.startDate
attribute defined at extensioncouponservices
.-
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 AbstractCouponModel()
Generated constructor - Default constructor for generic creation.AbstractCouponModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing contextAbstractCouponModel(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 parametersAbstractCouponModel(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
getActive()
Generated method - Getter of theAbstractCoupon.active
attribute defined at extensioncouponservices
.java.lang.String
getCouponId()
Generated method - Getter of theAbstractCoupon.couponId
attribute defined at extensioncouponservices
.java.util.Date
getEndDate()
Generated method - Getter of theAbstractCoupon.endDate
attribute defined at extensioncouponservices
.java.lang.String
getName()
Generated method - Getter of theAbstractCoupon.name
attribute defined at extensioncouponservices
.java.lang.String
getName(java.util.Locale loc)
Generated method - Getter of theAbstractCoupon.name
attribute defined at extensioncouponservices
.java.util.Date
getStartDate()
Generated method - Getter of theAbstractCoupon.startDate
attribute defined at extensioncouponservices
.void
setActive(java.lang.Boolean value)
Generated method - Setter ofAbstractCoupon.active
attribute defined at extensioncouponservices
.void
setCouponId(java.lang.String value)
Generated method - Setter ofAbstractCoupon.couponId
attribute defined at extensioncouponservices
.void
setEndDate(java.util.Date value)
Generated method - Setter ofAbstractCoupon.endDate
attribute defined at extensioncouponservices
.void
setName(java.lang.String value)
Generated method - Setter ofAbstractCoupon.name
attribute defined at extensioncouponservices
.void
setName(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofAbstractCoupon.name
attribute defined at extensioncouponservices
.void
setStartDate(java.util.Date value)
Generated method - Setter ofAbstractCoupon.startDate
attribute defined at extensioncouponservices
.-
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
-
COUPONID
public static final java.lang.String COUPONID
Generated constant - Attribute key ofAbstractCoupon.couponId
attribute defined at extensioncouponservices
.- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
Generated constant - Attribute key ofAbstractCoupon.name
attribute defined at extensioncouponservices
.- See Also:
- Constant Field Values
-
STARTDATE
public static final java.lang.String STARTDATE
Generated constant - Attribute key ofAbstractCoupon.startDate
attribute defined at extensioncouponservices
.- See Also:
- Constant Field Values
-
ENDDATE
public static final java.lang.String ENDDATE
Generated constant - Attribute key ofAbstractCoupon.endDate
attribute defined at extensioncouponservices
.- See Also:
- Constant Field Values
-
ACTIVE
public static final java.lang.String ACTIVE
Generated constant - Attribute key ofAbstractCoupon.active
attribute defined at extensioncouponservices
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractCouponModel
public AbstractCouponModel()
Generated constructor - Default constructor for generic creation.
-
AbstractCouponModel
public AbstractCouponModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx
- the model context to be injected, must not be null
-
AbstractCouponModel
@Deprecated(since="4.1.1", forRemoval=true) public AbstractCouponModel(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
-
AbstractCouponModel
@Deprecated(since="4.1.1", forRemoval=true) public AbstractCouponModel(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
-
getActive
@Accessor(qualifier="active", type=GETTER) public java.lang.Boolean getActive()
Generated method - Getter of theAbstractCoupon.active
attribute defined at extensioncouponservices
.- Returns:
- the active
-
getCouponId
@Accessor(qualifier="couponId", type=GETTER) public java.lang.String getCouponId()
Generated method - Getter of theAbstractCoupon.couponId
attribute defined at extensioncouponservices
.- Returns:
- the couponId
-
getEndDate
@Accessor(qualifier="endDate", type=GETTER) public java.util.Date getEndDate()
Generated method - Getter of theAbstractCoupon.endDate
attribute defined at extensioncouponservices
.- Returns:
- the endDate
-
getName
@Accessor(qualifier="name", type=GETTER) public java.lang.String getName()
Generated method - Getter of theAbstractCoupon.name
attribute defined at extensioncouponservices
.- Returns:
- the name
-
getName
@Accessor(qualifier="name", type=GETTER) public java.lang.String getName(java.util.Locale loc)
Generated method - Getter of theAbstractCoupon.name
attribute defined at extensioncouponservices
.- Parameters:
loc
- the value localization key- Returns:
- the name
- Throws:
java.lang.IllegalArgumentException
- if localization key cannot be mapped to data language
-
getStartDate
@Accessor(qualifier="startDate", type=GETTER) public java.util.Date getStartDate()
Generated method - Getter of theAbstractCoupon.startDate
attribute defined at extensioncouponservices
.- Returns:
- the startDate
-
setActive
@Accessor(qualifier="active", type=SETTER) public void setActive(java.lang.Boolean value)
Generated method - Setter ofAbstractCoupon.active
attribute defined at extensioncouponservices
.- Parameters:
value
- the active
-
setCouponId
@Accessor(qualifier="couponId", type=SETTER) public void setCouponId(java.lang.String value)
Generated method - Setter ofAbstractCoupon.couponId
attribute defined at extensioncouponservices
.- Parameters:
value
- the couponId
-
setEndDate
@Accessor(qualifier="endDate", type=SETTER) public void setEndDate(java.util.Date value)
Generated method - Setter ofAbstractCoupon.endDate
attribute defined at extensioncouponservices
.- Parameters:
value
- the endDate
-
setName
@Accessor(qualifier="name", type=SETTER) public void setName(java.lang.String value)
Generated method - Setter ofAbstractCoupon.name
attribute defined at extensioncouponservices
.- Parameters:
value
- the name
-
setName
@Accessor(qualifier="name", type=SETTER) public void setName(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofAbstractCoupon.name
attribute defined at extensioncouponservices
.- Parameters:
value
- the nameloc
- the value localization key- Throws:
java.lang.IllegalArgumentException
- if localization key cannot be mapped to data language
-
-