public static class CommerceQuery.Builder extends Object
CommerceService.search(CommerceQuery)
.Constructor and Description |
---|
CommerceQuery.Builder() |
Modifier and Type | Method and Description |
---|---|
CommerceQuery |
build()
Build a query from this builder
|
CommerceQuery.Builder |
setPage(int page)
Set the current page within the search results page set.
|
CommerceQuery.Builder |
setPageSize(int pageSize)
Set the number of hits to display per page of the search results.
|
CommerceQuery.Builder |
setQueryText(String queryText)
Set the actual query string.
|
void |
setSortId(String sortId)
Set the sort type's identifier.
|
public CommerceQuery.Builder setQueryText(String queryText)
public CommerceQuery.Builder setPage(int page)
public CommerceQuery.Builder setPageSize(int pageSize)
public void setSortId(String sortId)
CommerceResult.getSorts()
.public CommerceQuery build() throws IllegalStateException
IllegalStateException
- if no queryText has been set"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"