Interface JpaSelection<T>

All Superinterfaces:
JpaCriteriaNode, JpaTupleElement<T>, Selection<T>, Serializable, TupleElement<T>
All Known Subinterfaces:
DiscriminatorSqmPath<T>, JpaCoalesce<T>, JpaCollectionJoin<O,T>, JpaCompoundSelection<T>, JpaCrossJoin<T>, JpaDerivedFrom<T>, JpaDerivedJoin<T>, JpaDerivedRoot<T>, JpaEntityJoin<T>, JpaExpression<T>, JpaFrom<O,T>, JpaFunction<T>, JpaInPredicate<T>, JpaJoin<O,T>, JpaJoinedFrom<O,T>, JpaListJoin<O,T>, JpaMapJoin<O,K,V>, JpaPath<T>, JpaPluralJoin<O,C,E>, JpaPredicate, JpaRoot<T>, JpaSearchedCase<T>, JpaSetJoin<O,T>, JpaSimpleCase<C,R>, JpaSubQuery<T>, SqmAggregateFunction<T>, SqmAttributeJoin<O,T>, SqmCorrelation<O,T>, SqmExpression<T>, SqmFrom<O,T>, SqmInPredicate<T>, SqmJoin<O,T>, SqmNegatablePredicate, SqmOrderedSetAggregateFunction<T>, SqmParameter<T>, SqmPath<T>, SqmPathWrapper<W,T>, SqmPredicate, SqmQualifiedJoin<O,T>, SqmSelectableNode<T>, SqmSimplePath<T>, SqmTreatedPath<T,S>, SqmWindowFunction<T>
All Known Implementing Classes:
AbstractJpaSelection, AbstractNegatableSqmPredicate, AbstractSqmAttributeJoin, AbstractSqmExpression, AbstractSqmFrom, AbstractSqmJoin, AbstractSqmParameter, AbstractSqmPath, AbstractSqmPluralJoin, AbstractSqmPredicate, AbstractSqmQualifiedJoin, AbstractSqmSimplePath, AbstractSqmSpecificPluralPartPath, AnyDiscriminatorSqmPath, AsWrapperSqmExpression, EmbeddedDiscriminatorSqmPath, EntityDiscriminatorSqmPath, FormatFunction.FormatSqmFunction, FullyQualifiedReflectivePathTerminal, InverseDistributionFunction.SelfRenderingInverseDistributionFunction, JpaCriteriaParameter, NonAggregatedCompositeSimplePath, SelfRenderingSqmAggregateFunction, SelfRenderingSqmFunction, SelfRenderingSqmOrderedSetAggregateFunction, SelfRenderingSqmWindowFunction, SqmAliasedNodeRef, SqmAny, SqmAnyDiscriminatorValue, SqmAnyValuedSimplePath, SqmBagJoin, SqmBasicValuedSimplePath, SqmBetweenPredicate, SqmBinaryArithmetic, SqmBooleanExpressionPredicate, SqmByUnit, SqmCaseSearched, SqmCaseSimple, SqmCoalesce, SqmCollation, SqmCollectionSize, SqmComparisonPredicate, SqmCorrelatedBagJoin, SqmCorrelatedCrossJoin, SqmCorrelatedEntityJoin, SqmCorrelatedListJoin, SqmCorrelatedMapJoin, SqmCorrelatedPluralPartJoin, SqmCorrelatedRoot, SqmCorrelatedRootJoin, SqmCorrelatedSetJoin, SqmCorrelatedSingularJoin, SqmCrossJoin, SqmCteJoin, SqmCteRoot, SqmDerivedJoin, SqmDerivedRoot, SqmDynamicInstantiation, SqmElementAggregateFunction, SqmEmbeddedValuedSimplePath, SqmEmptinessPredicate, SqmEntityJoin, SqmEntityValuedSimplePath, SqmEnumLiteral, SqmEvery, SqmExistsPredicate, SqmFieldLiteral, SqmFkExpression, SqmFormat, SqmFunction, SqmFunctionPath, SqmGroupedPredicate, SqmHqlNumericLiteral, SqmIndexAggregateFunction, SqmIndexedCollectionAccessPath, SqmInListPredicate, SqmInSubQueryPredicate, SqmJpaCompoundSelection, SqmJpaCriteriaParameterWrapper, SqmJunctionPredicate, SqmLikePredicate, SqmListJoin, SqmLiteral, SqmLiteralEmbeddableType, SqmLiteralEntityType, SqmLiteralNull, SqmMapEntryReference, SqmMapJoin, SqmMemberOfPredicate, SqmModifiedSubQueryExpression, SqmNamedParameter, SqmNegatedPredicate, SqmNullnessPredicate, SqmOver, SqmOverflow, SqmParameterizedEntityType, SqmPluralPartJoin, SqmPluralValuedSimplePath, SqmPositionalParameter, SqmRoot, SqmSelectClause, SqmSelfRenderingExpression, SqmSetJoin, SqmSingularJoin, SqmStar, SqmSubQuery, SqmSummarization, SqmToDuration, SqmTreatedBagJoin, SqmTreatedCrossJoin, SqmTreatedEmbeddedValuedSimplePath, SqmTreatedEntityJoin, SqmTreatedEntityValuedSimplePath, SqmTreatedListJoin, SqmTreatedMapJoin, SqmTreatedPluralPartJoin, SqmTreatedRoot, SqmTreatedSetJoin, SqmTreatedSingularJoin, SqmTruthnessPredicate, SqmTuple, SqmUnaryOperation, ValueBindJpaCriteriaParameter

public interface JpaSelection<T> extends JpaTupleElement<T>, Selection<T>
API extension to the JPA Selection contract
Author:
Steve Ebersole
  • Method Details

    • getSelectionItems

      List<? extends JpaSelection<?>> getSelectionItems()
    • getCompoundSelectionItems

      default List<Selection<?>> getCompoundSelectionItems()
      Description copied from interface: Selection
      Return the selection items composing a compound selection. Modifications to the list do not affect the query.
      Specified by:
      getCompoundSelectionItems in interface Selection<T>
      Returns:
      list of selection items
    • alias

      JpaSelection<T> alias(String name)
      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 Selection<T>
      Parameters:
      name - alias
      Returns:
      selection item