@Entity public class AuctionItem extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
private List<Bid> |
bids |
private boolean |
closed |
private Date |
endDate |
private long |
id |
private double |
minBid |
private String |
name |
private Person |
owner |
private String |
productId |
private static long |
serialVersionUID |
private Date |
startDate |
private long |
version |
private Bid |
winningBid |
Constructor and Description |
---|
AuctionItem() |
AuctionItem(long id) |
Modifier and Type | Method and Description |
---|---|
void |
addBid(Bid bid) |
void |
closeBids() |
List<Bid> |
getBids() |
Date |
getEndDate() |
Bid |
getHighestBid() |
long |
getId() |
double |
getMinBid() |
String |
getName() |
Person |
getOwner() |
String |
getProductId() |
Date |
getStartDate() |
long |
getVersion() |
Bid |
getWinningBid() |
boolean |
isClosed() |
void |
setBids(List<Bid> bids) |
void |
setClosed(boolean closed) |
void |
setEndDate(Date endDate) |
private void |
setId(long id) |
void |
setMinBid(double minBid) |
void |
setName(String name) |
void |
setOwner(Person owner) |
void |
setProductId(String productId) |
void |
setStartDate(Date startDate) |
void |
setVersion(long version) |
void |
setWinningBid(Bid winningBid) |
String |
toString() |
private static final long serialVersionUID
private long id
private long version
private String name
private String productId
private Date startDate
private Date endDate
private double minBid
private Person owner
private boolean closed
private Bid winningBid
public long getId()
private void setId(long id)
public long getVersion()
public void setVersion(long version)
public String getName()
public void setName(String name)
public String getProductId()
public void setProductId(String productId)
public double getMinBid()
public void setMinBid(double minBid)
public Date getEndDate()
public void setEndDate(Date endDate)
public Date getStartDate()
public void setStartDate(Date startDate)
public Person getOwner()
public void setOwner(Person owner)
public void closeBids()
public void setClosed(boolean closed)
public boolean isClosed()
public void addBid(Bid bid) throws IllegalArgumentException
IllegalArgumentException
public Bid getHighestBid()
public Bid getWinningBid()
public void setWinningBid(Bid winningBid)
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.