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.Entry
entries 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
-
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:
copy
in interfaceSqmNode
- Specified by:
copy
in interfaceSqmSelectableNode<K>
- Specified by:
copy
in interfaceSqmTypedNode<K>
-
getAlias
public String getAlias()
- Specified by:
getAlias
in 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:
getJavaTypeDescriptor
in interfaceJpaTupleElement<K>
-
getNodeJavaType
public JavaType<Map.Entry<K,V>> getNodeJavaType()
Description copied from interface:SqmTypedNode
The Java type descriptor for this node.- Specified by:
getNodeJavaType
in interfaceSqmExpressibleAccessor<K>
- Specified by:
getNodeJavaType
in interfaceSqmTypedNode<K>
-
getExpressibleJavaType
public JavaType<Map.Entry<K,V>> getExpressibleJavaType()
Description copied from interface:SqmExpressible
The Java type descriptor for this expressible- Specified by:
getExpressibleJavaType
in interfaceSqmExpressible<K>
-
accept
public <X> X accept(SemanticQueryWalker<X> walker)
Description copied from interface:SqmVisitableNode
Accept the walker per visitation- Specified by:
accept
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 interfaceSqmSelectableNode<K>
- See Also:
JpaSelection.getSelectionItems()
,Selection.getCompoundSelectionItems()
-
isCompoundSelection
public boolean isCompoundSelection()
- Specified by:
isCompoundSelection
in interfaceSelection<K>
-
getSelectionItems
public List<? extends JpaSelection<?>> getSelectionItems()
- Specified by:
getSelectionItems
in interfaceJpaSelection<K>
-
getNodeType
public SqmExpressible<Map.Entry<K,V>> getNodeType()
- Specified by:
getNodeType
in interfaceSqmTypedNode<K>
-
getSqmType
public DomainType<Map.Entry<K,V>> getSqmType()
- Specified by:
getSqmType
in interfaceSqmExpressible<K>
-
getBindableJavaType
public Class<Map.Entry<K,V>> getBindableJavaType()
Description copied from interface:BindableType
The expected Java type- Specified by:
getBindableJavaType
in interfaceBindableType<K>
-
nodeBuilder
public NodeBuilder nodeBuilder()
- Specified by:
nodeBuilder
in interfaceSqmNode
-
appendHqlString
public void appendHqlString(StringBuilder sb)
- Specified by:
appendHqlString
in interfaceSqmVisitableNode
-
isNull
public Predicate isNull()
- Specified by:
isNull
in interfaceExpression<K>
-
isNotNull
public Predicate isNotNull()
- Specified by:
isNotNull
in interfaceExpression<K>
-
in
public Predicate in(Object... values)
- Specified by:
in
in interfaceExpression<K>
-
in
public Predicate in(Expression<?>... values)
- Specified by:
in
in interfaceExpression<K>
-
in
public Predicate in(Collection<?> values)
- Specified by:
in
in interfaceExpression<K>
-
in
public Predicate in(Expression<Collection<?>> values)
- Specified by:
in
in interfaceExpression<K>
-
as
public <X> Expression<X> as(Class<X> type)
- Specified by:
as
in interfaceExpression<K>
-
-