|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Catalog
Remote interface for Catalog stateless session bean.
| Method Summary | |
|---|---|
boolean |
addItem(StoreItem item)
Add an inventory item. |
boolean |
deleteItem(java.lang.String inventoryID)
Delete an inventory item. |
StoreItem |
getItem(java.lang.String inventoryID)
Get the Inventory item for the given ID. |
byte[] |
getItemImageBytes(java.lang.String inventoryID)
Get the image for the inventory item. |
java.util.Vector |
getItems()
Get all inventory items. |
java.util.Vector |
getItemsByCategory(int category)
Get all inventory items for the given category. |
java.util.Vector |
getItemsLikeName(java.lang.String name)
Get inventory items that contain a given String within their names. |
void |
setItemCategory(java.lang.String inventoryID,
int category)
Set the inventory item's category. |
void |
setItemCost(java.lang.String inventoryID,
float cost)
Set the inventory item's cost. |
void |
setItemDescription(java.lang.String inventoryID,
java.lang.String desc)
Set the inventory item's description. |
void |
setItemHeading(java.lang.String inventoryID,
java.lang.String heading)
Set the inventory item's heading. |
void |
setItemImageBytes(java.lang.String inventoryID,
byte[] imgbytes)
Set the image for the inventory item. |
void |
setItemImageFileName(java.lang.String inventoryID,
java.lang.String imageName)
Set the inventory item's image file name. |
void |
setItemName(java.lang.String inventoryID,
java.lang.String name)
Set the inventory item's name. |
void |
setItemNotes(java.lang.String inventoryID,
java.lang.String note)
Set the inventory item's notes. |
void |
setItemPkginfo(java.lang.String inventoryID,
java.lang.String pkginfo)
Set the inventory item's package information. |
void |
setItemPrice(java.lang.String inventoryID,
float price)
Set the inventory item's price. |
void |
setItemPrivacy(java.lang.String inventoryID,
boolean isPublic)
Set the inventory item's access availability. |
void |
setItemQuantity(java.lang.String inventoryID,
int amount)
Set the inventory item's quantity. |
| Methods inherited from interface javax.ejb.EJBObject |
|---|
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove |
| Method Detail |
|---|
java.util.Vector getItems()
throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.Vector getItemsByCategory(int category)
throws java.rmi.RemoteException
category - - category of items desired.
java.rmi.RemoteException
java.util.Vector getItemsLikeName(java.lang.String name)
throws java.rmi.RemoteException
name - String to search names for.
java.rmi.RemoteException
StoreItem getItem(java.lang.String inventoryID)
throws java.rmi.RemoteException
inventoryID - - ID of the Inventory item desired.
java.rmi.RemoteException
boolean addItem(StoreItem item)
throws java.rmi.RemoteException
item - The StoreItem to add.
java.rmi.RemoteException
boolean deleteItem(java.lang.String inventoryID)
throws java.rmi.RemoteException
inventoryID - The ID of the inventory item to delete.
java.rmi.RemoteException
void setItemName(java.lang.String inventoryID,
java.lang.String name)
throws java.rmi.RemoteException
inventoryID - The inventory item's ID.name - The inventory item's new name.
java.rmi.RemoteException
void setItemHeading(java.lang.String inventoryID,
java.lang.String heading)
throws java.rmi.RemoteException
inventoryID - The inventory item's ID.heading - The inventory item's new heading.
java.rmi.RemoteException
void setItemDescription(java.lang.String inventoryID,
java.lang.String desc)
throws java.rmi.RemoteException
inventoryID - The inventory item's ID.desc - The inventory item's new description.
java.rmi.RemoteException
void setItemPkginfo(java.lang.String inventoryID,
java.lang.String pkginfo)
throws java.rmi.RemoteException
inventoryID - The inventory item's ID.pkginfo - The inventory item's new package information.
java.rmi.RemoteException
void setItemCategory(java.lang.String inventoryID,
int category)
throws java.rmi.RemoteException
inventoryID - The inventory item's ID.category - The inventory item's new category.
java.rmi.RemoteException
void setItemImageFileName(java.lang.String inventoryID,
java.lang.String imageName)
throws java.rmi.RemoteException
inventoryID - The inventory item's ID.imageName - The inventory item's new image file name.
java.rmi.RemoteException
byte[] getItemImageBytes(java.lang.String inventoryID)
throws java.rmi.RemoteException
inventoryID - The id of the inventory item wanted.
java.rmi.RemoteException
void setItemImageBytes(java.lang.String inventoryID,
byte[] imgbytes)
throws java.rmi.RemoteException
inventoryID - The id of the inventory item wanted.imgbytes - Buffer containing the image.
java.rmi.RemoteException
void setItemPrice(java.lang.String inventoryID,
float price)
throws java.rmi.RemoteException
inventoryID - The inventory item's ID.price - The inventory item's new price.
java.rmi.RemoteException
void setItemCost(java.lang.String inventoryID,
float cost)
throws java.rmi.RemoteException
inventoryID - The inventory item's ID.cost - The inventory item's new cost.
java.rmi.RemoteException
void setItemQuantity(java.lang.String inventoryID,
int amount)
throws java.rmi.RemoteException
inventoryID - The inventory item's ID.amount - The inventory item's new quantity.
java.rmi.RemoteException
void setItemNotes(java.lang.String inventoryID,
java.lang.String note)
throws java.rmi.RemoteException
inventoryID - The inventory item's ID.note - The inventory item's new notes.
java.rmi.RemoteException
void setItemPrivacy(java.lang.String inventoryID,
boolean isPublic)
throws java.rmi.RemoteException
inventoryID - The inventory item's ID.isPublic - True, if this item can be viewed by the public.
java.rmi.RemoteException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||