ItemType
- the search item typepublic interface SearchClient<ItemType>
extends com.lexmark.saperion.search.SearchExecutionService<ItemType>
Modifier and Type | Method and Description |
---|---|
boolean |
exists(com.lexmark.saperion.search.expression.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(com.lexmark.saperion.search.expression.Expression filter)
This method returns an iterable over the filtered result of the search using the default paging.
|
Iterable<ItemType> |
list(com.lexmark.saperion.search.expression.Expression filter,
List<com.lexmark.saperion.search.query.FieldOrderDescriptor> order,
com.lexmark.saperion.search.PageDefinition paging)
This method returns an iterable over the filtered result of the search paging as defined.
|
Iterable<ItemType> |
list(com.lexmark.saperion.search.expression.Expression filter,
com.lexmark.saperion.search.PageDefinition paging)
This method returns an iterable over the filtered result of the search paging as defined.
|
Iterable<ItemType> |
list(List<String> fields,
com.lexmark.saperion.search.expression.Expression filter,
List<com.lexmark.saperion.search.query.FieldOrderDescriptor> order,
com.lexmark.saperion.search.PageDefinition paging)
This method returns an iterable over the filtered result of the search paging as defined.
|
Iterable<ItemType> |
list(List<String> fields,
com.lexmark.saperion.search.expression.Expression filter,
com.lexmark.saperion.search.PageDefinition paging)
This method returns an iterable over the filtered result of the search paging as defined.
|
Iterable<ItemType> |
list(com.lexmark.saperion.search.query.Statement statement,
com.lexmark.saperion.search.PageDefinition paging)
This method returns an iterable over the filtered result of the search paging as defined.
|
com.lexmark.saperion.search.SearchResultPage<ItemType> |
page(int offset,
int pageSize)
This method retrieves the given page of the result of the search.
|
com.lexmark.saperion.search.SearchResultPage<ItemType> |
page(com.lexmark.saperion.search.PageDefinition pageDefinition)
This method retrieves the given page of the result of the search.
|
ItemType |
uniqueResult(com.lexmark.saperion.search.expression.Expression filter)
This convenience method expects the filter to return at most one result.
|
com.lexmark.saperion.search.SearchResultPage<ItemType> page(com.lexmark.saperion.search.PageDefinition pageDefinition) throws com.lexmark.saperion.exceptions.EcmException
pageDefinition
- the page to retrievecom.lexmark.saperion.exceptions.EcmException
com.lexmark.saperion.search.SearchResultPage<ItemType> page(int offset, int pageSize) throws com.lexmark.saperion.exceptions.EcmException
offset
- the offset of the pagepageSize
- the size of the pagecom.lexmark.saperion.exceptions.EcmException
Iterable<ItemType> list(com.lexmark.saperion.search.query.Statement statement, com.lexmark.saperion.search.PageDefinition paging) throws com.lexmark.saperion.exceptions.EcmException
statement
- a statement filtering the resultpaging
- the paging the returned iterator should usecom.lexmark.saperion.exceptions.EcmException
Iterable<ItemType> list(List<String> fields, com.lexmark.saperion.search.expression.Expression filter, List<com.lexmark.saperion.search.query.FieldOrderDescriptor> order, com.lexmark.saperion.search.PageDefinition paging) throws com.lexmark.saperion.exceptions.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 usecom.lexmark.saperion.exceptions.EcmException
Iterable<ItemType> list(List<String> fields, com.lexmark.saperion.search.expression.Expression filter, com.lexmark.saperion.search.PageDefinition paging) throws com.lexmark.saperion.exceptions.EcmException
fields
- the fields of the result to deliverfilter
- a filter for the resultpaging
- the paging the returned iterator should usecom.lexmark.saperion.exceptions.EcmException
Iterable<ItemType> list(com.lexmark.saperion.search.expression.Expression filter, List<com.lexmark.saperion.search.query.FieldOrderDescriptor> order, com.lexmark.saperion.search.PageDefinition paging) throws com.lexmark.saperion.exceptions.EcmException
filter
- a filter for the resultorder
- the order of the result listpaging
- the paging the returned iterator should usecom.lexmark.saperion.exceptions.EcmException
Iterable<ItemType> list(com.lexmark.saperion.search.expression.Expression filter, com.lexmark.saperion.search.PageDefinition paging) throws com.lexmark.saperion.exceptions.EcmException
filter
- a filter for the resultpaging
- the paging the returned iterator should usecom.lexmark.saperion.exceptions.EcmException
Iterable<ItemType> list(com.lexmark.saperion.search.expression.Expression filter) throws com.lexmark.saperion.exceptions.EcmException
filter
- a filter for the resultcom.lexmark.saperion.exceptions.EcmException
Iterable<ItemType> list() throws com.lexmark.saperion.exceptions.EcmException
com.lexmark.saperion.exceptions.EcmException
ItemType uniqueResult(com.lexmark.saperion.search.expression.Expression filter) throws com.lexmark.saperion.exceptions.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 elementcom.lexmark.saperion.exceptions.EcmException
boolean exists(com.lexmark.saperion.search.expression.Expression filter) throws com.lexmark.saperion.exceptions.EcmException
filter
- the filter to checkcom.lexmark.saperion.exceptions.EcmException
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.