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'sMap.Entryentries in a select clause- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SqmMapEntryReference(SqmPath<?> mapPath, NodeBuilder nodeBuilder)
-
Method Summary
-
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, getJavaTypeName, isEnum
-
Methods inherited from interface org.hibernate.query.sqm.SqmExpressible
getRelationalJavaType, getTypeName, isInstance, resolveExpressible
-
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
-
Methods inherited from interface org.hibernate.query.sqm.tree.SqmVisitableNode
toHqlString
-
-
-
-
Constructor Detail
-
SqmMapEntryReference
public SqmMapEntryReference(SqmPath<?> mapPath, NodeBuilder nodeBuilder)
-
-
Method Detail
-
copy
public SqmMapEntryReference<K,V> copy(SqmCopyContext context)
- Specified by:
copyin interfaceSqmNode- Specified by:
copyin interfaceSqmSelectableNode<K>- Specified by:
copyin interfaceSqmTypedNode<K>
-
getAlias
public String getAlias()
- Specified by:
getAliasin interfaceTupleElement<K>
-
getMapPath
public SqmPath<?> getMapPath()
-
alias
public JpaSelection<Map.Entry<K,V>> alias(String name)
-
getJavaTypeDescriptor
public JavaType<Map.Entry<K,V>> getJavaTypeDescriptor()
- Specified by:
getJavaTypeDescriptorin interfaceJpaTupleElement<K>
-
getNodeJavaType
public JavaType<Map.Entry<K,V>> getNodeJavaType()
Description copied from interface:SqmTypedNodeThe Java type descriptor for this node.- Specified by:
getNodeJavaTypein interfaceSqmExpressibleAccessor<K>- Specified by:
getNodeJavaTypein interfaceSqmTypedNode<K>
-
getExpressibleJavaType
public JavaType<Map.Entry<K,V>> getExpressibleJavaType()
Description copied from interface:SqmExpressibleThe Java type descriptor for this expressible- Specified by:
getExpressibleJavaTypein interfaceSqmExpressible<K>
-
accept
public <X> X accept(SemanticQueryWalker<X> walker)
Description copied from interface:SqmVisitableNodeAccept the walker per visitation- Specified by:
acceptin interfaceSqmVisitableNode
-
visitSubSelectableNodes
public void visitSubSelectableNodes(Consumer<SqmSelectableNode<?>> jpaSelectionConsumer)
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:
JpaSelection.getSelectionItems(),Selection.getCompoundSelectionItems()
-
isCompoundSelection
public boolean isCompoundSelection()
- Specified by:
isCompoundSelectionin interfaceSelection<K>
-
getSelectionItems
public List<? extends JpaSelection<?>> getSelectionItems()
- Specified by:
getSelectionItemsin interfaceJpaSelection<K>
-
getNodeType
public SqmExpressible<Map.Entry<K,V>> getNodeType()
- Specified by:
getNodeTypein interfaceSqmTypedNode<K>
-
getSqmType
public DomainType<Map.Entry<K,V>> getSqmType()
- Specified by:
getSqmTypein interfaceSqmExpressible<K>
-
getBindableJavaType
public Class<Map.Entry<K,V>> getBindableJavaType()
Description copied from interface:BindableTypeThe expected Java type- Specified by:
getBindableJavaTypein interfaceBindableType<K>
-
nodeBuilder
public NodeBuilder nodeBuilder()
- Specified by:
nodeBuilderin interfaceSqmNode
-
appendHqlString
public void appendHqlString(StringBuilder sb)
- Specified by:
appendHqlStringin interfaceSqmVisitableNode
-
isNull
public Predicate isNull()
- Specified by:
isNullin interfaceExpression<K>
-
isNotNull
public Predicate isNotNull()
- Specified by:
isNotNullin interfaceExpression<K>
-
in
public Predicate in(Object... values)
- Specified by:
inin interfaceExpression<K>
-
in
public Predicate in(Expression<?>... values)
- Specified by:
inin interfaceExpression<K>
-
in
public Predicate in(Collection<?> values)
- Specified by:
inin interfaceExpression<K>
-
in
public Predicate in(Expression<Collection<?>> values)
- Specified by:
inin interfaceExpression<K>
-
as
public <X> Expression<X> as(Class<X> type)
- Specified by:
asin interfaceExpression<K>
-
-