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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SqmFieldLiteral(Field field, JavaType<T> fieldJavaType, NodeBuilder nodeBuilder)SqmFieldLiteral(T value, JavaType<T> fieldJavaType, String fieldName, 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, isInstance, resolveExpressible
-
Methods inherited from interface org.hibernate.query.sqm.tree.expression.SqmExpression
castAs, visitSubSelectableNodes
-
Methods inherited from interface org.hibernate.query.sqm.tree.SqmNode
asLoggableText
-
Methods inherited from interface org.hibernate.query.sqm.tree.SqmTypedNode
getExpressible, getNodeJavaType
-
Methods inherited from interface org.hibernate.query.sqm.tree.SqmVisitableNode
toHqlString
-
-
-
-
Constructor Detail
-
SqmFieldLiteral
public SqmFieldLiteral(Field field, JavaType<T> fieldJavaType, NodeBuilder nodeBuilder)
-
SqmFieldLiteral
public SqmFieldLiteral(T value, JavaType<T> fieldJavaType, String fieldName, NodeBuilder nodeBuilder)
-
-
Method Detail
-
copy
public SqmFieldLiteral<T> copy(SqmCopyContext context)
- Specified by:
copyin interfaceSqmExpression<T>- Specified by:
copyin interfaceSqmNode- Specified by:
copyin interfaceSqmSelectableNode<T>- Specified by:
copyin interfaceSqmTypedNode<T>
-
getValue
public T getValue()
-
getFieldName
public String getFieldName()
-
getNodeBuilder
public NodeBuilder getNodeBuilder()
-
getNodeType
public SqmExpressible<T> getNodeType()
Description copied from interface:SqmExpressionThe expression's type. Can change as a result of calls toSqmExpression.applyInferableType(org.hibernate.query.sqm.SqmExpressible<?>)- Specified by:
getNodeTypein interfaceSqmExpression<T>- Specified by:
getNodeTypein interfaceSqmTypedNode<T>
-
applyInferableType
public void applyInferableType(SqmExpressible<?> type)
Description copied from interface:SqmExpressionUsed to apply type information based on the expression's usage within the query.- Specified by:
applyInferableTypein interfaceSqmExpression<T>
-
getExpressibleJavaType
public JavaType<T> getExpressibleJavaType()
Description copied from interface:SqmExpressibleThe Java type descriptor for this expressible- Specified by:
getExpressibleJavaTypein interfaceSqmExpressible<T>
-
getJavaTypeDescriptor
public JavaType<T> getJavaTypeDescriptor()
- Specified by:
getJavaTypeDescriptorin interfaceJpaTupleElement<T>
-
getBindableJavaType
public Class<T> getBindableJavaType()
Description copied from interface:BindableTypeThe expected Java type- Specified by:
getBindableJavaTypein interfaceBindableType<T>
-
accept
public <X> X accept(SemanticQueryWalker<X> walker)
Description copied from interface:SqmVisitableNodeAccept the walker per visitation- Specified by:
acceptin interfaceSqmVisitableNode
-
appendHqlString
public void appendHqlString(StringBuilder sb)
- Specified by:
appendHqlStringin interfaceSqmVisitableNode
-
nodeBuilder
public NodeBuilder nodeBuilder()
- Specified by:
nodeBuilderin interfaceSqmNode
-
isNull
public SqmPredicate isNull()
- Specified by:
isNullin interfaceExpression<T>- Specified by:
isNullin interfaceJpaExpression<T>- Specified by:
isNullin interfaceSqmExpression<T>
-
isNotNull
public SqmPredicate isNotNull()
- Specified by:
isNotNullin interfaceExpression<T>- Specified by:
isNotNullin interfaceJpaExpression<T>- Specified by:
isNotNullin interfaceSqmExpression<T>
-
in
public SqmPredicate in(Object... values)
- Specified by:
inin interfaceExpression<T>- Specified by:
inin interfaceJpaExpression<T>- Specified by:
inin interfaceSqmExpression<T>
-
in
public SqmPredicate in(Expression<?>... values)
- Specified by:
inin interfaceExpression<T>- Specified by:
inin interfaceJpaExpression<T>- Specified by:
inin interfaceSqmExpression<T>
-
in
public SqmPredicate in(Collection<?> values)
- Specified by:
inin interfaceExpression<T>- Specified by:
inin interfaceJpaExpression<T>- Specified by:
inin interfaceSqmExpression<T>
-
in
public SqmPredicate in(Expression<Collection<?>> values)
- Specified by:
inin interfaceExpression<T>- Specified by:
inin interfaceJpaExpression<T>- Specified by:
inin interfaceSqmExpression<T>
-
asLong
public SqmExpression<Long> asLong()
- Specified by:
asLongin interfaceJpaExpression<T>- Specified by:
asLongin interfaceSqmExpression<T>
-
asInteger
public SqmExpression<Integer> asInteger()
- Specified by:
asIntegerin interfaceJpaExpression<T>- Specified by:
asIntegerin interfaceSqmExpression<T>
-
asFloat
public SqmExpression<Float> asFloat()
- Specified by:
asFloatin interfaceJpaExpression<T>- Specified by:
asFloatin interfaceSqmExpression<T>
-
asDouble
public SqmExpression<Double> asDouble()
- Specified by:
asDoublein interfaceJpaExpression<T>- Specified by:
asDoublein interfaceSqmExpression<T>
-
asBigDecimal
public SqmExpression<BigDecimal> asBigDecimal()
- Specified by:
asBigDecimalin interfaceJpaExpression<T>- Specified by:
asBigDecimalin interfaceSqmExpression<T>
-
asBigInteger
public SqmExpression<BigInteger> asBigInteger()
- Specified by:
asBigIntegerin interfaceJpaExpression<T>- Specified by:
asBigIntegerin interfaceSqmExpression<T>
-
asString
public SqmExpression<String> asString()
- Specified by:
asStringin interfaceJpaExpression<T>- Specified by:
asStringin interfaceSqmExpression<T>
-
as
public <X> SqmExpression<X> as(Class<X> type)
- Specified by:
asin interfaceExpression<T>- Specified by:
asin interfaceJpaExpression<T>- Specified by:
asin interfaceSqmExpression<T>
-
resolvePathPart
public SemanticPathPart resolvePathPart(String name, boolean isTerminal, SqmCreationState creationState)
- Specified by:
resolvePathPartin interfaceSemanticPathPart
-
resolveIndexedAccess
public SqmPath<?> resolveIndexedAccess(SqmExpression<?> selector, boolean isTerminal, SqmCreationState creationState)
- Specified by:
resolveIndexedAccessin interfaceSemanticPathPart
-
isCompoundSelection
public boolean isCompoundSelection()
- Specified by:
isCompoundSelectionin interfaceSelection<T>
-
getSelectionItems
public List<? extends JpaSelection<?>> getSelectionItems()
- Specified by:
getSelectionItemsin interfaceJpaSelection<T>
-
alias
public JpaSelection<T> alias(String name)
-
getAlias
public String getAlias()
- Specified by:
getAliasin interfaceTupleElement<T>
-
getSqmType
public DomainType<T> getSqmType()
- Specified by:
getSqmTypein interfaceSqmExpressible<T>
-
-