Class SqmMapEntryReference<K,V>
java.lang.Object
org.hibernate.query.sqm.tree.domain.SqmMapEntryReference<K,V>
- All Implemented Interfaces:
Expression<Map.Entry<K,,V>> Selection<Map.Entry<K,,V>> TupleElement<Map.Entry<K,,V>> Serializable,BindableType<Map.Entry<K,,V>> JpaCriteriaNode,JpaSelection<Map.Entry<K,,V>> JpaTupleElement<Map.Entry<K,,V>> SqmExpressible<Map.Entry<K,,V>> SqmSelectableNode<Map.Entry<K,,V>> SqmExpressibleAccessor<Map.Entry<K,,V>> SqmNode,SqmTypedNode<Map.Entry<K,,V>> SqmVisitableNode
public class SqmMapEntryReference<K,V>
extends Object
implements SqmSelectableNode<Map.Entry<K,V>>, Expression<Map.Entry<K,V>>, SqmExpressible<Map.Entry<K,V>>
Represents the reference to a Map attribute's
Map.Entry entries
in a select clause- Author:
- Gunnar Morling, Steve Ebersole
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<X> Xaccept(SemanticQueryWalker<X> walker) Accept the walker per visitationAssigns an alias to the selection item.void<X> Expression<X>Perform a typecast upon the expression, returning a new expression object.copy(SqmCopyContext context) getAlias()Return the alias assigned to the tuple element or null, if no alias has been assigned.The expected Java typeThe Java type descriptor for this expressibleSqmPath<?>The Java type descriptor for this node.List<? extends JpaSelection<?>>in(Expression<?>... values) Create a predicate to test whether the expression is a member of the argument list.in(Expression<Collection<?>> values) Create a predicate to test whether the expression is a member of the collection.Create a predicate to test whether the expression is a member of the argument list.in(Collection<?> values) Create a predicate to test whether the expression is a member of the collection.booleanWhether the selection item is a compound selection.Create a predicate to test whether the expression is not null.isNull()Create a predicate to test whether the expression is null.voidvisitSubSelectableNodes(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 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.SqmExpressible
getRelationalJavaType, getTypeName, isInstance, resolveExpressibleMethods inherited from interface org.hibernate.query.sqm.tree.SqmNode
asLoggableTextMethods inherited from interface org.hibernate.query.sqm.tree.select.SqmSelectableNode
getTupleLengthMethods inherited from interface org.hibernate.query.sqm.tree.SqmTypedNode
getExpressibleMethods inherited from interface org.hibernate.query.sqm.tree.SqmVisitableNode
toHqlString
-
Constructor Details
-
SqmMapEntryReference
-
-
Method Details
-
copy
- Specified by:
copyin interfaceSqmNode- Specified by:
copyin interfaceSqmSelectableNode<K>- Specified by:
copyin interfaceSqmTypedNode<K>
-
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<K>- Returns:
- alias
-
getMapPath
-
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. -
getJavaTypeDescriptor
- Specified by:
getJavaTypeDescriptorin interfaceJpaTupleElement<K>
-
getNodeJavaType
Description copied from interface:SqmTypedNodeThe Java type descriptor for this node.- Specified by:
getNodeJavaTypein interfaceSqmExpressibleAccessor<K>- Specified by:
getNodeJavaTypein interfaceSqmTypedNode<K>
-
getExpressibleJavaType
Description copied from interface:SqmExpressibleThe Java type descriptor for this expressible- Specified by:
getExpressibleJavaTypein interfaceSqmExpressible<K>
-
accept
Description copied from interface:SqmVisitableNodeAccept the walker per visitation- Specified by:
acceptin interfaceSqmVisitableNode
-
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 interfaceSqmSelectableNode<K>- See Also:
-
isCompoundSelection
public boolean isCompoundSelection()Description copied from interface:SelectionWhether the selection item is a compound selection.- Specified by:
isCompoundSelectionin interfaceSelection<K>- Returns:
- boolean indicating whether the selection is a compound selection
-
getSelectionItems
- Specified by:
getSelectionItemsin interfaceJpaSelection<K>
-
getNodeType
- Specified by:
getNodeTypein interfaceSqmTypedNode<K>
-
getSqmType
- Specified by:
getSqmTypein interfaceSqmExpressible<K>
-
getBindableJavaType
Description copied from interface:BindableTypeThe expected Java type- Specified by:
getBindableJavaTypein interfaceBindableType<K>
-
nodeBuilder
- Specified by:
nodeBuilderin interfaceSqmNode
-
appendHqlString
- Specified by:
appendHqlStringin interfaceSqmVisitableNode
-
isNull
Description copied from interface:ExpressionCreate a predicate to test whether the expression is null.- Specified by:
isNullin interfaceExpression<K>- Returns:
- predicate testing whether the expression is null
-
isNotNull
Description copied from interface:ExpressionCreate a predicate to test whether the expression is not null.- Specified by:
isNotNullin interfaceExpression<K>- Returns:
- predicate testing whether the expression is not null
-
in
Description copied from interface:ExpressionCreate a predicate to test whether the expression is a member of the argument list.- Specified by:
inin interfaceExpression<K>- Parameters:
values- values to be tested against- Returns:
- predicate testing for membership
-
in
Description copied from interface:ExpressionCreate a predicate to test whether the expression is a member of the argument list.- Specified by:
inin interfaceExpression<K>- Parameters:
values- expressions to be tested against- Returns:
- predicate testing for membership
-
in
Description copied from interface:ExpressionCreate a predicate to test whether the expression is a member of the collection.- Specified by:
inin interfaceExpression<K>- Parameters:
values- collection of values to be tested against- Returns:
- predicate testing for membership
-
in
Description copied from interface:ExpressionCreate a predicate to test whether the expression is a member of the collection.- Specified by:
inin interfaceExpression<K>- Parameters:
values- expression corresponding to collection to be tested against- Returns:
- predicate testing for membership
-
as
Description copied from interface:ExpressionPerform a typecast upon the expression, returning a new expression object. This method does not cause type conversion: the runtime type is not changed. Warning: may result in a runtime failure.- Specified by:
asin interfaceExpression<K>- Parameters:
type- intended type of the expression- Returns:
- new expression of the given type
-