Top Description Constructors Methods
org.hibernate.query.sqm.tree.jpa

public abstract Class AbstractJpaSelection<T>

extends AbstractJpaTupleElement<T>
implements SqmSelectableNode<T>, JpaSelection<T>
Class Inheritance
All Implemented Interfaces
org.hibernate.query.criteria.JpaSelection, jakarta.persistence.criteria.Selection, jakarta.persistence.TupleElement, org.hibernate.query.criteria.JpaTupleElement, org.hibernate.query.criteria.JpaCriteriaNode, java.io.Serializable, org.hibernate.query.sqm.tree.select.SqmSelectableNode, org.hibernate.query.sqm.tree.SqmTypedNode, org.hibernate.query.sqm.tree.SqmVisitableNode, org.hibernate.query.sqm.tree.SqmNode, org.hibernate.query.sqm.tree.SqmExpressibleAccessor
Known Direct Subclasses
org.hibernate.query.sqm.tree.select.SqmDynamicInstantiation, org.hibernate.query.sqm.tree.expression.AbstractSqmExpression
Imports
java.util.List, org.hibernate.query.criteria.JpaSelection, org.hibernate.query.sqm.NodeBuilder, .SqmExpressible, org.hibernate.query.sqm.tree.select.SqmSelectableNode

Base support for JpaSelection impls.
Author
Steve Ebersole

Constructor Summary

AccessConstructor and Description
protected
AbstractJpaSelection(SqmExpressible<? super T> sqmExpressible, NodeBuilder criteriaBuilder)

Method Summary

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

Implements org.hibernate.query.criteria.JpaSelection.alias.

Assigns an alias to the selection item.
public List<? extends JpaSelection<?>>
public boolean
isCompoundSelection()

Implements jakarta.persistence.criteria.Selection.isCompoundSelection.

Whether the selection item is a compound selection.
Inherited from org.hibernate.query.sqm.tree.jpa.AbstractJpaTupleElement:
copyTogetAliasgetNodeTypesetAliassetExpressibleType

Constructor Detail

AbstractJpaSelectionback to summary
protected AbstractJpaSelection(SqmExpressible<? super T> sqmExpressible, NodeBuilder criteriaBuilder)

Method Detail

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

Implements org.hibernate.query.criteria.JpaSelection.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
alias:String

alias

Returns:JpaSelection<T>

selection item

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

Implements org.hibernate.query.criteria.JpaSelection.getSelectionItems.

Annotations
@Override
isCompoundSelectionback to summary
public boolean isCompoundSelection()

Implements jakarta.persistence.criteria.Selection.isCompoundSelection.

Doc from jakarta.persistence.criteria.Selection.isCompoundSelection.

Whether the selection item is a compound selection.

Returns:boolean

boolean indicating whether the selection is a compound selection

Annotations
@Override