Class AbstractCouponModel

All Implemented Interfaces:
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:
  • Field Details

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • COUPONID

      public static final String COUPONID
      Generated constant - Attribute key of AbstractCoupon.couponId attribute defined at extension couponservices.
      See Also:
    • NAME

      public static final String NAME
      Generated constant - Attribute key of AbstractCoupon.name attribute defined at extension couponservices.
      See Also:
    • STARTDATE

      public static final String STARTDATE
      Generated constant - Attribute key of AbstractCoupon.startDate attribute defined at extension couponservices.
      See Also:
    • ENDDATE

      public static final String ENDDATE
      Generated constant - Attribute key of AbstractCoupon.endDate attribute defined at extension couponservices.
      See Also:
    • ACTIVE

      public static final String ACTIVE
      Generated constant - Attribute key of AbstractCoupon.active attribute defined at extension couponservices.
      See Also:
  • Constructor Details

    • 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(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 parameters
      Generated constructor - Constructor with all mandatory attributes.
      Parameters:
      _couponId - initial attribute declared by type AbstractCoupon at extension couponservices
    • 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 parameters
      Generated constructor - for all mandatory and initial attributes.
      Parameters:
      _couponId - initial attribute declared by type AbstractCoupon at extension couponservices
      _owner - initial attribute declared by type Item at extension core
  • Method Details

    • getActive

      @Accessor(qualifier="active", type=GETTER) public Boolean getActive()
      Generated method - Getter of the AbstractCoupon.active attribute defined at extension couponservices.
      Returns:
      the active
    • getCouponId

      @Accessor(qualifier="couponId", type=GETTER) public String getCouponId()
      Generated method - Getter of the AbstractCoupon.couponId attribute defined at extension couponservices.
      Returns:
      the couponId
    • getEndDate

      @Accessor(qualifier="endDate", type=GETTER) public Date getEndDate()
      Generated method - Getter of the AbstractCoupon.endDate attribute defined at extension couponservices.
      Returns:
      the endDate
    • getName

      @Accessor(qualifier="name", type=GETTER) public String getName()
      Generated method - Getter of the AbstractCoupon.name attribute defined at extension couponservices.
      Returns:
      the name
    • getName

      @Accessor(qualifier="name", type=GETTER) public String getName(Locale loc)
      Generated method - Getter of the AbstractCoupon.name attribute defined at extension couponservices.
      Parameters:
      loc - the value localization key
      Returns:
      the name
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • getStartDate

      @Accessor(qualifier="startDate", type=GETTER) public Date getStartDate()
      Generated method - Getter of the AbstractCoupon.startDate attribute defined at extension couponservices.
      Returns:
      the startDate
    • setActive

      @Accessor(qualifier="active", type=SETTER) public void setActive(Boolean value)
      Generated method - Setter of AbstractCoupon.active attribute defined at extension couponservices.
      Parameters:
      value - the active
    • setCouponId

      @Accessor(qualifier="couponId", type=SETTER) public void setCouponId(String value)
      Generated method - Setter of AbstractCoupon.couponId attribute defined at extension couponservices.
      Parameters:
      value - the couponId
    • setEndDate

      @Accessor(qualifier="endDate", type=SETTER) public void setEndDate(Date value)
      Generated method - Setter of AbstractCoupon.endDate attribute defined at extension couponservices.
      Parameters:
      value - the endDate
    • setName

      @Accessor(qualifier="name", type=SETTER) public void setName(String value)
      Generated method - Setter of AbstractCoupon.name attribute defined at extension couponservices.
      Parameters:
      value - the name
    • setName

      @Accessor(qualifier="name", type=SETTER) public void setName(String value, Locale loc)
      Generated method - Setter of AbstractCoupon.name attribute defined at extension couponservices.
      Parameters:
      value - the name
      loc - the value localization key
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • setStartDate

      @Accessor(qualifier="startDate", type=SETTER) public void setStartDate(Date value)
      Generated method - Setter of AbstractCoupon.startDate attribute defined at extension couponservices.
      Parameters:
      value - the startDate