Class PromotionOrderRestrictionModel

  • All Implemented Interfaces:
    java.io.Serializable

    public class PromotionOrderRestrictionModel
    extends AbstractPromotionRestrictionModel
    Generated model class for type PromotionOrderRestriction first defined at extension commerceservices.
    See Also:
    Serialized Form
    • Field Detail

      • _TYPECODE

        public static final java.lang.String _TYPECODE
        Generated model type code constant.
        See Also:
        Constant Field Values
      • _PROMOTIONRESTRICTION2ORDERREL

        public static final java.lang.String _PROMOTIONRESTRICTION2ORDERREL
        Generated relation code constant for relation PromotionRestriction2OrderRel defining source attribute orders in extension commerceservices.
        See Also:
        Constant Field Values
      • ORDERS

        public static final java.lang.String ORDERS
        Generated constant - Attribute key of PromotionOrderRestriction.orders attribute defined at extension commerceservices.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PromotionOrderRestrictionModel

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

        public PromotionOrderRestrictionModel​(ItemModelContext ctx)
        Generated constructor - Default constructor for creation with existing context
        Parameters:
        ctx - the model context to be injected, must not be null
      • PromotionOrderRestrictionModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public PromotionOrderRestrictionModel​(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:
        _owner - initial attribute declared by type Item at extension core
    • Method Detail

      • getOrders

        @Accessor(qualifier="orders",
                  type=GETTER)
        public java.util.Collection<AbstractOrderModel> getOrders()
        Generated method - Getter of the PromotionOrderRestriction.orders attribute defined at extension commerceservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
        Returns:
        the orders - Orders
      • setOrders

        @Accessor(qualifier="orders",
                  type=SETTER)
        public void setOrders​(java.util.Collection<AbstractOrderModel> value)
        Generated method - Setter of PromotionOrderRestriction.orders attribute defined at extension commerceservices.
        Parameters:
        value - the orders - Orders