org.books.model
Class Bookstore

java.lang.Object
  extended by org.books.model.Bookstore

public class Bookstore
extends java.lang.Object

The class Bookstore implements a bookstore.

Version:
1.0
Author:
Stephan Fischli

Method Summary
 void cancelOrder(java.lang.Integer number)
          Deprecated.  
static Bookstore getInstance()
          Deprecated.  
 java.util.List<Order> getOrders()
          Deprecated.  
 Order orderBooks(Address address, CreditCard creditCard, java.util.List<LineItem> items)
          Deprecated.  
 java.util.List<Book> searchBooks(java.lang.String title, java.lang.String author, java.lang.String publisher)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Bookstore getInstance()
Deprecated. 

Returns the bookstore instance.

Returns:
Bookstore

searchBooks

public java.util.List<Book> searchBooks(java.lang.String title,
                                        java.lang.String author,
                                        java.lang.String publisher)
Deprecated. 

Searches for books.

Parameters:
title - String
author - String
publisher - String
Returns:
List

orderBooks

public Order orderBooks(Address address,
                        CreditCard creditCard,
                        java.util.List<LineItem> items)
                 throws CreditCardExpiredException
Deprecated. 

Orders books.

Parameters:
address - AddressBean
creditCard - CreditCardBean
items - List
Returns:
Order
Throws:
CreditCardExpiredException

getOrders

public java.util.List<Order> getOrders()
Deprecated. 

Returns the orders.

Returns:
List

cancelOrder

public void cancelOrder(java.lang.Integer number)
                 throws OrderNotFoundException,
                        OrderNotCancelableException
Deprecated. 

Cancels an order.

Parameters:
number - Integer
Throws:
OrderNotFoundException
OrderNotCancelableException


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