Class VoucherInvalidationModel

java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
de.hybris.platform.voucher.model.VoucherInvalidationModel
All Implemented Interfaces:
Serializable

public class VoucherInvalidationModel extends ItemModel
Generated model class for type VoucherInvalidation first defined at extension voucher.
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

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Generated model type code constant.
    static final String
    Generated relation code constant for relation VoucherInvalidationsRelation defining source attribute voucher in extension voucher.
    static final String
    Generated constant - Attribute key of VoucherInvalidation.code attribute defined at extension voucher.
    static final String
    Generated constant - Attribute key of VoucherInvalidation.order attribute defined at extension voucher.
    static final String
    Generated constant - Attribute key of VoucherInvalidation.status attribute defined at extension voucher.
    static final String
    Generated constant - Attribute key of VoucherInvalidation.user attribute defined at extension voucher.
    static final String
    Generated constant - Attribute key of VoucherInvalidation.voucher attribute defined at extension voucher.

    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
    Generated constructor - Default constructor for generic creation.
    VoucherInvalidationModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx)
    Generated constructor - Default constructor for creation with existing context
    VoucherInvalidationModel(String _code, OrderModel _order, ItemModel _owner, UserModel _user, VoucherModel _voucher)
    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
    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 Type
    Method
    Description
    Generated method - Getter of the VoucherInvalidation.code attribute defined at extension voucher.
    Generated method - Getter of the VoucherInvalidation.order attribute defined at extension voucher.
    Generated method - Getter of the VoucherInvalidation.status attribute defined at extension voucher.
    Generated method - Getter of the VoucherInvalidation.user attribute defined at extension voucher.
    Generated method - Getter of the VoucherInvalidation.voucher attribute defined at extension voucher.
    void
    setCode(String value)
    Generated method - Initial setter of VoucherInvalidation.code attribute defined at extension voucher.
    void
    Generated method - Initial setter of VoucherInvalidation.order attribute defined at extension voucher.
    void
    Generated method - Setter of VoucherInvalidation.status attribute defined at extension voucher.
    void
    Generated method - Initial setter of VoucherInvalidation.user attribute defined at extension voucher.
    void
    Generated method - Initial setter of VoucherInvalidation.voucher attribute defined at extension voucher.

    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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • _TYPECODE

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

      public static final String _VOUCHERINVALIDATIONSRELATION
      Generated relation code constant for relation VoucherInvalidationsRelation defining source attribute voucher in extension voucher.
      See Also:
    • CODE

      public static final String CODE
      Generated constant - Attribute key of VoucherInvalidation.code attribute defined at extension voucher.
      See Also:
    • USER

      public static final String USER
      Generated constant - Attribute key of VoucherInvalidation.user attribute defined at extension voucher.
      See Also:
    • ORDER

      public static final String ORDER
      Generated constant - Attribute key of VoucherInvalidation.order attribute defined at extension voucher.
      See Also:
    • STATUS

      public static final String STATUS
      Generated constant - Attribute key of VoucherInvalidation.status attribute defined at extension voucher.
      See Also:
    • VOUCHER

      public static final String VOUCHER
      Generated constant - Attribute key of VoucherInvalidation.voucher attribute defined at extension voucher.
      See Also:
  • Constructor Details

    • VoucherInvalidationModel

      public VoucherInvalidationModel()
      Generated constructor - Default constructor for generic creation.
    • VoucherInvalidationModel

      public VoucherInvalidationModel(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
    • VoucherInvalidationModel

      @Deprecated(since="4.1.1", forRemoval=true) public VoucherInvalidationModel(String _code, OrderModel _order, UserModel _user, VoucherModel _voucher)
      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:
      _code - initial attribute declared by type VoucherInvalidation at extension voucher
      _order - initial attribute declared by type VoucherInvalidation at extension voucher
      _user - initial attribute declared by type VoucherInvalidation at extension voucher
      _voucher - initial attribute declared by type VoucherInvalidation at extension voucher
    • VoucherInvalidationModel

      @Deprecated(since="4.1.1", forRemoval=true) public VoucherInvalidationModel(String _code, OrderModel _order, ItemModel _owner, UserModel _user, VoucherModel _voucher)
      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:
      _code - initial attribute declared by type VoucherInvalidation at extension voucher
      _order - initial attribute declared by type VoucherInvalidation at extension voucher
      _owner - initial attribute declared by type Item at extension core
      _user - initial attribute declared by type VoucherInvalidation at extension voucher
      _voucher - initial attribute declared by type VoucherInvalidation at extension voucher
  • Method Details

    • getCode

      @Accessor(qualifier="code", type=GETTER) public String getCode()
      Generated method - Getter of the VoucherInvalidation.code attribute defined at extension voucher.
      Returns:
      the code - the code used redeeming the voucher.
    • getOrder

      @Accessor(qualifier="order", type=GETTER) public OrderModel getOrder()
      Generated method - Getter of the VoucherInvalidation.order attribute defined at extension voucher.
      Returns:
      the order - the order for which the voucher code was applied.
    • getStatus

      @Accessor(qualifier="status", type=GETTER) public String getStatus()
      Generated method - Getter of the VoucherInvalidation.status attribute defined at extension voucher.
      Returns:
      the status - the status of the invalidation.
    • getUser

      @Accessor(qualifier="user", type=GETTER) public UserModel getUser()
      Generated method - Getter of the VoucherInvalidation.user attribute defined at extension voucher.
      Returns:
      the user - the user who redeemed the voucher.
    • getVoucher

      @Accessor(qualifier="voucher", type=GETTER) public VoucherModel getVoucher()
      Generated method - Getter of the VoucherInvalidation.voucher attribute defined at extension voucher.
      Returns:
      the voucher
    • setCode

      @Accessor(qualifier="code", type=SETTER) public void setCode(String value)
      Generated method - Initial setter of VoucherInvalidation.code attribute defined at extension voucher. Can only be used at creation of model - before first save.
      Parameters:
      value - the code - the code used redeeming the voucher.
    • setOrder

      @Accessor(qualifier="order", type=SETTER) public void setOrder(OrderModel value)
      Generated method - Initial setter of VoucherInvalidation.order attribute defined at extension voucher. Can only be used at creation of model - before first save.
      Parameters:
      value - the order - the order for which the voucher code was applied.
    • setStatus

      @Accessor(qualifier="status", type=SETTER) public void setStatus(String value)
      Generated method - Setter of VoucherInvalidation.status attribute defined at extension voucher.
      Parameters:
      value - the status - the status of the invalidation.
    • setUser

      @Accessor(qualifier="user", type=SETTER) public void setUser(UserModel value)
      Generated method - Initial setter of VoucherInvalidation.user attribute defined at extension voucher. Can only be used at creation of model - before first save.
      Parameters:
      value - the user - the user who redeemed the voucher.
    • setVoucher

      @Accessor(qualifier="voucher", type=SETTER) public void setVoucher(VoucherModel value)
      Generated method - Initial setter of VoucherInvalidation.voucher attribute defined at extension voucher. Can only be used at creation of model - before first save.
      Parameters:
      value - the voucher