Class ComplexPropertyQuery<OwnerT extends VdmObject<?>,PropertyT extends VdmComplex<?>>
java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.ComplexPropertyQuery<OwnerT,PropertyT>
- Type Parameters:
OwnerT-VdmObjectthis property is part of.PropertyT-VdmComplextype this property references to.
- All Implemented Interfaces:
Expressions.Operand,Expressions.OperandSingle,FieldReference,Property<OwnerT>
public final class ComplexPropertyQuery<OwnerT extends VdmObject<?>,PropertyT extends VdmComplex<?>>
extends Object
Implementation that represents read queries and holds their state at runtime. It allows for nested queries in a
recursive manner. The implementation is the same for queries over single entities and collections of entities. In the
VDM the available functionality is limited by the interfaces.
In order to support a fluent creation of nested queries both the entity and the parent entity type are stored via
generics. By implementing
AbstractStructuredPropertyQuery the API doesn't differentiate between selections
via referencing complex properties and selections via sub-queries.-
Field Summary
FieldsFields inherited from interface com.sap.cloud.sdk.datamodel.odata.client.expression.Expressions.Operand
NULL -
Method Summary
Modifier and TypeMethodDescriptionprotected StructuredQueryThe delegate query.javadocfinal ComplexPropertyQuery<OwnerT,PropertyT> protected final com.sap.cloud.sdk.datamodel.odatav4.core.AbstractStructuredPropertyQuery<OwnerT,PropertyT> Query modifier to limit which field values of the entity AbstractStructuredPropertyQuery get fetched and populated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sap.cloud.sdk.datamodel.odata.client.expression.Expressions.Operand
getExpressionMethods inherited from interface com.sap.cloud.sdk.datamodel.odata.client.expression.FieldReference
getExpression
-
Field Details
-
delegateQuery
The delegate query.
-
-
Method Details
-
select
@SafeVarargs @Nonnull public final ComplexPropertyQuery<OwnerT,PropertyT> select(@Nonnull Property<PropertyT>... fields) -
select
@Nonnull protected final com.sap.cloud.sdk.datamodel.odatav4.core.AbstractStructuredPropertyQuery<OwnerT,PropertyT> select(@Nonnull Iterable<Property<PropertyT>> fields) Query modifier to limit which field values of the entity AbstractStructuredPropertyQuery get fetched and populated.- Parameters:
fields- Properties of AbstractStructuredPropertyQuery to be selected.- Returns:
- This query object with the added selections.
-
getFieldName
Description copied from interface:FieldReferencejavadoc- Specified by:
getFieldNamein interfaceFieldReference- Returns:
- The field name this reference points towards.
-
getDelegateQuery
The delegate query.
-