com.sun.j2ee.blueprints.inventory.ejb
Class InventoryDAO

java.lang.Object
  |
  +--com.sun.j2ee.blueprints.inventory.ejb.InventoryDAO

public class InventoryDAO
extends java.lang.Object

This class encapsulates all the JDBC calls made by the InventoryEJB. The actual logic of inserting, fetching, updating, or deleting the data in relational database tables to mirror the state of InventoryEJB is implemented here.


Constructor Summary
InventoryDAO()
           
 
Method Summary
 java.lang.String findByPrimaryKey()
           
 java.lang.String getItemId()
           
 int getQuantity()
           
 void load()
           
 void remove()
           
 void setItemId(java.lang.String itemId)
           
 void setQuantity(int qty)
           
 void store()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InventoryDAO

public InventoryDAO()
             throws InventoryDAOException
Method Detail

getItemId

public java.lang.String getItemId()

getQuantity

public int getQuantity()

setItemId

public void setItemId(java.lang.String itemId)

setQuantity

public void setQuantity(int qty)

load

public void load()
          throws InventoryDAOException

store

public void store()
           throws InventoryDAOException

remove

public void remove()
            throws InventoryDAOException

findByPrimaryKey

public java.lang.String findByPrimaryKey()
                                  throws InventoryDAOException


Copyright © 2000 Sun Microsystems Inc. All Rights Reserved.