ItemType
- the search item typepublic interface SearchClient<ItemType> extends SearchExecutionService<ItemType>
Modifier and Type | Method and Description |
---|---|
boolean |
exists(Expression filter)
This convenience method checks whether an element matching the filter actually exists.
|
Iterable<ItemType> |
list()
This method returns an iterable over the complete result of the search using the default paging.
|
Iterable<ItemType> |
list(Expression filter)
This method returns an iterable over the filtered result of the search using the default paging.
|
Iterable<ItemType> |
list(Expression filter,
List<FieldOrderDescriptor> order,
PageDefinition paging)
This method returns an iterable over the filtered result of the search paging as defined.
|
Iterable<ItemType> |
list(Expression filter,
PageDefinition paging)
This method returns an iterable over the filtered result of the search paging as defined.
|
Iterable<ItemType> |
list(List<String> fields,
Expression filter,
List<FieldOrderDescriptor> order,
PageDefinition paging)
This method returns an iterable over the filtered result of the search paging as defined.
|
Iterable<ItemType> |
list(List<String> fields,
Expression filter,
PageDefinition paging)
This method returns an iterable over the filtered result of the search paging as defined.
|
Iterable<ItemType> |
list(Statement statement,
PageDefinition paging)
This method returns an iterable over the filtered result of the search paging as defined.
|
SearchResultPage<ItemType> |
page(int offset,
int pageSize)
This method retrieves the given page of the result of the search.
|
SearchResultPage<ItemType> |
page(PageDefinition pageDefinition)
This method retrieves the given page of the result of the search.
|
ItemType |
uniqueResult(Expression filter)
This convenience method expects the filter to return at most one result.
|
search
SearchResultPage<ItemType> page(PageDefinition pageDefinition) throws EcmException
pageDefinition
- the page to retrieveEcmException
SearchResultPage<ItemType> page(int offset, int pageSize) throws EcmException
offset
- the offset of the pagepageSize
- the size of the pageEcmException
Iterable<ItemType> list(Statement statement, PageDefinition paging) throws EcmException
statement
- a statement filtering the resultpaging
- the paging the returned iterator should useEcmException
Iterable<ItemType> list(List<String> fields, Expression filter, List<FieldOrderDescriptor> order, PageDefinition paging) throws EcmException
fields
- the fields of the result to deliverfilter
- a filter for the resultorder
- the order of the result listpaging
- the paging the returned iterator should useEcmException
Iterable<ItemType> list(List<String> fields, Expression filter, PageDefinition paging) throws EcmException
fields
- the fields of the result to deliverfilter
- a filter for the resultpaging
- the paging the returned iterator should useEcmException
Iterable<ItemType> list(Expression filter, List<FieldOrderDescriptor> order, PageDefinition paging) throws EcmException
filter
- a filter for the resultorder
- the order of the result listpaging
- the paging the returned iterator should useEcmException
Iterable<ItemType> list(Expression filter, PageDefinition paging) throws EcmException
filter
- a filter for the resultpaging
- the paging the returned iterator should useEcmException
Iterable<ItemType> list(Expression filter) throws EcmException
filter
- a filter for the resultEcmException
Iterable<ItemType> list() throws EcmException
EcmException
ItemType uniqueResult(Expression filter) throws EcmException
null
is returned. If one such element exists it is returned. Otherwise an IllegalRequestException
is thrown.filter
- a filter yielding true for at most one elementEcmException
boolean exists(Expression filter) throws EcmException
filter
- the filter to checkEcmException
Copyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.