Class CartEntryModel

java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InMemoryCartEntryModel

public class CartEntryModel extends AbstractOrderEntryModel
Generated model class for type CartEntry first defined at extension core.
See Also:
  • Field Details

    • _TYPECODE

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

      public static final String _ABSTRACTORDER2ABSTRACTORDERENTRY
      Generated relation code constant for relation AbstractOrder2AbstractOrderEntry defining source attribute order in extension core.
      See Also:
    • CARTENTRYVALIDATIONS

      public static final String CARTENTRYVALIDATIONS
      Generated constant - Attribute key of CartEntry.cartEntryValidations attribute defined at extension tuadatacommonsservices.
      See Also:
  • Constructor Details

    • CartEntryModel

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

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

      @Deprecated(since="4.1.1", forRemoval=true) public CartEntryModel(ProductModel _product, Long _quantity, UnitModel _unit)
      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:
      _product - initial attribute declared by type AbstractOrderEntry at extension core
      _quantity - initial attribute declared by type AbstractOrderEntry at extension core
      _unit - initial attribute declared by type AbstractOrderEntry at extension core
    • CartEntryModel

      @Deprecated(since="4.1.1", forRemoval=true) public CartEntryModel(ItemModel _owner, ProductModel _product, Long _quantity, UnitModel _unit)
      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
      _product - initial attribute declared by type AbstractOrderEntry at extension core
      _quantity - initial attribute declared by type AbstractOrderEntry at extension core
      _unit - initial attribute declared by type AbstractOrderEntry at extension core
  • Method Details

    • getCartEntryValidations

      @Accessor(qualifier="cartEntryValidations", type=GETTER) public Set<TmaCartValidationModel> getCartEntryValidations()
      Generated method - Getter of the CartEntry.cartEntryValidations attribute defined at extension tuadatacommonsservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the cartEntryValidations - Cart validation list for the given cart entry
    • getOrder

      @Accessor(qualifier="order", type=GETTER) public CartModel getOrder()
      Generated method - Getter of the AbstractOrderEntry.order attribute defined at extension core and redeclared at extension core.
      Overrides:
      getOrder in class AbstractOrderEntryModel
      Returns:
      the order
    • setCartEntryValidations

      @Accessor(qualifier="cartEntryValidations", type=SETTER) public void setCartEntryValidations(Set<TmaCartValidationModel> value)
      Generated method - Setter of CartEntry.cartEntryValidations attribute defined at extension tuadatacommonsservices.
      Parameters:
      value - the cartEntryValidations - Cart validation list for the given cart entry
    • setOrder

      @Accessor(qualifier="order", type=SETTER) public void setOrder(AbstractOrderModel value)
      Generated method - Initial setter of AbstractOrderEntry.order attribute defined at extension core and redeclared at extension core. Can only be used at creation of model - before first save. Will only accept values of type CartModel.
      Overrides:
      setOrder in class AbstractOrderEntryModel
      Parameters:
      value - the order