/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package mumbay.data;
import java.util.Date;
/**
*
* @author HP
*/
public class Item {
private int itemId_;
private String itemName_,itemDescription_,itemType_;
String userName_;
float price_;
Date bidDate_;
boolean isSailable_;
public Item() {
isSailable_=true;
}
public Item(int itemId_) {
this.itemId_ = itemId_;
}
public Item(int itemId,String itemName_,String username) {
itemId_=itemId;
this.itemName_ = itemName_;
userName_ = username;
isSailable_ = true;
}
public Date getBidDate() {
return bidDate_;
}
public void setBidDate(Date bidDate) {
this.bidDate_ = bidDate;
}
public String getItemDescription() {
return itemDescription_;
}
public void setItemDescription(String itemDescription) {
this.itemDescription_ = itemDescription;
}
public int getItemId() {
return itemId_;
}
public void setItemId(int itemId) {
this.itemId_ = itemId;
}
public String getItemName() {
return itemName_;
}
public void setItemName(String itemName_) {
this.itemName_ = itemName_;
}
public String getItemType() {
return itemType_;
}
public void setItemType(String itemType_) {
this.itemType_ = itemType_;
}
public float getPrice() {
return price_;
}
public void setPrice(float price_) {
this.price_ = price_;
}
public String getUserName() {
return userName_;
}
public void setUserName(String userName_) {
this.userName_ = userName_;
}
@Override
public String toString() {
return "Item{" + "itemId_=" + itemId_ + "itemName_=" + itemName_ + "itemDescription_=" + itemDescription_ + "itemType_=" + itemType_ + "userName_=" + userName_ + "price_=" + price_ + "bidDate_=" + bidDate_ + "isSailable_=" + isSailable_ + '}';
}
}
No comments:
Post a Comment