public interface ModelSearchSession extends ModelQuerySession
This session provides methods for searching among Model
objects. The search query is constructed using the ModelQuery.
getModelsByQuery() is the basic search method and
returns a list of Models. A more advanced search may be
performed with getModelsBySearch(). It accepts a
ModelSearch in addition to the query for the purpose of specifying
additional options affecting the entire search, such as ordering.
getModelsBySearch() returns a ModelSearchResults
that can be used to access the resulting ModelList or be
used to perform a search within the result set through ModelSearch.
This session defines views that offer differing behaviors for searching.
Models may have a query record indicated by their respective record
types. The queryrecord is accessed via the ModelQuery.
| Modifier and Type | Method and Description |
|---|---|
ModelQuery |
getModelQueryFromInspector(ItemQueryInspector modelQueryInspector)
Gets a model query from an inspector.
|
ModelSearchResults |
getModelsBySearch(ModelQuery modelQuery,
ModelSearch modelSearch)
Gets the search results matching the given search query using the
given search.
|
ModelSearch |
getModelSearch()
Gets a model search.
|
ModelSearchOrder |
getModelSearchOrder()
Gets a model search order.
|
canSearchModels, getModelQuery, getModelsByQuery, getWarehouse, getWarehouseId, useFederatedWarehouseView, useIsolatedWarehouseViewgetAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseModelSearch getModelSearch()
mandatory - This method must be implemented. ModelSearchOrder getModelSearchOrder()
ModelSearchOrder is
supplied to a ModelSearch to specify the ordering of
results.mandatory - This method must be implemented. ModelSearchResults getModelsBySearch(ModelQuery modelQuery, ModelSearch modelSearch) throws OperationFailedException, PermissionDeniedException
modelQuery - the model querymodelSearch - the model searchNullArgumentException - modelQuery or
modelSearch is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnsupportedException - modelQuery or
modelSearch is not of this servicemandatory - This method must be implemented. ModelQuery getModelQueryFromInspector(ItemQueryInspector modelQueryInspector)
ModelSearchResults. modelQueryInspector - a model query inspectorNullArgumentException - modelQueryInspector
is null UnsupportedException - modelQueryInspector
is not of this servicemandatory - This method must be implemented.