edu.rice.rubis.beans
Interface BuyNowLocal

All Superinterfaces:
javax.ejb.EJBLocalObject

public interface BuyNowLocal
extends javax.ejb.EJBLocalObject

This is the Local Interface for the BuyNow Bean

Version:
1.0
Author:
Emmanuel Cecchet and Julie Marguerite

Method Summary
 java.lang.Integer getBuyerId()
          Get the buyer id which is the primary key in the users table.
 java.lang.String getDate()
          Time of the BuyNow in the format 'YYYY-MM-DD hh:mm:ss'
 java.lang.Integer getId()
          Get BuyNow id.
 java.lang.Integer getItemId()
          Get the item id which is the primary key in the items table.
 int getQuantity()
          Get how many of this item the buyer has bought.
 void setBuyerId(java.lang.Integer id)
          Set a new buyer identifier.
 void setDate(java.lang.String newDate)
          Set a new date for this buy
 void setItemId(java.lang.Integer id)
          Set a new item identifier.
 void setQuantity(int Qty)
          Set a new quantity for this buy
 
Methods inherited from interface javax.ejb.EJBLocalObject
getEJBLocalHome, getPrimaryKey, isIdentical, remove
 

Method Detail

getId

public java.lang.Integer getId()
Get BuyNow id.
Returns:
BuyNow id

getBuyerId

public java.lang.Integer getBuyerId()
Get the buyer id which is the primary key in the users table.
Returns:
buyer id

getItemId

public java.lang.Integer getItemId()
Get the item id which is the primary key in the items table.
Returns:
item id

getQuantity

public int getQuantity()
Get how many of this item the buyer has bought.
Returns:
quantity of items for this bid.

getDate

public java.lang.String getDate()
Time of the BuyNow in the format 'YYYY-MM-DD hh:mm:ss'
Returns:
bid time

setBuyerId

public void setBuyerId(java.lang.Integer id)
Set a new buyer identifier. This id must match the primary key of the buyers table.
Parameters:
id - buyer id

setItemId

public void setItemId(java.lang.Integer id)
Set a new item identifier. This id must match the primary key of the items table.
Parameters:
id - item id

setQuantity

public void setQuantity(int Qty)
Set a new quantity for this buy
Parameters:
Qty - quantity

setDate

public void setDate(java.lang.String newDate)
Set a new date for this buy
Parameters:
newDate - bid date


Copyright © 2003 - ObjectWeb Consortium - All Rights Reserved.