|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.books.data.LineItem
public class LineItem
The class LineItem contains the data of a line item.
Constructor Summary | |
---|---|
LineItem()
|
Method Summary | |
---|---|
Book |
getBook()
get a book |
long |
getItemId()
Gets the itemId. |
java.lang.Integer |
getQuantity()
get the quantity |
void |
setBook(Book book)
set a book |
void |
setItemId(long itemId)
Sets the itemId. |
void |
setQuantity(java.lang.Integer quantity)
set the quantity |
java.lang.String |
toString()
Return all attributes as String |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LineItem()
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public long getItemId()
public void setItemId(long itemId)
itemId
- The itemId to setpublic Book getBook()
public void setBook(Book book)
book
- public java.lang.Integer getQuantity()
public void setQuantity(java.lang.Integer quantity)
quantity
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |