Class BaseQuery
java.lang.Object
com.microsoft.store.partnercenter.models.query.BaseQuery
- All Implemented Interfaces:
IQuery
- Direct Known Subclasses:
CountQuery,SimpleQuery
public abstract class BaseQuery extends Object implements IQuery
The base class which all queries should derive from. This class does not support any query capabilities except for
the token by default. Therefore, implementation classes will pick and choose what to support.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description FieldFiltergetFilter()Gets or sets the query filter.intgetIndex()Gets or sets the result starting index.intgetPageSize()Gets or sets the results page size.SeekOperationgetSeekOperation()Gets or sets the seek operation that needs to be performed.SortgetSort()Gets or sets the query sorting options.ObjectgetToken()Gets the query token.QueryTypegetType()Gets the query type.voidsetFilter(FieldFilter value)The query filter.voidsetIndex(int value)Sets the result starting index.voidsetPageSize(int value)Sets the results page size.voidsetSeekOperation(SeekOperation value)Sets the seek operation that needs to be performed.voidsetSort(Sort value)Sets the query sorting options.voidsetToken(Object value)Sets the query token.
-
Constructor Details
-
Method Details
-
getType
Gets the query type. -
getFilter
Gets or sets the query filter. -
setFilter
Description copied from interface:IQueryThe query filter. -
getSort
Gets or sets the query sorting options. -
setSort
Description copied from interface:IQuerySets the query sorting options. -
getIndex
public int getIndex()Gets or sets the result starting index. -
setIndex
public void setIndex(int value)Description copied from interface:IQuerySets the result starting index. -
getPageSize
public int getPageSize()Gets or sets the results page size.- Specified by:
getPageSizein interfaceIQuery- Returns:
- The result page size.
-
setPageSize
public void setPageSize(int value)Description copied from interface:IQuerySets the results page size.- Specified by:
setPageSizein interfaceIQuery- Parameters:
value- The results page size.
-
getToken
Description copied from interface:IQueryGets the query token. The token may hold context used to represent current state with back end services. -
setToken
Description copied from interface:IQuerySets the query token. -
getSeekOperation
Gets or sets the seek operation that needs to be performed.- Specified by:
getSeekOperationin interfaceIQuery- Returns:
- The seek operation that needs to be performed.
-
setSeekOperation
Description copied from interface:IQuerySets the seek operation that needs to be performed.- Specified by:
setSeekOperationin interfaceIQuery- Parameters:
value- The seek operation that needs to be performed.
-