Class SqmJpaCompoundSelection<T>
- java.lang.Object
-
- org.hibernate.query.sqm.tree.AbstractSqmNode
-
- org.hibernate.query.sqm.tree.jpa.AbstractJpaTupleElement<T>
-
- org.hibernate.query.sqm.tree.jpa.AbstractJpaSelection<T>
-
- org.hibernate.query.sqm.tree.expression.AbstractSqmExpression<T>
-
- org.hibernate.query.sqm.tree.select.SqmJpaCompoundSelection<T>
-
- All Implemented Interfaces:
CompoundSelection<T>
,Expression<T>
,Selection<T>
,TupleElement<T>
,Serializable
,BindableType<T>
,JpaCompoundSelection<T>
,JpaCriteriaNode
,JpaExpression<T>
,JpaSelection<T>
,JpaTupleElement<T>
,SqmExpressible<T>
,SqmExpression<T>
,SqmSelectableNode<T>
,SqmExpressibleAccessor<T>
,SqmNode
,SqmTypedNode<T>
,SqmVisitableNode
public class SqmJpaCompoundSelection<T> extends AbstractSqmExpression<T> implements JpaCompoundSelection<T>, SqmExpressible<T>
-
-
Constructor Summary
Constructors Constructor Description SqmJpaCompoundSelection(List<SqmSelectableNode<?>> selectableNodes, JavaType<T> javaType, NodeBuilder criteriaBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <X> X
accept(SemanticQueryWalker<X> walker)
Accept the walker per visitationJpaSelection<T>
alias(String name)
void
appendHqlString(StringBuilder sb)
SqmJpaCompoundSelection<T>
copy(SqmCopyContext context)
String
getAlias()
Class<T>
getBindableJavaType()
The expected Java typeJavaType<T>
getExpressibleJavaType()
The Java type descriptor for this expressibleClass<T>
getJavaType()
JavaType<T>
getJavaTypeDescriptor()
List<SqmSelectableNode<?>>
getSelectionItems()
DomainType<T>
getSqmType()
boolean
isCompoundSelection()
void
visitSubSelectableNodes(Consumer<SqmSelectableNode<?>> jpaSelectionConsumer)
Visit each of this selectable's direct sub-selectables - used to support JPA'sSelection
model (which is really a "selectable", just poorly named and poorly defined-
Methods inherited from class org.hibernate.query.sqm.tree.expression.AbstractSqmExpression
applyInferableType, as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, equalTo, equalTo, in, in, in, in, internalApplyInferableType, isNotNull, isNull, nodeBuilder
-
Methods inherited from class org.hibernate.query.sqm.tree.jpa.AbstractJpaTupleElement
copyTo, getNodeType, setAlias, setExpressibleType
-
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
getJavaTypeName, isEnum
-
Methods inherited from interface org.hibernate.query.sqm.SqmExpressible
getRelationalJavaType, getTypeName, isInstance, resolveExpressible
-
Methods inherited from interface org.hibernate.query.sqm.tree.expression.SqmExpression
cast, castAs, getNodeType
-
Methods inherited from interface org.hibernate.query.sqm.tree.SqmNode
asLoggableText
-
Methods inherited from interface org.hibernate.query.sqm.tree.select.SqmSelectableNode
getTupleLength
-
Methods inherited from interface org.hibernate.query.sqm.tree.SqmTypedNode
getExpressible, getNodeJavaType
-
Methods inherited from interface org.hibernate.query.sqm.tree.SqmVisitableNode
toHqlString
-
-
-
-
Constructor Detail
-
SqmJpaCompoundSelection
public SqmJpaCompoundSelection(List<SqmSelectableNode<?>> selectableNodes, JavaType<T> javaType, NodeBuilder criteriaBuilder)
-
-
Method Detail
-
copy
public SqmJpaCompoundSelection<T> copy(SqmCopyContext context)
- Specified by:
copy
in interfaceSqmExpression<T>
- Specified by:
copy
in interfaceSqmNode
- Specified by:
copy
in interfaceSqmSelectableNode<T>
- Specified by:
copy
in interfaceSqmTypedNode<T>
-
getJavaTypeDescriptor
public JavaType<T> getJavaTypeDescriptor()
- Specified by:
getJavaTypeDescriptor
in interfaceJpaTupleElement<T>
- Overrides:
getJavaTypeDescriptor
in classAbstractSqmExpression<T>
-
getExpressibleJavaType
public JavaType<T> getExpressibleJavaType()
Description copied from interface:SqmExpressible
The Java type descriptor for this expressible- Specified by:
getExpressibleJavaType
in interfaceSqmExpressible<T>
-
getJavaType
public Class<T> getJavaType()
- Specified by:
getJavaType
in interfaceJpaTupleElement<T>
- Specified by:
getJavaType
in interfaceTupleElement<T>
-
getBindableJavaType
public Class<T> getBindableJavaType()
Description copied from interface:BindableType
The expected Java type- Specified by:
getBindableJavaType
in interfaceBindableType<T>
-
getSelectionItems
public List<SqmSelectableNode<?>> getSelectionItems()
- Specified by:
getSelectionItems
in interfaceJpaSelection<T>
- Overrides:
getSelectionItems
in classAbstractJpaSelection<T>
-
alias
public JpaSelection<T> alias(String name)
- Specified by:
alias
in interfaceJpaSelection<T>
- Specified by:
alias
in interfaceSelection<T>
- Overrides:
alias
in classAbstractJpaSelection<T>
-
getAlias
public String getAlias()
- Specified by:
getAlias
in interfaceTupleElement<T>
- Overrides:
getAlias
in classAbstractJpaTupleElement<T>
-
isCompoundSelection
public boolean isCompoundSelection()
- Specified by:
isCompoundSelection
in interfaceSelection<T>
- Overrides:
isCompoundSelection
in classAbstractJpaSelection<T>
-
accept
public <X> X accept(SemanticQueryWalker<X> walker)
Description copied from interface:SqmVisitableNode
Accept the walker per visitation- Specified by:
accept
in interfaceSqmVisitableNode
-
appendHqlString
public void appendHqlString(StringBuilder sb)
- Specified by:
appendHqlString
in interfaceSqmVisitableNode
-
visitSubSelectableNodes
public void visitSubSelectableNodes(Consumer<SqmSelectableNode<?>> jpaSelectionConsumer)
Description copied from interface:SqmSelectableNode
Visit each of this selectable's direct sub-selectables - used to support JPA'sSelection
model (which is really a "selectable", just poorly named and poorly defined- Specified by:
visitSubSelectableNodes
in interfaceSqmExpression<T>
- Specified by:
visitSubSelectableNodes
in interfaceSqmSelectableNode<T>
- See Also:
JpaSelection.getSelectionItems()
,Selection.getCompoundSelectionItems()
-
getSqmType
public DomainType<T> getSqmType()
- Specified by:
getSqmType
in interfaceSqmExpressible<T>
-
-