Class SelectionImpl<X>

java.lang.Object
cz.cvut.kbss.jopa.query.criteria.SelectionImpl<X>
All Implemented Interfaces:
Selection<X>, TupleElement<X>
Direct Known Subclasses:
AbstractExpression

public abstract class SelectionImpl<X> extends Object implements Selection<X>
  • Field Details

    • type

      protected final Class<X> type
  • Constructor Details

    • SelectionImpl

      public SelectionImpl(Class<X> type)
  • Method Details

    • isCompoundedSelection

      public boolean isCompoundedSelection()
      Description copied from interface: Selection
      Whether the selection item is a compound selection. Compounded selection is NOT YET SUPPORTED. Therefore, the method always returns false.
      Specified by:
      isCompoundedSelection in interface Selection<X>
      Returns:
      boolean indicating whether the selection is a compound selection
    • getCompoundedSelectionItems

      public List<Selection<?>> getCompoundedSelectionItems()
      Description copied from interface: Selection
      Return the selection items composing a compound selection. Modifications to the list do not affect the query. Compounded selection is NOT YET SUPPORTED. Therefore, the method always throws IllegalStateException.
      Specified by:
      getCompoundedSelectionItems in interface Selection<X>
      Returns:
      list of selection items
    • getJavaType

      public Class<? extends X> getJavaType()
      Description copied from interface: TupleElement
      Return the runtime Java type of the tuple element.
      Specified by:
      getJavaType in interface TupleElement<X>
      Returns:
      the runtime Java type of the tuple element
    • getAlias

      public String getAlias()
      Description copied from interface: TupleElement
      Return the alias assigned to the tuple element or null, if no alias has been assigned.
      Specified by:
      getAlias in interface TupleElement<X>
      Returns:
      alias