com.primix.vlib.ejb
Interface IBookQuery

All Superinterfaces:
EJBObject, java.rmi.Remote

public interface IBookQuery
extends EJBObject

Remote interface for the BookQuery stateless session bean.

Version:
$Id: IBookQuery.java,v 1.8 2001/06/22 20:40:09 hship Exp $
Author:
Howard Ship

Method Summary
 int borrowerQuery(java.lang.Integer borrowerPK)
          Queries the list of books held by the borrower but not owned by the borrower..
 Book[] get(int offset, int length)
          Returns a selected subset of the results.
 int getResultCount()
          Returns the total number of results rows in the query.
 int holderQuery(java.lang.Integer holderPK)
          Queries on books held by a given person, sorted by title.
 int masterQuery(java.lang.String title, java.lang.String author, java.lang.Object publisherPK)
          Performs a query of books with the matching title and (optionally) publisher.
 int ownerQuery(java.lang.Integer ownerPK)
          Queries on books owned by a given person, sorted by title.
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

getResultCount

public int getResultCount()
                   throws java.rmi.RemoteException
Returns the total number of results rows in the query.

get

public Book[] get(int offset,
                  int length)
           throws java.rmi.RemoteException
Returns a selected subset of the results.

masterQuery

public int masterQuery(java.lang.String title,
                       java.lang.String author,
                       java.lang.Object publisherPK)
                throws java.rmi.RemoteException
Performs a query of books with the matching title and (optionally) publisher. The results will be sorted by book title.
Parameters:
title - The title to be search for. Any book with that contains this value in its title attribute will be returned. Use null to not limit the search by title.
The - author to search for, or null to not limit the search by author. Any book whose author contains this value as a substring will be included.
publisherPK - The primary key of a publisher to limit results to, or null to select for any publisher.

ownerQuery

public int ownerQuery(java.lang.Integer ownerPK)
               throws java.rmi.RemoteException
Queries on books owned by a given person, sorted by title.

holderQuery

public int holderQuery(java.lang.Integer holderPK)
                throws java.rmi.RemoteException
Queries on books held by a given person, sorted by title.

borrowerQuery

public int borrowerQuery(java.lang.Integer borrowerPK)
                  throws java.rmi.RemoteException
Queries the list of books held by the borrower but not owned by the borrower..