Top Description Methods
org.hibernate.query.criteria

public Interface JpaSelection<T>

extends JpaTupleElement<T>, Selection<T>
Known Direct Subinterfaces
org.hibernate.query.sqm.tree.select.SqmSelectableNode, org.hibernate.query.criteria.JpaCompoundSelection, org.hibernate.query.criteria.JpaExpression
Known Direct Implementers
org.hibernate.query.sqm.tree.jpa.AbstractJpaSelection, org.hibernate.query.sqm.tree.select.SqmSelectClause
Imports
java.util.Collections, .List, jakarta.persistence.criteria.Selection

API extension to the JPA Selection contract
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public JpaSelection<T>
alias(String
alias
name
)

Redeclares jakarta.persistence.criteria.Selection.alias.

Assigns an alias to the selection item.
public default List<Selection<?>>
getCompoundSelectionItems()

Implements jakarta.persistence.criteria.Selection.getCompoundSelectionItems.

Return the selection items composing a compound selection.
public List<? extends JpaSelection<?>>
Inherited from jakarta.persistence.criteria.Selection:
isCompoundSelection
Inherited from org.hibernate.query.criteria.JpaTupleElement:
getJavaTypegetJavaTypeDescriptor

Method Detail

aliasback to summary
public JpaSelection<T> alias(String name)

Redeclares jakarta.persistence.criteria.Selection.alias.

Doc from jakarta.persistence.criteria.Selection.alias.

Assigns an alias to the selection item. Once assigned, an alias cannot be changed or reassigned. Returns the same selection item.

Parameters
name:String

alias

Returns:JpaSelection<T>

selection item

Annotations
@Override
getCompoundSelectionItemsback to summary
public default List<Selection<?>> getCompoundSelectionItems()

Implements jakarta.persistence.criteria.Selection.getCompoundSelectionItems.

Doc from jakarta.persistence.criteria.Selection.getCompoundSelectionItems.

Return the selection items composing a compound selection. Modifications to the list do not affect the query.

Returns:List<Selection<?>>

list of selection items

Annotations
@Override
getSelectionItemsback to summary
public List<? extends JpaSelection<?>> getSelectionItems()