Klasse ProductHandler

java.lang.Object
de.bytestore.hostinger.handler.ProductHandler

public class ProductHandler extends Object
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    protected static final org.slf4j.Logger
     
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    static int
    countAmount(io.jmix.core.DataManager manager, Products product)
    Calculates the total amount of a given product in the warehouse.
    static void
    decrementStock(io.jmix.core.DataManager manager, Integer amountIO, Products products)
    Decrements the stock of a product by the specified amount.
    getWarehouses(io.jmix.core.DataManager manager, Products products)
    Retrieves a list of WarehouseProducts for a given DataManager and Products.

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

    • log

      protected static final org.slf4j.Logger log
  • Konstruktordetails

    • ProductHandler

      public ProductHandler()
  • Methodendetails

    • countAmount

      public static int countAmount(io.jmix.core.DataManager manager, Products product)
      Calculates the total amount of a given product in the warehouse.
      Parameter:
      manager - The DataManager instance to use for data retrieval.
      product - The product for which the amount will be calculated.
      Gibt zurück:
      The total amount of the given product in the warehouse.
    • getWarehouses

      public static List<WarehouseProducts> getWarehouses(io.jmix.core.DataManager manager, Products products)
      Retrieves a list of WarehouseProducts for a given DataManager and Products.
      Parameter:
      manager - The DataManager instance to use for data retrieval.
      products - The Products for which the WarehouseProducts should be retrieved.
      Gibt zurück:
      A list of WarehouseProducts matching the specified Products.
    • decrementStock

      public static void decrementStock(io.jmix.core.DataManager manager, Integer amountIO, Products products)
      Decrements the stock of a product by the specified amount.
      Parameter:
      manager - The data manager.
      amountIO - The amount to decrement the stock by.
      products -