Class SqmSelectClause
java.lang.Object
org.hibernate.query.sqm.tree.spi.AbstractSqmNode
org.hibernate.query.sqm.tree.spi.select.SqmSelectClause
- All Implemented Interfaces:
Selection<Object>, TupleElement<Object>, Serializable, JpaCriteriaNode, JpaSelection<Object>, JpaTupleElement<Object>, SqmAliasedExpressionContainer<SqmSelection<?>>, SqmCacheable, SqmNode
public class SqmSelectClause
extends AbstractSqmNode
implements SqmAliasedExpressionContainer<SqmSelection<?>>, JpaSelection<Object>
The semantic select clause. Defined as a list of individual selections.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSqmSelectClause(boolean distinct, int expectedNumberOfSelections, NodeBuilder nodeBuilder) SqmSelectClause(boolean distinct, NodeBuilder nodeBuilder) -
Method Summary
Modifier and TypeMethodDescriptionSqmSelection<?> add(SqmExpression<?> expression, String alias) voidadd(SqmSelection<?> aliasExpression) voidaddSelection(SqmSelection<?> selection) Assign an alias to this selection.intcopy(SqmCopyContext context) booleangetAlias()Return the Java type of this tuple element.Return the items of this selection.List<SqmSelection<?>> inthashCode()booleanisCompatible(Object other) booleanbooleanvoidmakeDistinct(boolean distinct) JpaSelection<?> voidsetSelection(SqmSelectableNode<?> selectableNode) voidsetSelection(SqmSelection<?> sqmSelection) Methods inherited from class AbstractSqmNode
nodeBuilderMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface JpaSelection
getCompoundSelectionItemsMethods inherited from interface JpaTupleElement
getJavaType, getJavaTypeIfKnown, getJavaTypeName, isEnumMethods inherited from interface SqmNode
asLoggableText
-
Constructor Details
-
SqmSelectClause
-
SqmSelectClause
public SqmSelectClause(boolean distinct, int expectedNumberOfSelections, @Nonnull NodeBuilder nodeBuilder)
-
-
Method Details
-
copy
-
isDistinct
public boolean isDistinct() -
makeDistinct
public void makeDistinct(boolean distinct) -
getSelections
-
addSelection
-
add
- Specified by:
addin interfaceSqmAliasedExpressionContainer<SqmSelection<?>>
-
add
- Specified by:
addin interfaceSqmAliasedExpressionContainer<SqmSelection<?>>
-
setSelection
-
setSelection
-
resolveJpaSelection
-
getSelectionItems
Description copied from interface:JpaSelectionReturn the items of this selection.- Specified by:
getSelectionItemsin interfaceJpaSelection<Object>
-
alias
Description copied from interface:JpaSelectionAssign an alias to this selection. -
isCompoundSelection
public boolean isCompoundSelection()- Specified by:
isCompoundSelectionin interfaceSelection<Object>
-
getJavaTypeDescriptor
Description copied from interface:JpaTupleElementReturn the Java type of this tuple element.- Specified by:
getJavaTypeDescriptorin interfaceJpaTupleElement<Object>
-
getAlias
- Specified by:
getAliasin interfaceTupleElement<Object>
-
equals
-
hashCode
-
isCompatible
- Specified by:
isCompatiblein interfaceSqmCacheable
-
cacheHashCode
public int cacheHashCode()- Specified by:
cacheHashCodein interfaceSqmCacheable
-