edu.rice.rubis.beans
Interface BuyNow

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

public interface BuyNow
extends javax.ejb.EJBObject

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

Method Detail

getId

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

getBuyerId

public java.lang.Integer getBuyerId()
                             throws java.rmi.RemoteException
Get the buyer id which is the primary key in the users table.
Returns:
buyer 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 buyer has bought.
Returns:
quantity of items for this bid.
Throws:
java.rmi.RemoteException - if an error occurs

getDate

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

setBuyerId

public void setBuyerId(java.lang.Integer id)
                throws java.rmi.RemoteException
Set a new buyer identifier. This id must match the primary key of the buyers table.
Parameters:
id - buyer 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 buy
Parameters:
Qty - quantity
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 buy
Parameters:
newDate - bid date
Throws:
java.rmi.RemoteException - if an error occurs


Copyright © 2003 - ObjectWeb Consortium - All Rights Reserved.