Class SqmJpaCompoundSelection<T>
java.lang.Object
org.hibernate.query.sqm.tree.spi.AbstractSqmNode
org.hibernate.query.sqm.tree.spi.jpa.AbstractJpaTupleElement<T>
org.hibernate.query.sqm.tree.spi.jpa.AbstractJpaSelection<T>
org.hibernate.query.sqm.tree.spi.expression.AbstractSqmExpression<T>
org.hibernate.query.sqm.tree.spi.select.SqmJpaCompoundSelection<T>
- All Implemented Interfaces:
CompoundSelection<T>, Expression<T>, Selection<T>, TupleElement<T>, Serializable, JpaCompoundSelection<T>, JpaCriteriaNode, JpaExpression<T>, JpaSelection<T>, JpaTupleElement<T>, SqmExpressible<T>, SqmExpression<T>, SqmSelectableNode<T>, SqmCacheable, SqmExpressibleAccessor<T>, SqmNode, SqmTypedNode<T>, SqmVisitableNode
public class SqmJpaCompoundSelection<T>
extends AbstractSqmExpression<T>
implements JpaCompoundSelection<T>, SqmExpressible<T>
Models either a
Tuple or Object[] selection as defined by the
JPA Criteria API.- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSqmJpaCompoundSelection(List<? extends SqmSelectableNode<?>> selectableNodes, JavaType<T> javaType, NodeBuilder criteriaBuilder) -
Method Summary
Modifier and TypeMethodDescription<X> Xaccept(SemanticQueryWalker<X> walker) Accept the walker per visitationAssign an alias to this selection.voidappendHqlString(StringBuilder hql, SqmRenderContext context) intcopy(SqmCopyContext context) booleangetAlias()The Java type descriptor for this expressibleReturn the Java type of the tuple element.Return the Java type of this tuple element.List<? extends SqmSelectableNode<?>> Return the items of this selection.inthashCode()booleanisCompatible(Object object) booleanvoidvisitSubSelectableNodes(Consumer<SqmSelectableNode<?>> jpaSelectionConsumer) Visit each of this selectable's direct sub-selectables - used to support JPA'sSelectionmodel (which is really a "selectable", just poorly named and poorly definedMethods inherited from class AbstractSqmExpression
applyInferableType, as, cast, coalesce, coalesce, count, countDistinct, equalTo, equalTo, in, in, in, in, in, internalApplyInferableType, isMember, isNotMember, isNotNull, isNull, nodeBuilder, notEqualTo, notEqualTo, nullif, nullif, selectCase, selectCaseMethods inherited from class AbstractJpaTupleElement
copyTo, getNodeType, setAlias, setExpressibleTypeMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface JpaSelection
getCompoundSelectionItemsMethods inherited from interface JpaTupleElement
getJavaTypeIfKnown, getJavaTypeName, isEnumMethods inherited from interface SqmExpressible
getRelationalJavaType, getTypeNameMethods inherited from interface SqmExpression
asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, castAs, getNodeTypeMethods inherited from interface SqmNode
asLoggableTextMethods inherited from interface SqmSelectableNode
getTupleLengthMethods inherited from interface SqmTypedNode
getExpressible, getNodeJavaTypeMethods inherited from interface SqmVisitableNode
toHqlString
-
Constructor Details
-
SqmJpaCompoundSelection
public SqmJpaCompoundSelection(@Nonnull List<? extends SqmSelectableNode<?>> selectableNodes, @Nonnull JavaType<T> javaType, @Nonnull NodeBuilder criteriaBuilder)
-
-
Method Details
-
copy
- Specified by:
copyin interfaceSqmExpression<T>- Specified by:
copyin interfaceSqmNode- Specified by:
copyin interfaceSqmSelectableNode<T>- Specified by:
copyin interfaceSqmTypedNode<T>
-
getJavaTypeDescriptor
Description copied from interface:JpaTupleElementReturn the Java type of this tuple element.- Specified by:
getJavaTypeDescriptorin interfaceJpaTupleElement<T>- Overrides:
getJavaTypeDescriptorin classAbstractSqmExpression<T>
-
getExpressibleJavaType
Description copied from interface:SqmExpressibleThe Java type descriptor for this expressible- Specified by:
getExpressibleJavaTypein interfaceSqmExpressible<T>
-
getJavaType
Description copied from interface:JpaTupleElementReturn the Java type of the tuple element.- Specified by:
getJavaTypein interfaceJpaTupleElement<T>- Specified by:
getJavaTypein interfaceTupleElement<T>
-
getSelectionItems
Description copied from interface:JpaSelectionReturn the items of this selection.- Specified by:
getSelectionItemsin interfaceJpaSelection<T>- Overrides:
getSelectionItemsin classAbstractJpaSelection<T>
-
alias
Description copied from interface:JpaSelectionAssign an alias to this selection.- Specified by:
aliasin interfaceJpaSelection<T>- Specified by:
aliasin interfaceSelection<T>- Overrides:
aliasin classAbstractJpaSelection<T>
-
getAlias
- Specified by:
getAliasin interfaceTupleElement<T>- Overrides:
getAliasin classAbstractJpaTupleElement<T>
-
isCompoundSelection
public boolean isCompoundSelection()- Specified by:
isCompoundSelectionin interfaceSelection<T>- Overrides:
isCompoundSelectionin classAbstractJpaSelection<T>
-
accept
Description copied from interface:SqmVisitableNodeAccept the walker per visitation- Specified by:
acceptin interfaceSqmVisitableNode
-
appendHqlString
- Specified by:
appendHqlStringin interfaceSqmVisitableNode
-
equals
-
hashCode
-
isCompatible
- Specified by:
isCompatiblein interfaceSqmCacheable
-
cacheHashCode
public int cacheHashCode()- Specified by:
cacheHashCodein interfaceSqmCacheable
-
visitSubSelectableNodes
Description copied from interface:SqmSelectableNodeVisit each of this selectable's direct sub-selectables - used to support JPA'sSelectionmodel (which is really a "selectable", just poorly named and poorly defined- Specified by:
visitSubSelectableNodesin interfaceSqmExpression<T>- Specified by:
visitSubSelectableNodesin interfaceSqmSelectableNode<T>- See Also:
-
getSqmType
- Specified by:
getSqmTypein interfaceSqmExpressible<T>
-