com.ibm.websphere.samples.plantsbywebsphereejb
Interface Inventory

All Superinterfaces:
javax.ejb.EJBLocalObject

public interface Inventory
extends javax.ejb.EJBLocalObject

Local interface for Inventory entity bean.


Method Summary
 int decreaseInventory(int quantity)
          Decrease the quantity of this inventory item.
 int getCategory()
          Get the inventory category.
 float getCost()
          Get the inventory item cost.
 java.lang.String getDescription()
          Get the inventory item description.
 java.lang.String getHeading()
          Get the inventory item description heading.
 java.lang.String getID()
          Get the inventory ID.
 java.lang.String getImage()
          Get the inventory item image file name.
 byte[] getImgbytes()
          Get the inventory item image binary data.
 int getMaxThreshold()
          Get accessor for persistent attribute: maxThreshold
 int getMinThreshold()
          Get accessor for persistent attribute: minThreshold
 java.lang.String getName()
          Get the inventory item name.
 java.lang.String getNotes()
          Get the notes of inventory in stock.
 java.lang.String getPkginfo()
          Get the inventory item package info.
 float getPrice()
          Get the inventory item price.
 int getQuantity()
          Get the quantity of inventory in stock.
 void increaseInventory(int quantity)
          Increase the quantity of this inventory item.
 boolean isPublic()
          Is this inventory item viewable by the public?
 void setCategory(int category)
          Set the inventory item's category.
 void setCost(float cost)
          Set the inventory item's cost.
 void setDescription(java.lang.String desc)
          Set the inventory item's description.
 void setHeading(java.lang.String heading)
          Set the inventory item's description heading.
 void setImage(java.lang.String image)
          Set the inventory item's image file name.
 void setImgbytes(byte[] imgbytes)
          Set the inventory item's image binary data.
 void setMaxThreshold(int newMaxThreshold)
          Set accessor for persistent attribute: maxThreshold
 void setMinThreshold(int newMinThreshold)
          Set accessor for persistent attribute: minThreshold
 void setName(java.lang.String name)
          Set the inventory item's name.
 void setNotes(java.lang.String note)
          Set the inventory item's notes.
 void setPkginfo(java.lang.String pkginfo)
          Set the inventory item's package info.
 void setPrice(float price)
          Set the inventory item's price.
 void setPrivacy(boolean isPublic)
          Set the inventory item's public availability.
 void setQuantity(int amount)
          Set the inventory item's quantity in stock.
 
Methods inherited from interface javax.ejb.EJBLocalObject
getEJBLocalHome, getPrimaryKey, isIdentical, remove
 

Method Detail

getID

java.lang.String getID()
Get the inventory ID.

Returns:
String The inventory ID.

getName

java.lang.String getName()
Get the inventory item name.

Returns:
The inventory item name.

getHeading

java.lang.String getHeading()
Get the inventory item description heading.

Returns:
The inventory item description heading.

getDescription

java.lang.String getDescription()
Get the inventory item description.

Returns:
The inventory item description.

getPkginfo

java.lang.String getPkginfo()
Get the inventory item package info.

Returns:
The inventory item package info.

getImage

java.lang.String getImage()
Get the inventory item image file name.

Returns:
The inventory item image file name.

getImgbytes

byte[] getImgbytes()
Get the inventory item image binary data.

Returns:
The inventory item image binary data.

getPrice

float getPrice()
Get the inventory item price.

Returns:
The inventory item price.

getCost

float getCost()
Get the inventory item cost.

Returns:
The inventory item cost.

getQuantity

int getQuantity()
Get the quantity of inventory in stock.

Returns:
The quantity of inventory in stock.

getCategory

int getCategory()
Get the inventory category.

Returns:
The inventory category.

getNotes

java.lang.String getNotes()
Get the notes of inventory in stock.

Returns:
The inventory notes.

isPublic

boolean isPublic()
Is this inventory item viewable by the public?

Returns:
True, if the public can view this inventory item.

setName

void setName(java.lang.String name)
Set the inventory item's name.


setHeading

void setHeading(java.lang.String heading)
Set the inventory item's description heading.


setDescription

void setDescription(java.lang.String desc)
Set the inventory item's description.


setPkginfo

void setPkginfo(java.lang.String pkginfo)
Set the inventory item's package info.


setCategory

void setCategory(int category)
Set the inventory item's category.


setImage

void setImage(java.lang.String image)
Set the inventory item's image file name.


setImgbytes

void setImgbytes(byte[] imgbytes)
Set the inventory item's image binary data.


setPrice

void setPrice(float price)
Set the inventory item's price.


setCost

void setCost(float cost)
Set the inventory item's cost.


setQuantity

void setQuantity(int amount)
Set the inventory item's quantity in stock.


setNotes

void setNotes(java.lang.String note)
Set the inventory item's notes.


setPrivacy

void setPrivacy(boolean isPublic)
Set the inventory item's public availability.


increaseInventory

void increaseInventory(int quantity)
Increase the quantity of this inventory item.

Parameters:
quantity - The number to increase the inventory by.

decreaseInventory

int decreaseInventory(int quantity)
Decrease the quantity of this inventory item.

Parameters:
quantity - The number to decrease the inventory by.
Returns:
int The number of inventory items removed.

getMinThreshold

int getMinThreshold()
Get accessor for persistent attribute: minThreshold


setMinThreshold

void setMinThreshold(int newMinThreshold)
Set accessor for persistent attribute: minThreshold


getMaxThreshold

int getMaxThreshold()
Get accessor for persistent attribute: maxThreshold


setMaxThreshold

void setMaxThreshold(int newMaxThreshold)
Set accessor for persistent attribute: maxThreshold