|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Specifies methods that need to be implemented by a query object. A query
object represents a saved query of J.W. Pepper products for later
reference. It includes the list of most recently generated results.
Last modified $Date: 1999/10/07 20:39:49 $
Field Summary | |
static java.lang.String |
CRITERIA
The criteria attribute. |
static java.lang.String |
CRT_CLASS
The concrete class attribute. |
static java.lang.String |
LAST_RESULTS
The lastResults attribute. |
static java.lang.String |
NAME
The name attribute. |
static java.lang.String |
USER
The user atribute. |
Method Summary | |
void |
create(Identifier id,
SearchCriteria sc,
java.lang.String nom)
Works like the other version of create() , but the
query is saved to the data store. |
void |
create(SearchCriteria sc)
Creates a new Query object based on the specified
search criteria. |
void |
generateResults(Identifier id)
Generates a new set of results based on this query's search criteria. |
SearchCriteria |
getCriteria()
Provides the criteria on which this search is based. |
java.lang.String |
getName()
Provides the name associated with this query. |
java.lang.String |
getUser()
Provides the user ID of the person who owns this query. |
com.sun.java.util.collections.Iterator |
lastResults()
Provides a list of the most recently generated results. |
Methods inherited from interface com.imaginary.lwp.Entity |
getLastUpdateID,
getLastUpdateTime,
getObjectID,
getReference,
remove |
Field Detail |
public static final java.lang.String CRITERIA
public static final java.lang.String CRT_CLASS
public static final java.lang.String LAST_RESULTS
public static final java.lang.String NAME
public static final java.lang.String USER
Method Detail |
public void create(SearchCriteria sc) throws FindException, java.rmi.RemoteException
Query
object based on the specified
search criteria. This method does not save the query in the database.
If a saved query is desired, then the other create
method should be used. This method will perform an initial query.sc
- the search criteria to use for the querypublic void create(Identifier id, SearchCriteria sc, java.lang.String nom) throws FindException, PersistenceException, java.rmi.RemoteException
create()
, but the
query is saved to the data store.id
- the client identifier to use both for the query and to
save the resultssc
- the search criteria to use for the searchnom
- the name to give the querypublic void generateResults(Identifier id) throws FindException, PersistenceException, java.rmi.RemoteException
lastResults
to iterate through the
newly generated results.id
- the identifier for the clientpublic SearchCriteria getCriteria() throws java.rmi.RemoteException
public java.lang.String getName() throws java.rmi.RemoteException
public java.lang.String getUser() throws java.rmi.RemoteException
public com.sun.java.util.collections.Iterator lastResults() throws java.rmi.RemoteException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |