Class AbstractJpaSelection<T>

All Implemented Interfaces:
Selection<T>, TupleElement<T>, Serializable, JpaCriteriaNode, JpaSelection<T>, JpaTupleElement<T>, SqmSelectableNode<T>, SqmExpressibleAccessor<T>, SqmNode, SqmTypedNode<T>, SqmVisitableNode
Direct Known Subclasses:
AbstractSqmExpression, SqmDynamicInstantiation

public abstract class AbstractJpaSelection<T> extends AbstractJpaTupleElement<T> implements SqmSelectableNode<T>, JpaSelection<T>
Base support for JpaSelection impls.
Author:
Steve Ebersole
See Also:
  • Constructor Details

    • AbstractJpaSelection

      protected AbstractJpaSelection(@Nullable SqmExpressible<? super T> sqmExpressible, NodeBuilder criteriaBuilder)
  • Method Details

    • alias

      public JpaSelection<T> alias(String alias)
      Description copied from interface: Selection
      Assigns an alias to the selection item. Once assigned, an alias cannot be changed or reassigned. Returns the same selection item.
      Specified by:
      alias in interface JpaSelection<T>
      Specified by:
      alias in interface Selection<T>
      Parameters:
      alias - alias
      Returns:
      selection item
    • isCompoundSelection

      public boolean isCompoundSelection()
      Description copied from interface: Selection
      Whether the selection item is a compound selection.
      Specified by:
      isCompoundSelection in interface Selection<T>
      Returns:
      boolean indicating whether the selection is a compound selection
    • getSelectionItems

      public List<? extends JpaSelection<?>> getSelectionItems()
      Specified by:
      getSelectionItems in interface JpaSelection<T>