Top Description Methods
org.hibernate.query.sqm.tree.select

public Interface SqmSelectableNode<T>

extends JpaSelection<T>, SqmTypedNode<T>
Known Direct Subinterfaces
org.hibernate.query.sqm.tree.expression.SqmExpression
Known Direct Implementers
org.hibernate.query.sqm.tree.domain.SqmMapEntryReference, org.hibernate.query.sqm.tree.expression.SqmLiteralEntityType, org.hibernate.query.sqm.tree.expression.SqmAnyDiscriminatorValue, org.hibernate.query.sqm.tree.expression.SqmBinaryArithmetic, org.hibernate.query.sqm.tree.expression.SqmFieldLiteral, org.hibernate.query.sqm.tree.expression.SqmParameterizedEntityType, org.hibernate.query.sqm.tree.expression.SqmUnaryOperation, org.hibernate.query.sqm.tree.jpa.AbstractJpaSelection, org.hibernate.query.sqm.tree.select.SqmDynamicInstantiation
Imports
java.util.function.Consumer, jakarta.persistence.criteria.Selection, org.hibernate.metamodel.model.domain.DomainType, org.hibernate.query.criteria.JpaSelection, org.hibernate.query.sqm.tree.SqmCopyContext, .SqmTypedNode

Defines a SQM AST node that can be used as a selection in the query, or as an argument to a dynamic-instantiation.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public SqmSelectableNode<T>
public default Integer
public void
visitSubSelectableNodes(Consumer<SqmSelectableNode<?>> jpaSelectionConsumer)

Visit each of this selectable's direct sub-selectables - used to support JPA's Selection model (which is really a "selectable", just poorly named and poorly defined

Inherited from org.hibernate.query.criteria.JpaSelection:
aliasgetCompoundSelectionItemsgetSelectionItems
Inherited from org.hibernate.query.sqm.tree.SqmTypedNode:
getExpressiblegetNodeJavaTypegetNodeType

Method Detail

copyback to summary
public SqmSelectableNode<T> copy(SqmCopyContext context)

Redeclares org.hibernate.query.sqm.tree.SqmTypedNode.copy.

Annotations
@Override
getTupleLengthback to summary
public default Integer getTupleLength()
visitSubSelectableNodesback to summary
public void visitSubSelectableNodes(Consumer<SqmSelectableNode<?>> jpaSelectionConsumer)

Visit each of this selectable's direct sub-selectables - used to support JPA's Selection model (which is really a "selectable", just poorly named and poorly defined

See Also
JpaSelection#getSelectionItems(), Selection#getCompoundSelectionItems()