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:
Serializable
- Direct Known Subclasses:
MultiCodeCouponModel,SingleCodeCouponModel
Generated model class for type AbstractCoupon first defined at extension couponservices.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.servicelayer.model.AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofAbstractCoupon.activeattribute defined at extensioncouponservices.static final StringGenerated constant - Attribute key ofAbstractCoupon.couponIdattribute defined at extensioncouponservices.static final StringGenerated constant - Attribute key ofAbstractCoupon.endDateattribute defined at extensioncouponservices.static final StringGenerated constant - Attribute key ofAbstractCoupon.nameattribute defined at extensioncouponservices.static final StringGenerated constant - Attribute key ofAbstractCoupon.startDateattribute defined at extensioncouponservices.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.AbstractCouponModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing contextAbstractCouponModel(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(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 theAbstractCoupon.activeattribute defined at extensioncouponservices.Generated method - Getter of theAbstractCoupon.couponIdattribute defined at extensioncouponservices.Generated method - Getter of theAbstractCoupon.endDateattribute defined at extensioncouponservices.getName()Generated method - Getter of theAbstractCoupon.nameattribute defined at extensioncouponservices.Generated method - Getter of theAbstractCoupon.nameattribute defined at extensioncouponservices.Generated method - Getter of theAbstractCoupon.startDateattribute defined at extensioncouponservices.voidGenerated method - Setter ofAbstractCoupon.activeattribute defined at extensioncouponservices.voidsetCouponId(String value) Generated method - Setter ofAbstractCoupon.couponIdattribute defined at extensioncouponservices.voidsetEndDate(Date value) Generated method - Setter ofAbstractCoupon.endDateattribute defined at extensioncouponservices.voidGenerated method - Setter ofAbstractCoupon.nameattribute defined at extensioncouponservices.voidGenerated method - Setter ofAbstractCoupon.nameattribute defined at extensioncouponservices.voidsetStartDate(Date value) Generated method - Setter ofAbstractCoupon.startDateattribute defined at extensioncouponservices.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:
-
COUPONID
Generated constant - Attribute key ofAbstractCoupon.couponIdattribute defined at extensioncouponservices.- See Also:
-
NAME
Generated constant - Attribute key ofAbstractCoupon.nameattribute defined at extensioncouponservices.- See Also:
-
STARTDATE
Generated constant - Attribute key ofAbstractCoupon.startDateattribute defined at extensioncouponservices.- See Also:
-
ENDDATE
Generated constant - Attribute key ofAbstractCoupon.endDateattribute defined at extensioncouponservices.- See Also:
-
ACTIVE
Generated constant - Attribute key ofAbstractCoupon.activeattribute defined at extensioncouponservices.- See Also:
-
-
Constructor Details
-
AbstractCouponModel
public AbstractCouponModel()Generated constructor - Default constructor for generic creation. -
AbstractCouponModel
public AbstractCouponModel(de.hybris.platform.servicelayer.model.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, 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
-
AbstractCouponModel
@Deprecated(since="4.1.1", forRemoval=true) public AbstractCouponModel(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
-
getActive
Generated method - Getter of theAbstractCoupon.activeattribute defined at extensioncouponservices.- Returns:
- the active
-
getCouponId
Generated method - Getter of theAbstractCoupon.couponIdattribute defined at extensioncouponservices.- Returns:
- the couponId
-
getEndDate
Generated method - Getter of theAbstractCoupon.endDateattribute defined at extensioncouponservices.- Returns:
- the endDate
-
getName
Generated method - Getter of theAbstractCoupon.nameattribute defined at extensioncouponservices.- Returns:
- the name
-
getName
Generated method - Getter of theAbstractCoupon.nameattribute defined at extensioncouponservices.- Parameters:
loc- the value localization key- Returns:
- the name
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
getStartDate
Generated method - Getter of theAbstractCoupon.startDateattribute defined at extensioncouponservices.- Returns:
- the startDate
-
setActive
Generated method - Setter ofAbstractCoupon.activeattribute defined at extensioncouponservices.- Parameters:
value- the active
-
setCouponId
Generated method - Setter ofAbstractCoupon.couponIdattribute defined at extensioncouponservices.- Parameters:
value- the couponId
-
setEndDate
Generated method - Setter ofAbstractCoupon.endDateattribute defined at extensioncouponservices.- Parameters:
value- the endDate
-
setName
Generated method - Setter ofAbstractCoupon.nameattribute defined at extensioncouponservices.- Parameters:
value- the name
-
setName
Generated method - Setter ofAbstractCoupon.nameattribute defined at extensioncouponservices.- Parameters:
value- the nameloc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
setStartDate
Generated method - Setter ofAbstractCoupon.startDateattribute defined at extensioncouponservices.- Parameters:
value- the startDate
-