01 /**
02 *Copyright (c) 2006 by BEA Systems, Inc. All Rights Reserved.
03 */
04 package examples.ejb.ejb30.ejbref;
05
06 import examples.ejb.ejb30.domain.*;
07 import examples.ejb.ejb30.exceptions.BadCommentsException;
08
09 /**
10 * Business interface for ejb reference example Session Bean.
11 */
12 public interface Process {
13
14 /**
15 * select a book randomly.
16 * @return randomly selected book.
17 */
18 Book getRandomBook();
19
20 /**
21 * create and persist a review.
22 * @param bookId the unique identifier of ebook.
23 * @param reviewerName th name of the reviewer.
24 * @param rating the rating of the review.
25 * @param comments comments of the review.
26 */
27 void addReview(int bookId, String reviewerName, int rating, String comments);
28
29 }
|