|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Remote interface for the BookQuery stateless session bean.
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 |
public int getResultCount() throws java.rmi.RemoteException
public Book[] get(int offset, int length) throws java.rmi.RemoteException
public int masterQuery(java.lang.String title, java.lang.String author, java.lang.Object publisherPK) throws java.rmi.RemoteException
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.public int ownerQuery(java.lang.Integer ownerPK) throws java.rmi.RemoteException
public int holderQuery(java.lang.Integer holderPK) throws java.rmi.RemoteException
public int borrowerQuery(java.lang.Integer borrowerPK) throws java.rmi.RemoteException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |