Top Fields Constructors Methods
org.hibernate.query.hql.internal

public Class FullyQualifiedReflectivePathTerminal

extends FullyQualifiedReflectivePath
implements SqmExpression
Class Inheritance
All Implemented Interfaces
org.hibernate.query.sqm.tree.expression.SqmExpression, org.hibernate.query.criteria.JpaExpression, jakarta.persistence.criteria.Expression, jakarta.persistence.criteria.Selection, jakarta.persistence.TupleElement, org.hibernate.query.criteria.JpaSelection, org.hibernate.query.criteria.JpaTupleElement, org.hibernate.query.criteria.JpaCriteriaNode, java.io.Serializable, org.hibernate.query.sqm.tree.select.SqmSelectableNode, org.hibernate.query.sqm.tree.SqmTypedNode, org.hibernate.query.sqm.tree.SqmVisitableNode, org.hibernate.query.sqm.tree.SqmNode, org.hibernate.query.sqm.tree.SqmExpressibleAccessor
Imports
java.lang.reflect.Field, java.math.BigDecimal, .BigInteger, java.util.Collection, .List, java.util.function.Function, org.hibernate.boot.registry.classloading.spi.ClassLoaderService, .ClassLoadingException, org.hibernate.metamodel.model.domain.EntityDomainType, org.hibernate.query.criteria.JpaSelection, org.hibernate.query.hql.HqlInterpretationException, org.hibernate.query.hql.spi.SqmCreationState, org.hibernate.query.sqm.NodeBuilder, .SqmExpressible, .SemanticQueryWalker, org.hibernate.query.sqm.spi.SqmCreationContext, org.hibernate.query.sqm.tree.SqmCopyContext, org.hibernate.query.sqm.tree.expression.SqmEnumLiteral, .SqmExpression, .SqmFieldLiteral, .SqmLiteralEntityType, org.hibernate.query.sqm.tree.predicate.SqmPredicate, org.hibernate.type.descriptor.java.EnumJavaType, .JavaType, jakarta.persistence.criteria.Expression, org.hibernate.type.descriptor.java.spi.JavaTypeRegistry

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final SqmCreationState
private final SqmExpressible<J>
private final Function<SemanticQueryWalker<T>, ?>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
accept(SemanticQueryWalker<T> walker)

Implements org.hibernate.query.sqm.tree.SqmVisitableNode.accept.

Accept the walker per visitation
public JpaSelection<T>
public void
public void
applyInferableType(SqmExpressible<J> type)

Implements org.hibernate.query.sqm.tree.expression.SqmExpression.applyInferableType.

Used to apply type information based on the expression's usage within the query.
public SqmExpression<T>
as(Class<T>
intended type of the expression
type
)

Implements org.hibernate.query.sqm.tree.expression.SqmExpression.as.

Perform a typecast upon the expression, returning a new expression object.
public SqmExpression<BigDecimal>
public SqmExpression<BigInteger>
public SqmExpression<Double>
public SqmExpression<Float>
public SqmExpression<Integer>
public SqmExpression<Long>
public SqmExpression<String>
public FullyQualifiedReflectivePathTerminal
private SqmExpression<T>
public SqmPredicate
public SqmPredicate
public String
getAlias()

Implements jakarta.persistence.TupleElement.getAlias.

Return the alias assigned to the tuple element or null, if no alias has been assigned.
public JavaType<T>
public SqmExpressible<J>
public List<? extends JpaSelection<?>>
public SqmPredicate
in(Object...
values to be tested against
values
)

Implements org.hibernate.query.sqm.tree.expression.SqmExpression.in.

Create a predicate to test whether the expression is a member of the argument list.
public SqmPredicate
in(Expression<T>[]
expressions to be tested against
values
)

Implements org.hibernate.query.sqm.tree.expression.SqmExpression.in.

Create a predicate to test whether the expression is a member of the argument list.
public SqmPredicate
in(Collection<E>
collection of values to be tested against
values
)

Implements org.hibernate.query.sqm.tree.expression.SqmExpression.in.

Create a predicate to test whether the expression is a member of the collection.
public SqmPredicate
in(Expression<T>
expression corresponding to collection to be tested against
values
)

Implements org.hibernate.query.sqm.tree.expression.SqmExpression.in.

Create a predicate to test whether the expression is a member of the collection.
public boolean
isCompoundSelection()

Implements jakarta.persistence.criteria.Selection.isCompoundSelection.

Whether the selection item is a compound selection.
public SqmPredicate
isNotNull()

Implements org.hibernate.query.sqm.tree.expression.SqmExpression.isNotNull.

Create a predicate to test whether the expression is not null.
public SqmPredicate
isNull()

Implements org.hibernate.query.sqm.tree.expression.SqmExpression.isNull.

Create a predicate to test whether the expression is null.
private JavaTypeRegistry
public NodeBuilder
private Function<SemanticQueryWalker<T>, ?>
Inherited from org.hibernate.query.hql.internal.FullyQualifiedReflectivePath:
appendgetFullPathgetLocalNamegetParentresolveIndexedAccessresolvePathPart

Field Detail

creationStateback to summary
private final SqmCreationState creationState
expressibleTypeback to summary
private final SqmExpressible<J> expressibleType
handlerback to summary
private final Function<SemanticQueryWalker<T>, ?> handler

Constructor Detail

FullyQualifiedReflectivePathTerminalback to summary
public FullyQualifiedReflectivePathTerminal(FullyQualifiedReflectivePathSource pathSource, String subPathName, SqmCreationState creationState)

Method Detail

acceptback to summary
public Object accept(SemanticQueryWalker<T> walker)

Implements org.hibernate.query.sqm.tree.SqmVisitableNode.accept.

Doc from org.hibernate.query.sqm.tree.SqmVisitableNode.accept.

Accept the walker per visitation

Annotations
@Override
aliasback to summary
public JpaSelection<T> alias(String name)

Implements org.hibernate.query.criteria.JpaSelection.alias, jakarta.persistence.criteria.Selection.alias.

Doc from jakarta.persistence.criteria.Selection.alias.

Assigns an alias to the selection item. Once assigned, an alias cannot be changed or reassigned. Returns the same selection item.

Parameters
name:String

alias

Returns:JpaSelection<T>

selection item

Annotations
@Override
appendHqlStringback to summary
public void appendHqlString(StringBuilder sb)

Implements org.hibernate.query.sqm.tree.SqmVisitableNode.appendHqlString.

Annotations
@Override
applyInferableTypeback to summary
public void applyInferableType(SqmExpressible<J> type)

Implements org.hibernate.query.sqm.tree.expression.SqmExpression.applyInferableType.

Doc from org.hibernate.query.sqm.tree.expression.SqmExpression.applyInferableType.

Used to apply type information based on the expression's usage within the query.

Annotations
@Override
asback to summary
public SqmExpression<T> as(Class<T> type)

Implements org.hibernate.query.sqm.tree.expression.SqmExpression.as.

Doc from jakarta.persistence.criteria.Expression.as.

Perform 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.

Parameters
type:Class<T>

intended type of the expression

Returns:SqmExpression<T>

new expression of the given type

Annotations
@Override
asBigDecimalback to summary
public SqmExpression<BigDecimal> asBigDecimal()

Implements org.hibernate.query.sqm.tree.expression.SqmExpression.asBigDecimal.

Annotations
@Override
asBigIntegerback to summary
public SqmExpression<BigInteger> asBigInteger()

Implements org.hibernate.query.sqm.tree.expression.SqmExpression.asBigInteger.

Annotations
@Override
asDoubleback to summary
public SqmExpression<Double> asDouble()

Implements org.hibernate.query.sqm.tree.expression.SqmExpression.asDouble.

Annotations
@Override
asFloatback to summary
public SqmExpression<Float> asFloat()

Implements org.hibernate.query.sqm.tree.expression.SqmExpression.asFloat.

Annotations
@Override
asIntegerback to summary
public SqmExpression<Integer> asInteger()

Implements org.hibernate.query.sqm.tree.expression.SqmExpression.asInteger.

Annotations
@Override
asLongback to summary
public SqmExpression<Long> asLong()

Implements org.hibernate.query.sqm.tree.expression.SqmExpression.asLong.

Annotations
@Override
asStringback to summary
public SqmExpression<String> asString()

Implements org.hibernate.query.sqm.tree.expression.SqmExpression.asString.

Annotations
@Override
copyback to summary
public FullyQualifiedReflectivePathTerminal copy(SqmCopyContext context)

Implements org.hibernate.query.sqm.tree.expression.SqmExpression.copy.

Annotations
@Override
createEnumOrFieldLiteralback to summary
private SqmExpression<T> createEnumOrFieldLiteral(Class<T> namedClass) throws NoSuchFieldException
Annotations
@SuppressWarnings:rawtypes, unchecked
equalToback to summary
public SqmPredicate equalTo(Expression<T> that)

