edu.rice.rubis.beans
Interface Bid

All Superinterfaces:
javax.ejb.EJBObject, java.rmi.Remote

public interface Bid
extends javax.ejb.EJBObject

This is the Remote 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.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

getId

public java.lang.Integer getId()
                        throws java.rmi.RemoteException
Get bid's id.
Returns:
bid id
Throws:
java.rmi.RemoteException - if an error occurs

getUserId

public java.lang.Integer getUserId()
                            throws java.rmi.RemoteException
Get the user id which is the primary key in the users table.
Returns:
user id
Throws:
java.rmi.RemoteException - if an error occurs

getItemId

public java.lang.Integer getItemId()
                            throws java.rmi.RemoteException
Get the item id which is the primary key in the items table.
Returns:
item id
Throws:
java.rmi.RemoteException - if an error occurs

getQuantity

public int getQuantity()
                throws java.rmi.RemoteException
Get how many of this item the user wants.
Returns:
quantity of items for this bid.
Throws:
java.rmi.RemoteException - if an error occurs

getBid

public float getBid()
             throws java.rmi.RemoteException
Get the bid of the user.
Returns:
user's bid
Throws:
java.rmi.RemoteException - if an error occurs

getMaxBid

public float getMaxBid()
                throws java.rmi.RemoteException
Get the maximum bid wanted by the user.
Returns:
user's maximum bid
Throws:
java.rmi.RemoteException - if an error occurs

getDate

public java.lang.String getDate()
                         throws java.rmi.RemoteException
Time of the Bid in the format 'YYYY-MM-DD hh:mm:ss'
Returns:
bid time
Throws:
java.rmi.RemoteException - if an error occurs

getBidderNickName

public java.lang.String getBidderNickName()
                                   throws java.rmi.RemoteException
Give the nick name of the bidder.
Returns:
bidder's nick name
Throws:
java.rmi.RemoteException - if an error occurs

setUserId

public void setUserId(java.lang.Integer id)
               throws java.rmi.RemoteException
Set a new user identifier. This id must match the primary key of the users table.
Parameters:
id - user id
Throws:
java.rmi.RemoteException - if an error occurs

setItemId

public void setItemId(java.lang.Integer id)
               throws java.rmi.RemoteException
Set a new item identifier. This id must match the primary key of the items table.
Parameters:
id - item id
Throws:
java.rmi.RemoteException - if an error occurs

setQuantity

public void setQuantity(int Qty)
                 throws java.rmi.RemoteException
Set a new quantity for this bid
Parameters:
Qty - quantity
Throws:
java.rmi.RemoteException - if an error occurs

setBid

public void setBid(float newBid)
            throws java.rmi.RemoteException
Set a new bid on the item for the user
Parameters:
newBid - bid price
Throws:
java.rmi.RemoteException - if an error occurs

setMaxBid

public void setMaxBid(float newBid)
               throws java.rmi.RemoteException
Set a new maximum bid on the item for the user
Parameters:
newBid - maximum bid price
Throws:
java.rmi.RemoteException - if an error occurs

setDate

public void setDate(java.lang.String newDate)
             throws java.rmi.RemoteException
Set a new date for this bid
Parameters:
newDate - bid date
Throws:
java.rmi.RemoteException - if an error occurs

printBidHistory

public java.lang.String printBidHistory()
                                 throws java.rmi.RemoteException
Display bid history information as an HTML table row
Returns:
a String containing HTML code
Throws:
java.rmi.RemoteException - if an error occurs
Since:
1.0


Copyright © 2003 - ObjectWeb Consortium - All Rights Reserved.