Class GrantCoreHierarchyOneToOneLink<ObjectT extends VdmObject<?>>

java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.EntityLink<GrantCoreHierarchyLink<ObjectT>,GrantCoreHierarchy,ObjectT>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.granthierarchy.link.GrantCoreHierarchyLink<ObjectT>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.granthierarchy.link.GrantCoreHierarchyOneToOneLink<ObjectT>
Type Parameters:
ObjectT - Entity type of subclasses from VdmObject.
All Implemented Interfaces:
EntitySelectable<GrantCoreHierarchy>, OneToOneLink<GrantCoreHierarchy,ObjectT>, GrantCoreHierarchySelectable

public class GrantCoreHierarchyOneToOneLink<ObjectT extends VdmObject<?>> extends GrantCoreHierarchyLink<ObjectT> implements OneToOneLink<GrantCoreHierarchy,ObjectT>
Template class to represent entity navigation links of GrantCoreHierarchy to other entities, where the cardinality of the related entity is at most 1. This class extends GrantCoreHierarchyLink and provides an additional filter function.
  • Constructor Details

    • GrantCoreHierarchyOneToOneLink

      public GrantCoreHierarchyOneToOneLink(String fieldName)
      Use the constants declared in each entity inner class. Instantiating directly requires knowing the underlying OData field names, so use with caution.
      Parameters:
      fieldName - OData navigation field name. Must match the field returned by the underlying OData service.
  • Method Details

    • filter

      @Nonnull public ExpressionFluentHelper<GrantCoreHierarchy> filter(@Nonnull ExpressionFluentHelper<ObjectT> filterExpression)
      Query modifier to restrict the result set to entities for which this expression (formulated over a property of a related entity) evaluates to true. Note that filtering on a related entity does not expand the selection of the respective query to that entity.
      Specified by:
      filter in interface OneToOneLink<GrantCoreHierarchy,ObjectT extends VdmObject<?>>
      Parameters:
      filterExpression - A filter expression on the related entity.
      Returns:
      A filter expression over a related entity, scoped to the parent entity.