Implements org.hibernate.query.sqm.tree.expression.SqmExpression.equalTo, org.hibernate.query.sqm.tree.expression.SqmExpression.equalTo.

Annotations
@Override
equalToback to summary
public SqmPredicate equalTo(Object that)

Implements org.hibernate.query.sqm.tree.expression.SqmExpression.equalTo.

Annotations
@Override
getAliasback to summary
public String getAlias()

Implements jakarta.persistence.TupleElement.getAlias.

Doc from jakarta.persistence.TupleElement.getAlias.

Return the alias assigned to the tuple element or null, if no alias has been assigned.

Returns:String

alias

Annotations
@Override
getJavaTypeDescriptorback to summary
public JavaType<T> getJavaTypeDescriptor()

Implements org.hibernate.query.criteria.JpaTupleElement.getJavaTypeDescriptor.

Annotations
@Override
getNodeTypeback to summary
public SqmExpressible<J> getNodeType()

Implements org.hibernate.query.sqm.tree.expression.SqmExpression.getNodeType.

Doc from org.hibernate.query.sqm.tree.expression.SqmExpression.getNodeType.

The expression's type.

Can change as a result of calls to applyInferableType

Annotations
@Override
getSelectionItemsback to summary
public List<? extends JpaSelection<?>> getSelectionItems()

Implements org.hibernate.query.criteria.JpaSelection.getSelectionItems.

Annotations
@Override
inback to summary
public SqmPredicate in(Object... values)

Implements org.hibernate.query.sqm.tree.expression.SqmExpression.in.

Doc from jakarta.persistence.criteria.Expression.in.

Create a predicate to test whether the expression is a member of the argument list.

Parameters
values:Object[]

values to be tested against

Returns:SqmPredicate

predicate testing for membership

Annotations
@Override
inback to summary
public SqmPredicate in(Expression<T>[] values)

Implements org.hibernate.query.sqm.tree.expression.SqmExpression.in.

Doc from jakarta.persistence.criteria.Expression.in.

Create a predicate to test whether the expression is a member of the argument list.

Parameters
values:Expression<T>[]

expressions to be tested against

Returns:SqmPredicate

predicate testing for membership

Annotations
@Override
inback to summary
public SqmPredicate in(Collection<E> values)

Implements org.hibernate.query.sqm.tree.expression.SqmExpression.in.

Doc from jakarta.persistence.criteria.Expression.in.

Create a predicate to test whether the expression is a member of the collection.

Parameters
values:Collection<E>

collection of values to be tested against

Returns:SqmPredicate

predicate testing for membership

Annotations
@Override
inback to summary
public SqmPredicate in(Expression<T> values)

Implements org.hibernate.query.sqm.tree.expression.SqmExpression.in.

Doc from jakarta.persistence.criteria.Expression.in.

Create a predicate to test whether the expression is a member of the collection.

Parameters
values:Expression<T>

expression corresponding to collection to be tested against

Returns:SqmPredicate

predicate testing for membership

Annotations
@Override
isCompoundSelectionback to summary
public boolean isCompoundSelection()

Implements jakarta.persistence.criteria.Selection.isCompoundSelection.

Doc from jakarta.persistence.criteria.Selection.isCompoundSelection.

Whether the selection item is a compound selection.

Returns:boolean

boolean indicating whether the selection is a compound selection

Annotations
@Override
isNotNullback to summary
public SqmPredicate isNotNull()

Implements org.hibernate.query.sqm.tree.expression.SqmExpression.isNotNull.

Doc from jakarta.persistence.criteria.Expression.isNotNull.

Create a predicate to test whether the expression is not null.

Returns:SqmPredicate

predicate testing whether the expression is not null

Annotations
@Override
isNullback to summary
public SqmPredicate isNull()

Implements org.hibernate.query.sqm.tree.expression.SqmExpression.isNull.

Doc from jakarta.persistence.criteria.Expression.isNull.

Create a predicate to test whether the expression is null.

Returns:SqmPredicate

predicate testing whether the expression is null

Annotations
@Override
javaTypeRegistryback to summary
private JavaTypeRegistry javaTypeRegistry()
nodeBuilderback to summary
public NodeBuilder nodeBuilder()

Implements org.hibernate.query.sqm.tree.SqmNode.nodeBuilder.

Annotations
@Override
resolveTerminalSemanticback to summary
private Function<SemanticQueryWalker<T>, ?> resolveTerminalSemantic()
Annotations
@SuppressWarnings:unchecked