|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.trg.search.flex.FlexSearchWrapper
public class FlexSearchWrapper
This provides a wrapper around a FlexSearch so that is can be passed into DAO methods requiring the ISearch interface.
| Field Summary |
|---|
| Fields inherited from interface com.trg.search.ISearch |
|---|
RESULT_ARRAY, RESULT_AUTO, RESULT_LIST, RESULT_MAP, RESULT_SINGLE |
| Constructor Summary | |
|---|---|
FlexSearchWrapper(FlexSearch flexSearch)
|
|
| Method Summary | |
|---|---|
java.util.List<java.lang.String> |
getFetches()
|
java.util.List<Field> |
getFields()
|
java.util.List<Filter> |
getFilters()
|
int |
getFirstResult()
Zero based index of first result record to return. |
int |
getMaxResults()
The maximum number of records to return. |
int |
getPage()
Zero based index of the page of records to return. |
int |
getResultMode()
Result mode tells the search what form to use for the results. |
java.lang.Class<?> |
getSearchClass()
|
java.util.List<Sort> |
getSorts()
|
boolean |
isDisjunction()
|
boolean |
isDistinct()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FlexSearchWrapper(FlexSearch flexSearch)
| Method Detail |
|---|
public java.util.List<java.lang.String> getFetches()
getFetches in interface ISearchpublic java.util.List<Field> getFields()
getFields in interface ISearchpublic java.util.List<Filter> getFilters()
getFilters in interface ISearchpublic int getFirstResult()
ISearch
<= 0 for unspecified value.
getFirstResult in interface ISearchpublic int getMaxResults()
ISearchpage.
<= 0 for unspecified value.
getMaxResults in interface ISearchpublic int getPage()
ISearchmaxResults. If both page and
maxResults are specified (i.e. > 0), the first result
returned is calculated by page * maxResults.
firstResult has precedence over page. So if
firstResult is specified (i.e. > 0), page is
ignored.
<= 0 for unspecified value.
getPage in interface ISearchpublic int getResultMode()
ISearchRESULT_AUTO, RESULT_ARRAY,
RESULT_LIST
, RESULT_MAP and RESULT_SINGLE
.
getResultMode in interface ISearchISearch.RESULT_AUTO,
ISearch.RESULT_ARRAY,
ISearch.RESULT_LIST,
ISearch.RESULT_MAP,
ISearch.RESULT_SINGLEpublic java.lang.Class<?> getSearchClass()
getSearchClass in interface ISearchpublic java.util.List<Sort> getSorts()
getSorts in interface ISearchpublic boolean isDisjunction()
isDisjunction in interface ISearchpublic boolean isDistinct()
isDistinct in interface ISearch
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||