org.compass.spring.web.mvc
Class CompassSearchCommand

java.lang.Object
  extended by org.compass.spring.web.mvc.CompassSearchCommand

public class CompassSearchCommand
extends Object

The Spring's MVC 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 command is used by the CompassSearchController.

Author:
kimchy

Constructor Summary
CompassSearchCommand()
           
 
Method Summary
 Integer getPage()
          Returns the page paramter if using the CompassSearchController pagination feature.
 String getQuery()
          Returns the query that will be executed by Compass in the search operation.
 void setPage(Integer page)
          Sets the page paramter if using the CompassSearchController pagination feature.
 void setQuery(String query)
          Sets the query that will be executed by Compass in the search operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompassSearchCommand

public CompassSearchCommand()
Method Detail

getQuery

public String getQuery()
Returns the query that will be executed by Compass in the search operation.

Returns:
The query for the search operation

setQuery

public void setQuery(String query)
Sets the query that will be executed by Compass in the search operation.

Parameters:
query -

getPage

public Integer getPage()
Returns the page paramter if using the CompassSearchController pagination feature.

Returns:
The current page number

setPage

public void setPage(Integer page)
Sets the page paramter if using the CompassSearchController pagination feature.

Parameters:
page -


Copyright (c) 2004-2006 The Compass Project.