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<?>>
,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) void
add
(SqmSelection<?> aliasExpression) void
addSelection
(SqmSelection<?> selection) copy
(SqmCopyContext context) getAlias()
List<SqmSelection<?>>
boolean
boolean
void
makeDistinct
(boolean distinct) JpaSelection<?>
void
setSelection
(SqmSelectableNode<?> selectableNode) void
setSelection
(SqmSelection<?> sqmSelection) Methods inherited from class org.hibernate.query.sqm.tree.AbstractSqmNode
nodeBuilder
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.query.criteria.JpaSelection
getCompoundSelectionItems
Methods inherited from interface org.hibernate.query.criteria.JpaTupleElement
getJavaType, getJavaTypeName, isEnum
Methods inherited from interface org.hibernate.query.sqm.tree.SqmNode
asLoggableText
-
Constructor Details
-
SqmSelectClause
-
SqmSelectClause
-
-
Method Details
-
copy
-
isDistinct
public boolean isDistinct() -
makeDistinct
public void makeDistinct(boolean distinct) -
getSelections
-
addSelection
-
add
- Specified by:
add
in interfaceSqmAliasedExpressionContainer<SqmSelection<?>>
-
add
- Specified by:
add
in interfaceSqmAliasedExpressionContainer<SqmSelection<?>>
-
setSelection
-
setSelection
-
resolveJpaSelection
-
getSelectionItems
- Specified by:
getSelectionItems
in interfaceJpaSelection<Object>
-
alias
-
isCompoundSelection
public boolean isCompoundSelection()- Specified by:
isCompoundSelection
in interfaceSelection<Object>
-
getJavaTypeDescriptor
- Specified by:
getJavaTypeDescriptor
in interfaceJpaTupleElement<Object>
-
getAlias
- Specified by:
getAlias
in interfaceTupleElement<Object>
-