|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.services.fieldquery.MCRQuery
public class MCRQuery
Represents a query with its condition and optional parameters
| Constructor Summary | |
|---|---|
MCRQuery(MCRCondition cond)
Builds a new MCRQuery object without sort criteria and unlimited results. |
|
MCRQuery(MCRCondition cond,
List<MCRSortBy> sortBy,
int maxResults)
Builds a new MCRQuery object with sort criteria and limited number of results. |
|
| Method Summary | |
|---|---|
Document |
buildXML()
Builds a XML representation of the query |
MCRCondition |
getCondition()
Returns the query condition |
List |
getHosts()
Returns the list of remote hosts to query |
int |
getMaxResults()
Returns the maximum number of results the query should return |
List<MCRSortBy> |
getSortBy()
Returns the list of MCRSortBy criteria for sorting query results |
static MCRQuery |
parseXML(Document doc)
Parses a XML representation of a query. |
void |
setHosts(List<String> hosts)
Sets the remote hosts to query. |
void |
setMaxResults(int maxResults)
Sets the maximum number of results the query should return. |
void |
setSortBy(List<MCRSortBy> sortBy)
Sets the sort criteria for the query results |
void |
setSortBy(MCRSortBy sortBy)
Sets the sort criteria for the query results |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MCRQuery(MCRCondition cond)
cond - the query conditions
public MCRQuery(MCRCondition cond,
List<MCRSortBy> sortBy,
int maxResults)
cond - the query conditionssortBy - a list of MCRSortBy criteria for sorting the resultsmaxResults - the maximum number of results to return| Method Detail |
|---|
public MCRCondition getCondition()
public int getMaxResults()
public void setMaxResults(int maxResults)
maxResults - the maximum number of resultspublic List<MCRSortBy> getSortBy()
public void setSortBy(List<MCRSortBy> sortBy)
sortBy - a list of MCRSortBy objects, may be emptypublic void setSortBy(MCRSortBy sortBy)
sortBy - a MCRSortBy objectpublic List getHosts()
public void setHosts(List<String> hosts)
hosts - a list of host alias Strings, may be emptypublic Document buildXML()
public static MCRQuery parseXML(Document doc)
xml - the XML document
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||