Class SqmSelectClause
java.lang.Object
org.hibernate.query.sqm.tree.AbstractSqmNode
org.hibernate.query.sqm.tree.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) intcopy(SqmCopyContext context) boolean@Nullable StringgetAlias()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, getJavaTypeName, isEnumMethods inherited from interface SqmNode
asLoggableText
-
Constructor Details
-
SqmSelectClause
-
SqmSelectClause
-
-
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
- Specified by:
getSelectionItemsin interfaceJpaSelection<Object>
-
alias
-
isCompoundSelection
public boolean isCompoundSelection()- Specified by:
isCompoundSelectionin interfaceSelection<Object>
-
getJavaTypeDescriptor
- 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
-