org.books.data
Class LineItem

java.lang.Object
  extended by org.books.data.LineItem
All Implemented Interfaces:
java.io.Serializable

public class LineItem
extends java.lang.Object
implements java.io.Serializable

The class LineItem contains the data of a line item.

Version:
1.0
Author:
Stephan Fischli
See Also:
Serialized Form

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

LineItem

public LineItem()
Method Detail

toString

public java.lang.String toString()
Return all attributes as String

Overrides:
toString in class java.lang.Object
Returns:
Object as String

getItemId

public long getItemId()
Gets the itemId.

Returns:
the itemId

setItemId

public void setItemId(long itemId)
Sets the itemId.

Parameters:
itemId - The itemId to set

getBook

public Book getBook()
get a book

Returns:
Book

setBook

public void setBook(Book book)
set a book

Parameters:
book -

getQuantity

public java.lang.Integer getQuantity()
get the quantity

Returns:
Integer

setQuantity

public void setQuantity(java.lang.Integer quantity)
set the quantity

Parameters:
quantity -


Copyright © 2007 - bouquet dot ch, 3032 Hinterkappelen. All Rights Reserved.