edu.rice.rubis.beans
Interface BidLocal

All Superinterfaces:
javax.ejb.EJBLocalObject

public interface BidLocal
extends javax.ejb.EJBLocalObject

This is the Local Interface for the Bid Bean

Version:
1.0
Author:
Emmanuel Cecchet and Julie Marguerite

Method Summary
 float getBid()
          Get the bid of the user.
 java.lang.String getBidderNickName()
          Give the nick name of the bidder.
 java.lang.String getDate()
          Time of the Bid in the format 'YYYY-MM-DD hh:mm:ss'
 java.lang.Integer getId()
          Get bid's id.
 java.lang.Integer getItemId()
          Get the item id which is the primary key in the items table.
 float getMaxBid()
          Get the maximum bid wanted by the user.
 int getQuantity()
          Get how many of this item the user wants.
 java.lang.Integer getUserId()
          Get the user id which is the primary key in the users table.
 java.lang.String printBidHistory()
          Display bid history information as an HTML table row
 void setBid(float newBid)
          Set a new bid on the item for the user
 void setDate(java.lang.String newDate)
          Set a new date for this bid
 void setItemId(java.lang.Integer id)
          Set a new item identifier.
 void setMaxBid(float newBid)
          Set a new maximum bid on the item for the user
 void setQuantity(int Qty)
          Set a new quantity for this bid
 void setUserId(java.lang.Integer id)
          Set a new user identifier.
 
Methods inherited from interface javax.ejb.EJBLocalObject
getEJBLocalHome, getPrimaryKey, isIdentical, remove
 

Method Detail

getId

public java.lang.Integer getId()
Get bid's id.
Returns:
bid id

getUserId

public java.lang.Integer getUserId()
Get the user id which is the primary key in the users table.
Returns:
user 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 user wants.
Returns:
quantity of items for this bid.

getBid

public float getBid()
Get the bid of the user.
Returns:
user's bid

getMaxBid

public float getMaxBid()
Get the maximum bid wanted by the user.
Returns:
user's maximum bid

getDate

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

getBidderNickName

public java.lang.String getBidderNickName()
Give the nick name of the bidder.
Returns:
bidder's nick name

setUserId

public void setUserId(java.lang.Integer id)
Set a new user identifier. This id must match the primary key of the users table.
Parameters:
id - user 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 bid
Parameters:
Qty - quantity

setBid

public void setBid(float newBid)
Set a new bid on the item for the user
Parameters:
newBid - bid price

setMaxBid

public void setMaxBid(float newBid)
Set a new maximum bid on the item for the user
Parameters:
newBid - maximum bid price

setDate

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

printBidHistory

public java.lang.String printBidHistory()
Display bid history information as an HTML table row
Returns:
a String containing HTML code
Since:
1.0


Copyright © 2003 - ObjectWeb Consortium - All Rights Reserved.