Class ComplexPropertyQuery<OwnerT extends VdmObject<?>,PropertyT extends VdmComplex<?>>

java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.ComplexPropertyQuery<OwnerT,PropertyT>
Type Parameters:
OwnerT - VdmObject this property is part of.
PropertyT - VdmComplex type 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 Details

  • 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

      @Nonnull public String getFieldName()
      Description copied from interface: FieldReference
      javadoc
      Specified by:
      getFieldName in interface FieldReference
      Returns:
      The field name this reference points towards.
    • getDelegateQuery

      protected StructuredQuery getDelegateQuery()