Interface CqnEntitySelector

All Known Subinterfaces:
CqnExpand, CqnSelect, Expand<T>
All Known Implementing Classes:
Select

public interface CqnEntitySelector
The entity selector describes a basic selection from an entity set.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Dispatches a given visitor to all clause except the ref or source of this entity selector
    default boolean
    Returns whether this entity selector has a top or skip
    Returns the selected items
    Returns the order of the selection result
    ref()
    Returns the reference to the entity set of this selector.
    long
    Returns the number of rows to be skipped
    long
    top()
    Returns the maximum number of rows to be returned
  • Method Details

    • ref

      Returns the reference to the entity set of this selector.
      Returns:
      the reference
      Throws:
      CdsException - if this selector does not have a reference
    • items

      Returns the selected items
      Returns:
      the select list items
    • orderBy

      Returns the order of the selection result
      Returns:
      the result order
    • dispatch

      default void dispatch(CqnVisitor visitor)
      Dispatches a given visitor to all clause except the ref or source of this entity selector
      Parameters:
      visitor - the visitor
    • top

      long top()
      Returns the maximum number of rows to be returned
      Returns:
      the maximum number of rows to be returned or -1 if unlimited
    • skip

      long skip()
      Returns the number of rows to be skipped
      Returns:
      the number of rows to be skipped
    • hasLimit

      default boolean hasLimit()
      Returns whether this entity selector has a top or skip
      Returns:
      true if there is a top or skip