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.
- Author:
- Steve Ebersole
- 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) Assigns an alias to the selection item.copy(SqmCopyContext context) getAlias()Return the alias assigned to the tuple element or null, if no alias has been assigned.List<SqmSelection<?>>booleanWhether the selection item is a compound selection.booleanvoidmakeDistinct(boolean distinct) JpaSelection<?>voidsetSelection(SqmSelectableNode<?> selectableNode) voidsetSelection(SqmSelection<?> sqmSelection) Methods inherited from class org.hibernate.query.sqm.tree.AbstractSqmNode
nodeBuilderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.query.criteria.JpaSelection
getCompoundSelectionItemsMethods inherited from interface org.hibernate.query.criteria.JpaTupleElement
getJavaType, getJavaTypeName, isEnumMethods 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:
addin interfaceSqmAliasedExpressionContainer<SqmSelection<?>>
-
add
- Specified by:
addin interfaceSqmAliasedExpressionContainer<SqmSelection<?>>
-
setSelection
-
setSelection
-
resolveJpaSelection
-
getSelectionItems
- Specified by:
getSelectionItemsin interfaceJpaSelection<Object>
-
alias
Description copied from interface:SelectionAssigns an alias to the selection item. Once assigned, an alias cannot be changed or reassigned. Returns the same selection item. -
isCompoundSelection
public boolean isCompoundSelection()Description copied from interface:SelectionWhether the selection item is a compound selection.- Specified by:
isCompoundSelectionin interfaceSelection<Object>- Returns:
- boolean indicating whether the selection is a compound selection
-
getJavaTypeDescriptor
- Specified by:
getJavaTypeDescriptorin interfaceJpaTupleElement<Object>
-
getAlias
Description copied from interface:TupleElementReturn the alias assigned to the tuple element or null, if no alias has been assigned.- Specified by:
getAliasin interfaceTupleElement<Object>- Returns:
- alias
-