|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.core.support.search.CompassSearchCommand
public class CompassSearchCommand
The search command object which holds the query that needs to be executed in the search operation. It might hold the page parameter as well if using the pagination feature.
The seach helper can accept either a query string or a CompassQuery.
If both are set, the CompassQuery will be used.
CompassSearchHelper,
CompassSearchResults| Constructor Summary | |
|---|---|
CompassSearchCommand()
Constructs a new search commad. |
|
CompassSearchCommand(CompassQuery query)
Constructs a new search command with the give search query. |
|
CompassSearchCommand(CompassQuery query,
Integer page)
Constructs a new search command with the given query and the page number (in case CompassSearchHelper is
used with pagination. |
|
CompassSearchCommand(String query)
Constructs a new search command with the give search query. |
|
CompassSearchCommand(String query,
Integer page)
Constructs a new search command with the given query and the page number (in case CompassSearchHelper is
used with pagination. |
|
| Method Summary | |
|---|---|
CompassQuery |
getCompassQuery()
Returns a compass query. |
Integer |
getPage()
Returns the page paramter if using the CompassSearchHelper
pagination feature. |
String |
getQuery()
Returns the query that will be executed by Compass |
void |
setPage(Integer page)
Sets the page paramter if using the CompassSearchHelper
pagination feature. |
void |
setQuery(String query)
Sets the query that will be executed by Compass |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompassSearchCommand()
setQuery(String).
public CompassSearchCommand(String query)
query - The search query
public CompassSearchCommand(String query,
Integer page)
CompassSearchHelper is
used with pagination.
query - The search querypage - The page numberpublic CompassSearchCommand(CompassQuery query)
query - The search query
public CompassSearchCommand(CompassQuery query,
Integer page)
CompassSearchHelper is
used with pagination.
query - The search querypage - The page number| Method Detail |
|---|
public String getQuery()
Compass in the search operation.
- Returns:
- The query for the search operation
public void setQuery(String query)
Compass in the search operation.
- Parameters:
query - The search query
public CompassQuery getCompassQuery()
public Integer getPage()
CompassSearchHelper
pagination feature.
public void setPage(Integer page)
CompassSearchHelper
pagination feature.
page - The page number
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||