FileDocCategorySizeDatePackage
SBookQuery.javaAPI DocExample2064Tue Oct 29 13:49:56 GMT 2002ora.jwsnut.chapter6.serializerbookservice

SBookQuery

public interface SBookQuery implements Remote
The interface definition for the book web service.

Fields Summary
Constructors Summary
Methods Summary
public abstract java.lang.StringgetAuthor(java.lang.String name)
Get the author for a book with a given name.

param
name the name of the book.
return
the author of the book, or null if no matching book can be found.

public abstract intgetBookCount()
Gets the number of books known to the service

return
the number of books known to the service.

public abstract BookInfo[]getBookInfo()
Gets information for all known books, in the form of an array.

return
an array of BookInfo objects with one entry for each book.

public abstract java.util.HashMapgetBookMap()
Returns all of the books known to the book service in the form of a HashMap where the key to each entry is the book title in upper case and the value is a BookInfo object.

public abstract java.lang.StringgetEditor(java.lang.String name)
Gets the name of the editor for a book.

param
name the name of the book.
return
the editor of the book, or null if no matching book can be found.

public abstract doublegetPrice(java.lang.String name)
Gets the price of a book with a given name. If the given name does not match with a known book, a BookServiceException is thrown.

param
name the name of the book.
return
the price of the book.