Package com.emc.plants.persistence

Examples of com.emc.plants.persistence.Inventory


   * @param item The StoreItem to add.
   * @return True, if item added.
   */
  public boolean addItem(StoreItem item)
  {
    return addItem(new Inventory(item));
  }
View Full Code Here


   * @param name The inventory item's new name.
   */
  public void setItemName(String inventoryID, String name)
  {
    // TODO: lowp: convert all this stupid fine grained update to coarse grained
    Inventory inv = getInvUpdate(inventoryID);
    if (inv != null)
    {
      inv.setName(name);
    }
  }
View Full Code Here

   * @param inventoryID The inventory item's ID.
   * @param heading The inventory item's new heading.
   */
  public void setItemHeading(String inventoryID, String heading)
  {
    Inventory inv = getInvUpdate(inventoryID);
    if (inv != null)
    {
      inv.setHeading(heading);
    }
  }
View Full Code Here

   * @param inventoryID The inventory item's ID.
   * @param desc The inventory item's new description.
   */
  public void setItemDescription(String inventoryID, String desc)
  {
    Inventory inv = getInvUpdate(inventoryID);
    if (inv != null)
    {
      inv.setDescription(desc);
    }
  }
View Full Code Here

   * @param inventoryID The inventory item's ID.
   * @param pkginfo The inventory item's new package information.
   */
  public void setItemPkginfo(String inventoryID, String pkginfo)
  {
    Inventory inv = getInvUpdate(inventoryID);
    if (inv != null)
    {
      inv.setPkginfo(pkginfo);
    }
  }
View Full Code Here

   * @param inventoryID The inventory item's ID.
   * @param category The inventory item's new category.
   */
  public void setItemCategory(String inventoryID, int category)
  {
    Inventory inv = getInvUpdate(inventoryID);
    if (inv != null)
    {
      inv.setCategory(category);
    }
  }
View Full Code Here

   * @param inventoryID The inventory item's ID.
   * @param imageName The inventory item's new image file name.
   */
  public void setItemImageFileName(String inventoryID, String imageName)
  {
    Inventory inv = getInvUpdate(inventoryID);
    if (inv != null)
    {
      inv.setImage(imageName);
    }
  }
View Full Code Here

   * @return Buffer containing the image.
   */
  public byte[] getItemImageBytes(String inventoryID)
  {
    byte[] retval = null;
    Inventory inv = getInv(inventoryID);
    if (inv != null)
    {
      retval = inv.getImgbytes();
    }
   
    return retval;
  }
View Full Code Here

   * @param imgbytes Buffer containing the image.
   */
  @Transactional
  public void setItemImageBytes(String inventoryID, byte[] imgbytes)
  {
    Inventory inv = getInvUpdate(inventoryID);
    if (inv != null)
    {
      inv.setImgbytes(imgbytes);
    }
  }
View Full Code Here

   * @param price The inventory item's new price.
   */
  @Transactional
  public void setItemPrice(String inventoryID, float price)
  {
    Inventory inv = getInvUpdate(inventoryID);
    if (inv != null)
    {
      inv.setPrice(price);
    }
  }
View Full Code Here

TOP

Related Classes of com.emc.plants.persistence.Inventory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.