Class DimProduct


  • public class DimProduct
    extends java.lang.Object
    Represents a product available for purchase. In our snowflake schema a product is a 'dimension' and will be cached in CacheMode.REPLICATED cache.
    • Constructor Summary

      Constructors 
      Constructor Description
      DimProduct​(int id, java.lang.String name, float price, int qty)
      Constructs a product instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getId()
      Gets product ID.
      java.lang.String getName()
      Gets product name.
      float getPrice()
      Gets product list price.
      int getQuantity()
      Gets available product quantity.
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DimProduct

        public DimProduct​(int id,
                          java.lang.String name,
                          float price,
                          int qty)
        Constructs a product instance.
        Parameters:
        id - Product ID.
        name - Product name.
        price - Product list price.
        qty - Available product quantity.
    • Method Detail

      • getId

        public int getId()
        Gets product ID.
        Returns:
        Product ID.
      • getName

        public java.lang.String getName()
        Gets product name.
        Returns:
        Product name.
      • getPrice

        public float getPrice()
        Gets product list price.
        Returns:
        Product list price.
      • getQuantity

        public int getQuantity()
        Gets available product quantity.
        Returns:
        Available product quantity.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object