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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SqmSelectClause(boolean distinct, int expectedNumberOfSelections, NodeBuilder nodeBuilder)
SqmSelectClause(boolean distinct, NodeBuilder nodeBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqmSelection<?>
add(SqmExpression<?> expression, String alias)
void
add(SqmSelection<?> aliasExpression)
void
addSelection(SqmSelection<?> selection)
JpaSelection<Object>
alias(String name)
SqmSelectClause
copy(SqmCopyContext context)
String
getAlias()
JavaType<Object>
getJavaTypeDescriptor()
List<SqmSelectableNode<?>>
getSelectionItems()
List<SqmSelection<?>>
getSelections()
boolean
isCompoundSelection()
boolean
isDistinct()
void
makeDistinct(boolean distinct)
JpaSelection<?>
resolveJpaSelection()
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
-
Methods inherited from interface org.hibernate.query.sqm.tree.SqmNode
asLoggableText
-
-
-
-
Constructor Detail
-
SqmSelectClause
public SqmSelectClause(boolean distinct, NodeBuilder nodeBuilder)
-
SqmSelectClause
public SqmSelectClause(boolean distinct, int expectedNumberOfSelections, NodeBuilder nodeBuilder)
-
-
Method Detail
-
copy
public SqmSelectClause copy(SqmCopyContext context)
-
isDistinct
public boolean isDistinct()
-
makeDistinct
public void makeDistinct(boolean distinct)
-
getSelections
public List<SqmSelection<?>> getSelections()
-
addSelection
public void addSelection(SqmSelection<?> selection)
-
add
public SqmSelection<?> add(SqmExpression<?> expression, String alias)
- Specified by:
add
in interfaceSqmAliasedExpressionContainer<SqmSelection<?>>
-
add
public void add(SqmSelection<?> aliasExpression)
- Specified by:
add
in interfaceSqmAliasedExpressionContainer<SqmSelection<?>>
-
setSelection
public void setSelection(SqmSelection<?> sqmSelection)
-
setSelection
public void setSelection(SqmSelectableNode<?> selectableNode)
-
resolveJpaSelection
public JpaSelection<?> resolveJpaSelection()
-
getSelectionItems
public List<SqmSelectableNode<?>> getSelectionItems()
- Specified by:
getSelectionItems
in interfaceJpaSelection<Object>
-
alias
public JpaSelection<Object> alias(String name)
-
isCompoundSelection
public boolean isCompoundSelection()
- Specified by:
isCompoundSelection
in interfaceSelection<Object>
-
getJavaTypeDescriptor
public JavaType<Object> getJavaTypeDescriptor()
- Specified by:
getJavaTypeDescriptor
in interfaceJpaTupleElement<Object>
-
getAlias
public String getAlias()
- Specified by:
getAlias
in interfaceTupleElement<Object>
-
-