|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.mkdoc.query.SimpleQuery
A simple query implementation.
Field Summary |
Fields inherited from interface com.mkdoc.query.Query |
VAR_SUMMARY, VAR_TITLE, VAR_URI |
Fields inherited from interface com.mkdoc.query.QueryContext |
HTML, LIMIT, RSS, TEXT |
Constructor Summary | |
SimpleQuery(java.lang.String query,
java.lang.String resultKey,
QueryContext context)
Construct with a literal query and URI. |
Method Summary | |
java.lang.String |
getOutputType()
Get the requested output format for the result. |
int |
getPageNumber()
Get the requested page number for any results. |
java.lang.String |
getQueryUri()
Get a unique request URI for the query. |
java.lang.String |
getQueryUri(int page)
Get a request URI for a result set by page number. |
protected java.lang.String |
getQueryUri(int page,
int limit)
Get a request URI for a result set by page number. |
java.lang.String |
getResultKey()
Get the unique result key for the query. |
int |
getResultsPerPage()
Get the maximum number of results to display per page. |
java.lang.String |
getSeRQLQuery()
Get an SeRQL query statement. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleQuery(java.lang.String query, java.lang.String resultKey, QueryContext context)
query
- The literal query to wrap.resultKey
- A distinct result key in the form of a query URI,
without output type and paging information.context
- The output context for the query.Method Detail |
public final java.lang.String getSeRQLQuery()
getSeRQLQuery
in interface Query
public final java.lang.String getResultKey()
getResultKey
in interface Query
public final java.lang.String getQueryUri()
getQueryUri
in interface Query
public final java.lang.String getQueryUri(int page)
getQueryUri
in interface Query
page
- The page number for which to render a query URI.
protected final java.lang.String getQueryUri(int page, int limit)
page
- The page number for which to render a query URI.limit
- The number of results per page for the query.
public final int getPageNumber()
getPageNumber
in interface QueryContext
public final int getResultsPerPage()
getResultsPerPage
in interface QueryContext
public final java.lang.String getOutputType()
getOutputType
in interface QueryContext
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |