Class SqmFieldLiteral<T>
java.lang.Object
org.hibernate.query.sqm.tree.expression.SqmFieldLiteral<T>
- All Implemented Interfaces:
Expression<T>
,Selection<T>
,TupleElement<T>
,Serializable
,BindableType<T>
,JpaCriteriaNode
,JpaExpression<T>
,JpaSelection<T>
,JpaTupleElement<T>
,SemanticPathPart
,SqmExpressible<T>
,SqmExpression<T>
,SqmSelectableNode<T>
,SqmExpressibleAccessor<T>
,SqmNode
,SqmTypedNode<T>
,SqmVisitableNode
public class SqmFieldLiteral<T>
extends Object
implements SqmExpression<T>, SqmExpressible<T>, SqmSelectableNode<T>, SemanticPathPart
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSqmFieldLiteral
(Field field, JavaType<T> fieldJavaType, NodeBuilder nodeBuilder) SqmFieldLiteral
(T value, JavaType<T> fieldJavaType, String fieldName, NodeBuilder nodeBuilder) -
Method Summary
Modifier and TypeMethodDescription<X> X
accept
(SemanticQueryWalker<X> walker) Accept the walker per visitationvoid
void
applyInferableType
(@Nullable SqmExpressible<?> type) Used to apply type information based on the expression's usage within the query.<X> SqmExpression<X>
asDouble()
asFloat()
asLong()
asString()
copy
(SqmCopyContext context) equalTo
(Expression<T> that) getAlias()
The expected Java typeThe Java type descriptor for this expressibleThe expression's type.List<? extends JpaSelection<?>>
getValue()
in
(Expression<?>... values) in
(Expression<Collection<?>> values) in
(Collection<?> values) boolean
isNull()
SqmPath<?>
resolveIndexedAccess
(SqmExpression<?> selector, boolean isTerminal, SqmCreationState creationState) resolvePathPart
(String name, boolean isTerminal, SqmCreationState creationState) 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.expression.SqmExpression
cast, castAs, visitSubSelectableNodes
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 Details
-
SqmFieldLiteral
-
SqmFieldLiteral
public SqmFieldLiteral(T value, JavaType<T> fieldJavaType, String fieldName, NodeBuilder nodeBuilder)
-
-
Method Details
-
copy
- Specified by:
copy
in interfaceSqmExpression<T>
- Specified by:
copy
in interfaceSqmNode
- Specified by:
copy
in interfaceSqmSelectableNode<T>
- Specified by:
copy
in interfaceSqmTypedNode<T>
-
getValue
-
getFieldName
-
getNodeBuilder
-
getNodeType
Description copied from interface:SqmExpression
The expression's type.Can change as a result of calls to
SqmExpression.applyInferableType(org.hibernate.query.sqm.SqmExpressible<?>)
- Specified by:
getNodeType
in interfaceSqmExpression<T>
- Specified by:
getNodeType
in interfaceSqmTypedNode<T>
-
applyInferableType
Description copied from interface:SqmExpression
Used to apply type information based on the expression's usage within the query.- Specified by:
applyInferableType
in interfaceSqmExpression<T>
-
getExpressibleJavaType
Description copied from interface:SqmExpressible
The Java type descriptor for this expressible- Specified by:
getExpressibleJavaType
in interfaceSqmExpressible<T>
-
getJavaTypeDescriptor
- Specified by:
getJavaTypeDescriptor
in interfaceJpaTupleElement<T>
-
getBindableJavaType
Description copied from interface:BindableType
The expected Java type- Specified by:
getBindableJavaType
in interfaceBindableType<T>
-
accept
Description copied from interface:SqmVisitableNode
Accept the walker per visitation- Specified by:
accept
in interfaceSqmVisitableNode
-
appendHqlString
- Specified by:
appendHqlString
in interfaceSqmVisitableNode
-
nodeBuilder
- Specified by:
nodeBuilder
in interfaceSqmNode
-
isNull
- Specified by:
isNull
in interfaceExpression<T>
- Specified by:
isNull
in interfaceJpaExpression<T>
- Specified by:
isNull
in interfaceSqmExpression<T>
-
equalTo
- Specified by:
equalTo
in interfaceJpaExpression<T>
- Specified by:
equalTo
in interfaceSqmExpression<T>
-
equalTo
- Specified by:
equalTo
in interfaceJpaExpression<T>
- Specified by:
equalTo
in interfaceSqmExpression<T>
-
isNotNull
- Specified by:
isNotNull
in interfaceExpression<T>
- Specified by:
isNotNull
in interfaceJpaExpression<T>
- Specified by:
isNotNull
in interfaceSqmExpression<T>
-
in
- Specified by:
in
in interfaceExpression<T>
- Specified by:
in
in interfaceJpaExpression<T>
- Specified by:
in
in interfaceSqmExpression<T>
-
in
- Specified by:
in
in interfaceExpression<T>
- Specified by:
in
in interfaceJpaExpression<T>
- Specified by:
in
in interfaceSqmExpression<T>
-
in
- Specified by:
in
in interfaceExpression<T>
- Specified by:
in
in interfaceJpaExpression<T>
- Specified by:
in
in interfaceSqmExpression<T>
-
in
- Specified by:
in
in interfaceExpression<T>
- Specified by:
in
in interfaceJpaExpression<T>
- Specified by:
in
in interfaceSqmExpression<T>
-
asLong
- Specified by:
asLong
in interfaceJpaExpression<T>
- Specified by:
asLong
in interfaceSqmExpression<T>
-
asInteger
- Specified by:
asInteger
in interfaceJpaExpression<T>
- Specified by:
asInteger
in interfaceSqmExpression<T>
-
asFloat
- Specified by:
asFloat
in interfaceJpaExpression<T>
- Specified by:
asFloat
in interfaceSqmExpression<T>
-
asDouble
- Specified by:
asDouble
in interfaceJpaExpression<T>
- Specified by:
asDouble
in interfaceSqmExpression<T>
-
asBigDecimal
- Specified by:
asBigDecimal
in interfaceJpaExpression<T>
- Specified by:
asBigDecimal
in interfaceSqmExpression<T>
-
asBigInteger
- Specified by:
asBigInteger
in interfaceJpaExpression<T>
- Specified by:
asBigInteger
in interfaceSqmExpression<T>
-
asString
- Specified by:
asString
in interfaceJpaExpression<T>
- Specified by:
asString
in interfaceSqmExpression<T>
-
as
- Specified by:
as
in interfaceExpression<T>
- Specified by:
as
in interfaceJpaExpression<T>
- Specified by:
as
in interfaceSqmExpression<T>
-
resolvePathPart
public SemanticPathPart resolvePathPart(String name, boolean isTerminal, SqmCreationState creationState) - Specified by:
resolvePathPart
in interfaceSemanticPathPart
-
resolveIndexedAccess
public SqmPath<?> resolveIndexedAccess(SqmExpression<?> selector, boolean isTerminal, SqmCreationState creationState) - Specified by:
resolveIndexedAccess
in interfaceSemanticPathPart
-
isCompoundSelection
public boolean isCompoundSelection()- Specified by:
isCompoundSelection
in interfaceSelection<T>
-
getSelectionItems
- Specified by:
getSelectionItems
in interfaceJpaSelection<T>
-
alias
-
getAlias
- Specified by:
getAlias
in interfaceTupleElement<T>
-
getSqmType
- Specified by:
getSqmType
in interfaceSqmExpressible<T>
-