ParentEntityT
- The generic navigation property entity source type.EntityT
- The generic navigation property entity target type.public final class StructuredPropertyCollectionQuery<ParentEntityT extends VdmEntity<?>,EntityT extends VdmObject<?>> extends Object
ProtocolQueryReadCollection
the API doesn't differentiate between selections via
referencing navigational properties and selections via sub-queries.Modifier and Type | Field and Description |
---|---|
protected String |
fieldName
The structured property field name.
|
Modifier and Type | Method and Description |
---|---|
StructuredPropertyCollectionQuery<ParentEntityT,EntityT> |
filter(FilterableBoolean<EntityT>... filters)
Filter on properties of EntityT.
|
default String |
getExpression()
Create the String representation of the expression.
|
String |
getFieldName()
The structured property field name.
|
protected Iterable<FilterableBoolean<EntityT>> |
getFilters()
Get the filters modifier of the OData request.
|
protected String |
getOrderBy()
Get the orderBy modifier of the OData request.
|
String |
getQueryString()
Compute the string representation of this query.
|
protected Number |
getSkip()
Get the skip modifier of the OData request.
|
protected Number |
getTop()
Get the top modifier of the OData request.
|
StructuredPropertyCollectionQuery<ParentEntityT,EntityT> |
orderBy(SimpleProperty<EntityT> field,
Order order)
Sort the set of returned entities by one (or more) non-complex fields.
|
StructuredPropertyCollectionQuery<ParentEntityT,EntityT> |
search(SearchExpression expression)
Request modifier to return the set of entities corresponding to the specified boolean expression.
|
StructuredPropertyCollectionQuery<ParentEntityT,EntityT> |
search(String search)
Request modifier to return the set of entities that contain the specified value.
|
protected com.sap.cloud.sdk.datamodel.odatav4.core.AbstractStructuredPropertyQuery<ParentEntityT,EntityT> |
select(Iterable<Property<EntityT>> fields)
Query modifier to limit which field values of the entity EntityT get fetched and populated.
|
StructuredPropertyCollectionQuery<ParentEntityT,EntityT> |
select(Property<EntityT>... fields) |
StructuredPropertyCollectionQuery<ParentEntityT,EntityT> |
skip(int skip)
Determine the how many first N entities of the result set should be skipped.
|
StructuredPropertyCollectionQuery<ParentEntityT,EntityT> |
top(int top)
Limit the number of results of this request.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExpression
@SafeVarargs @Nonnull public final StructuredPropertyCollectionQuery<ParentEntityT,EntityT> select(@Nonnull Property<EntityT>... fields)
@Nullable protected Number getSkip()
@Nullable protected Number getTop()
@Nonnull protected Iterable<FilterableBoolean<EntityT>> getFilters()
@Nullable protected String getOrderBy()
@SafeVarargs @Nonnull public final StructuredPropertyCollectionQuery<ParentEntityT,EntityT> filter(@Nonnull FilterableBoolean<EntityT>... filters)
filters
- Filter expressions to be added to the request.@Nonnull public StructuredPropertyCollectionQuery<ParentEntityT,EntityT> top(int top)
top
- The maximum amount of elements this request shall return.@Nonnull public StructuredPropertyCollectionQuery<ParentEntityT,EntityT> skip(int skip)
skip
- The amount of elements this request will skip.@Nonnull @Beta public StructuredPropertyCollectionQuery<ParentEntityT,EntityT> orderBy(@Nonnull SimpleProperty<EntityT> field, @Nonnull Order order)
field
- Field to sort by.order
- Sorting direction to use (ascending or descending).@Nonnull public StructuredPropertyCollectionQuery<ParentEntityT,EntityT> search(@Nonnull String search)
search
- A string value as the search criteria.@Nonnull public StructuredPropertyCollectionQuery<ParentEntityT,EntityT> search(@Nonnull SearchExpression expression)
expression
- SearchExpression as the search criteria@Nonnull public String getQueryString()
@Nonnull protected final com.sap.cloud.sdk.datamodel.odatav4.core.AbstractStructuredPropertyQuery<ParentEntityT,EntityT> select(@Nonnull Iterable<Property<EntityT>> fields)
fields
- Properties of EntityT to be selected.@Nonnull public String getFieldName()
Copyright © 2020 SAP SE. All rights reserved.