Package ejava.examples.asyncmarket.bo
Class AuctionItem
- java.lang.Object
-
- ejava.examples.asyncmarket.bo.AuctionItem
-
- All Implemented Interfaces:
Serializable
@Entity public class AuctionItem extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description AuctionItem()
AuctionItem(long id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
id
private long id
-
version
private long version
-
name
private String name
-
productId
private String productId
-
startDate
private Date startDate
-
endDate
private Date endDate
-
minBid
private double minBid
-
owner
private Person owner
-
closed
private boolean closed
-
winningBid
private Bid winningBid
-
-
Method Detail
-
getId
public long getId()
-
setId
private void setId(long id)
-
getVersion
public long getVersion()
-
setVersion
public void setVersion(long version)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getProductId
public String getProductId()
-
setProductId
public void setProductId(String productId)
-
getMinBid
public double getMinBid()
-
setMinBid
public void setMinBid(double minBid)
-
getEndDate
public Date getEndDate()
-
setEndDate
public void setEndDate(Date endDate)
-
getStartDate
public Date getStartDate()
-
setStartDate
public void setStartDate(Date startDate)
-
getOwner
public Person getOwner()
-
setOwner
public void setOwner(Person owner)
-
closeBids
public void closeBids()
-
setClosed
public void setClosed(boolean closed)
-
isClosed
public boolean isClosed()
-
addBid
public void addBid(Bid bid) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
getHighestBid
public Bid getHighestBid()
-
getWinningBid
public Bid getWinningBid()
-
setWinningBid
public void setWinningBid(Bid winningBid)
-
-