public class SearchImpl<T extends EntityType<?>,EC extends EntityCollection<T,?,?>> extends Object implements Search<T,EC>
Modifier and Type | Method and Description |
---|---|
EC |
getResult()
Executes a $search search and return the search results as collection.
|
String |
getSearch()
The $search expression for this search.
|
Search<T,EC> |
setSearch(String search)
Sets the $search expression for this search.
|
Search<T,EC> |
setSearch(URISearch search)
Sets the search generating the $search expression for this search.
|
public Search<T,EC> setSearch(String search)
Search
setSearch
in interface Search<T extends EntityType<?>,EC extends EntityCollection<T,?,?>>
search
- the $search expression for this searchpublic Search<T,EC> setSearch(URISearch search)
Search
setSearch
in interface Search<T extends EntityType<?>,EC extends EntityCollection<T,?,?>>
search
- search instance (to be obtained via ODataSearchFactory): note that build() method
will be immediately invoked.public String getSearch()
Search
getSearch
in interface Search<T extends EntityType<?>,EC extends EntityCollection<T,?,?>>
public EC getResult()
Search
getResult
in interface Search<T extends EntityType<?>,EC extends EntityCollection<T,?,?>>
Copyright © 2013–2018 The Apache Software Foundation. All rights reserved.