IQuery Interface
public interface IQuery
Represents a query on an entity. All different queries should implement this contract.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
abstract
Field |
getFilter()
Gets the query filter. |
| abstract int |
getIndex()
Gets the result starting index. |
| abstract int |
getPageSize()
Gets the results page size. |
|
abstract
Seek |
getSeekOperation()
Gets or sets the seek operation that needs to be performed. |
| abstract Sort |
getSort()
Gets the query sorting options. |
| abstract java.lang.Object |
getToken()
Gets the query token. |
|
abstract
Query |
getType()
Gets the query type. |
| abstract void |
setFilter(FieldFilter value)
The query filter. |
| abstract void |
setIndex(int value)
Sets the result starting index. |
| abstract void |
setPageSize(int value)
Sets the results page size. |
| abstract void |
setSeekOperation(SeekOperation value)
Sets the seek operation that needs to be performed. |
| abstract void |
setSort(Sort value)
Sets the query sorting options. |
| abstract void |
setToken(Object value)
Sets the query token. |
Method Details
getFilter
public abstract FieldFilter getFilter()
Gets the query filter.
Returns:
getIndex
public abstract int getIndex()
Gets the result starting index.
Returns:
getPageSize
public abstract int getPageSize()
Gets the results page size.
Returns:
getSeekOperation
public abstract SeekOperation getSeekOperation()
Gets or sets the seek operation that needs to be performed.
Returns:
getSort
public abstract Sort getSort()
Gets the query sorting options.
Returns:
getToken
public abstract Object getToken()
Gets the query token. The token may hold context used to represent current state with back end services.
Returns:
getType
public abstract QueryType getType()
Gets the query type.
Returns:
setFilter
public abstract void setFilter(FieldFilter value)
The query filter.
Parameters:
setIndex
public abstract void setIndex(int value)
Sets the result starting index.
Parameters:
setPageSize
public abstract void setPageSize(int value)
Sets the results page size.
Parameters:
setSeekOperation
public abstract void setSeekOperation(SeekOperation value)
Sets the seek operation that needs to be performed.
Parameters:
setSort
public abstract void setSort(Sort value)
Sets the query sorting options.
Parameters:
setToken
public abstract void setToken(Object value)
Sets the query token.
Parameters: