public class RelationQuery extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RelationQuery.ORDERING
Specify whether an ordering should be ascending or descending
|
class |
RelationQuery.OrderSpec
The Class OrderSpec.
|
| Constructor and Description |
|---|
RelationQuery(int start,
int count) |
RelationQuery(ItemModel model,
String attribute,
int start,
int count)
Creates
RelationQuery object with model, attribute, start and count parameters set. |
| Modifier and Type | Method and Description |
|---|---|
void |
addOrder(String attribute,
RelationQuery.ORDERING ascending)
Adds the order.
|
String |
getAttribute()
Gets the attribute we are searching for.
|
int |
getCount()
For paginating, returns the number of results to fetch.
|
ItemModel |
getModel()
Gets the model for which we would like to search.
|
int |
getOrderCount()
Returns count of orderSpec attributes.
|
RelationQuery.OrderSpec |
getOrderSpec(int number)
Returns search order.
|
int |
getStart()
For paginating, returns the start index.
|
void |
setAttribute(String attribute)
Sets the attribute we would like to search for.
|
void |
setModel(ItemModel model)
Sets the model for which we would like to search.
|
void |
setStart(int start)
For paginating, specify the start index that we want.
|
public RelationQuery(int start,
int count)
throws RelationQueryException
start - The paginating data -1 means ignorecount - The paginating data -1 means ignoreRelationQueryExceptionpublic RelationQuery(ItemModel model, String attribute, int start, int count)
RelationQuery object with model, attribute, start and count parameters set.model - The model to search forattribute - The attribute to search forstart - The paginating data -1 means ignorecount - The paginating data -1 means ignorepublic int getStart()
public void setStart(int start)
start - the new startpublic int getCount()
public ItemModel getModel()
public void setModel(ItemModel model)
model - the new modelpublic String getAttribute()
public void setAttribute(String attribute)
public void addOrder(String attribute, RelationQuery.ORDERING ascending) throws RelationQueryException
attribute - the attributeascending - the ascendingRelationQueryExceptionpublic RelationQuery.OrderSpec getOrderSpec(int number)
public int getOrderCount()
Copyright © 2017 SAP SE. All Rights Reserved.