KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > tapestry > vlib > ejb > IBookQuery


1 // Copyright 2004 The Apache Software Foundation
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14

15 package org.apache.tapestry.vlib.ejb;
16
17 import java.rmi.RemoteException JavaDoc;
18
19 import javax.ejb.EJBObject JavaDoc;
20
21 /**
22  * Remote interface for the BookQuery stateless session bean.
23  *
24  * @version $Id: IBookQuery.java,v 1.5 2004/02/19 17:37:39 hlship Exp $
25  * @author Howard Lewis Ship
26  *
27  **/

28
29 public interface IBookQuery extends EJBObject JavaDoc
30 {
31     /**
32      * Returns the total number of results rows in the query.
33      *
34      **/

35
36     public int getResultCount() throws RemoteException JavaDoc;
37
38     /**
39      * Returns a selected subset of the results.
40      *
41      **/

42
43     public Book[] get(int offset, int length) throws RemoteException JavaDoc;
44
45     /**
46      * Performs a query of books with the matching title and (optionally) publisher.
47      *
48      * @param parameters defines subset of books to return.
49      * @param sortOrdering order of items in result set.
50      *
51      **/

52
53     public int masterQuery(MasterQueryParameters parameters, SortOrdering sortOrdering) throws RemoteException JavaDoc;
54
55     /**
56      * Queries on books owned by a given person.
57      *
58      **/

59
60     public int ownerQuery(Integer JavaDoc ownerPK, SortOrdering sortOrdering) throws RemoteException JavaDoc;
61
62     /**
63      * Queries on books held by a given person.
64      *
65      **/

66
67     public int holderQuery(Integer JavaDoc holderPK, SortOrdering sortOrdering) throws RemoteException JavaDoc;
68
69     /**
70      * Queries the list of books held by the borrower but not owned by the borrower.
71      *
72      **/

73
74     public int borrowerQuery(Integer JavaDoc borrowerPK, SortOrdering sortOrdering) throws RemoteException JavaDoc;
75 }
Popular Tags