|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the Local Interface of the Item Bean.
Method Summary | |
void |
addOneBid()
Add one bid for this item |
float |
getBuyNow()
Get item Buy Now price set by the seller. |
java.lang.Integer |
getCategoryId()
Give the category id of the item |
java.lang.String |
getCategoryName()
Get the category name by finding the Bean corresponding to the category Id. |
java.lang.String |
getDescription()
Get item description . |
java.lang.String |
getEndDate()
End date of the auction in the format 'YYYY-MM-DD hh:mm:ss' |
java.lang.Integer |
getId()
Get item id. |
float |
getInitialPrice()
Get item initial price set by the seller. |
float |
getMaxBid()
Get item maximum bid (if any) for this item. |
java.lang.String |
getName()
Get item name. |
int |
getNbOfBids()
Get number of bids for this item. |
int |
getQuantity()
Get how many of this item are to be sold. |
float |
getReservePrice()
Get item reserve price set by the seller. |
java.lang.Integer |
getSellerId()
Give the user id of the seller |
java.lang.String |
getSellerNickname()
Get the seller's nickname by finding the Bean corresponding to the user. |
java.lang.String |
getStartDate()
Start date of the auction in the format 'YYYY-MM-DD hh:mm:ss' |
java.lang.String |
printItem()
Display item information as an HTML table row |
java.lang.String |
printItemDescriptionToBuyNow(int userId)
Display item information for the Buy Now servlet |
java.lang.String |
printItemUserHasBidOn(float bidMaxBid)
Display item information for the AboutMe servlet |
java.lang.String |
printSell()
Display item information as an HTML table row |
java.lang.String |
printUserBoughtItem(int qty)
Display item information for the AboutMe servlet |
java.lang.String |
printUserWonItem()
Display item information for the AboutMe servlet |
void |
setBuyNow(float newBuyNow)
Set a new Buy Now price for the item |
void |
setCategoryId(java.lang.Integer id)
Set a new category identifier. |
void |
setDescription(java.lang.String newDescription)
Set a new item description |
void |
setEndDate(java.lang.String newDate)
Set a new ending date for the auction |
void |
setInitialPrice(float newInitialPrice)
Set a new initial price for the item |
void |
setMaxBid(float newMaxBid)
Set item maximum bid |
void |
setName(java.lang.String newName)
Set a new item name |
void |
setNbOfBids(int newNbOfBids)
Set the number of bids for this item |
void |
setQuantity(int qty)
Set a new item quantity |
void |
setReservePrice(float newReservePrice)
Set a new reserve price for the item |
void |
setSellerId(java.lang.Integer id)
Set a new seller identifier. |
void |
setStartDate(java.lang.String newDate)
Set a new beginning date for the auction |
Methods inherited from interface javax.ejb.EJBLocalObject |
getEJBLocalHome, getPrimaryKey, isIdentical, remove |
Method Detail |
public java.lang.Integer getId()
public java.lang.String getName()
public java.lang.String getDescription()
public float getInitialPrice()
public int getQuantity()
public float getReservePrice()
public float getBuyNow()
public float getMaxBid()
SELECT MAX(bid) FROM bids WHERE item_id=?
public int getNbOfBids()
SELECT COUNT(*) FROM bids WHERE item_id=?
public java.lang.String getStartDate()
public java.lang.String getEndDate()
public java.lang.Integer getSellerId()
public java.lang.Integer getCategoryId()
public java.lang.String getSellerNickname()
public java.lang.String getCategoryName()
public void setName(java.lang.String newName)
newName
- item namepublic void setDescription(java.lang.String newDescription)
newDescription
- item descriptionpublic void setInitialPrice(float newInitialPrice)
newInitialPrice
- item initial pricepublic void setQuantity(int qty)
qty
- item quantitypublic void setReservePrice(float newReservePrice)
newReservePrice
- item reserve pricepublic void setBuyNow(float newBuyNow)
newBuyNow
- item Buy Now pricepublic void setMaxBid(float newMaxBid)
newMaxBid
- new maximum bidpublic void setNbOfBids(int newNbOfBids)
newNbOfBids
- new number of bidspublic void addOneBid()
public void setStartDate(java.lang.String newDate)
newDate
- auction new beginning datepublic void setEndDate(java.lang.String newDate)
newDate
- auction new ending datepublic void setSellerId(java.lang.Integer id)
id
- seller idpublic void setCategoryId(java.lang.Integer id)
id
- category idpublic java.lang.String printItem()
String
containing HTML codepublic java.lang.String printUserBoughtItem(int qty)
String
containing HTML codepublic java.lang.String printItemUserHasBidOn(float bidMaxBid)
String
containing HTML code (Warning last link must be completed by servlet)public java.lang.String printSell()
String
containing HTML codepublic java.lang.String printUserWonItem()
String
containing HTML codepublic java.lang.String printItemDescriptionToBuyNow(int userId)
String
containing HTML code
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |