Package org.hibernate.query.hql.internal
Class FullyQualifiedReflectivePathTerminal
java.lang.Object
org.hibernate.query.hql.internal.FullyQualifiedReflectivePath
org.hibernate.query.hql.internal.FullyQualifiedReflectivePathTerminal
- All Implemented Interfaces:
Expression,Selection,TupleElement,Serializable,JpaCriteriaNode,JpaExpression,JpaSelection,JpaTupleElement,FullyQualifiedReflectivePathSource,SemanticPathPart,SqmExpression,SqmSelectableNode,SqmExpressibleAccessor,SqmNode,SqmTypedNode,SqmVisitableNode,DotIdentifierSequence
public class FullyQualifiedReflectivePathTerminal
extends FullyQualifiedReflectivePath
implements SqmExpression
- Author:
- Steve Ebersole
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionFullyQualifiedReflectivePathTerminal(FullyQualifiedReflectivePathSource pathSource, String subPathName, SqmCreationState creationState) -
Method Summary
Modifier and TypeMethodDescriptionaccept(SemanticQueryWalker walker) Accept the walker per visitationJpaSelection<?>Assigns an alias to the selection item.voidvoidapplyInferableType(@Nullable SqmExpressible type) Used to apply type information based on the expression's usage within the query.Perform a typecast upon the expression, returning a new expression object.asDouble()asFloat()asLong()asString()copy(SqmCopyContext context) equalTo(Expression that) getAlias()Return the alias assigned to the tuple element or null, if no alias has been assigned.JavaType<?>@Nullable SqmExpressible<?>The expression's type.List<? extends JpaSelection<?>>in(Expression values) Create a predicate to test whether the expression is a member of the collection.in(Expression[] values) Create a predicate to test whether the expression is a member of the argument list.Create a predicate to test whether the expression is a member of the argument list.in(Collection values) Create a predicate to test whether the expression is a member of the collection.booleanWhether the selection item is a compound selection.Create a predicate to test whether the expression is not null.isNull()Create a predicate to test whether the expression is null.Methods inherited from class org.hibernate.query.hql.internal.FullyQualifiedReflectivePath
append, getFullPath, getLocalName, getParent, resolveIndexedAccess, resolvePathPartMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.spi.DotIdentifierSequence
getParts, isRootMethods inherited from interface org.hibernate.query.criteria.JpaSelection
getCompoundSelectionItemsMethods inherited from interface org.hibernate.query.criteria.JpaTupleElement
getJavaType, getJavaTypeName, isEnumMethods inherited from interface org.hibernate.query.sqm.tree.expression.SqmExpression
cast, castAs, visitSubSelectableNodesMethods inherited from interface org.hibernate.query.sqm.tree.SqmNode
asLoggableTextMethods inherited from interface org.hibernate.query.sqm.tree.select.SqmSelectableNode
getTupleLengthMethods inherited from interface org.hibernate.query.sqm.tree.SqmTypedNode
getExpressible, getNodeJavaTypeMethods inherited from interface org.hibernate.query.sqm.tree.SqmVisitableNode
toHqlString
-
Constructor Details
-
FullyQualifiedReflectivePathTerminal
public FullyQualifiedReflectivePathTerminal(FullyQualifiedReflectivePathSource pathSource, String subPathName, SqmCreationState creationState)
-
-
Method Details
-
copy
- Specified by:
copyin interfaceSqmExpression- Specified by:
copyin interfaceSqmNode- Specified by:
copyin interfaceSqmSelectableNode- Specified by:
copyin interfaceSqmTypedNode
-
getNodeType
Description copied from interface:SqmExpressionThe expression's type.Can change as a result of calls to
SqmExpression.applyInferableType(org.hibernate.query.sqm.SqmExpressible<?>)- Specified by:
getNodeTypein interfaceSqmExpression- Specified by:
getNodeTypein interfaceSqmTypedNode
-
accept
Description copied from interface:SqmVisitableNodeAccept the walker per visitation- Specified by:
acceptin interfaceSqmVisitableNode
-
getJavaTypeDescriptor
- Specified by:
getJavaTypeDescriptorin interfaceJpaTupleElement
-
applyInferableType
Description copied from interface:SqmExpressionUsed to apply type information based on the expression's usage within the query.- Specified by:
applyInferableTypein interfaceSqmExpression
-
appendHqlString
- Specified by:
appendHqlStringin interfaceSqmVisitableNode
-
asLong
- Specified by:
asLongin interfaceJpaExpression- Specified by:
asLongin interfaceSqmExpression
-
asInteger
- Specified by:
asIntegerin interfaceJpaExpression- Specified by:
asIntegerin interfaceSqmExpression
-
asFloat
- Specified by:
asFloatin interfaceJpaExpression- Specified by:
asFloatin interfaceSqmExpression
-
asDouble
- Specified by:
asDoublein interfaceJpaExpression- Specified by:
asDoublein interfaceSqmExpression
-
asBigDecimal
- Specified by:
asBigDecimalin interfaceJpaExpression- Specified by:
asBigDecimalin interfaceSqmExpression
-
asBigInteger
- Specified by:
asBigIntegerin interfaceJpaExpression- Specified by:
asBigIntegerin interfaceSqmExpression
-
asString
- Specified by:
asStringin interfaceJpaExpression- Specified by:
asStringin interfaceSqmExpression
-
as
Description copied from interface:ExpressionPerform 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.- Specified by:
asin interfaceExpression- Specified by:
asin interfaceJpaExpression- Specified by:
asin interfaceSqmExpression- Parameters:
type- intended type of the expression- Returns:
- new expression of the given type
-
isNull
Description copied from interface:ExpressionCreate a predicate to test whether the expression is null.- Specified by:
isNullin interfaceExpression- Specified by:
isNullin interfaceJpaExpression- Specified by:
isNullin interfaceSqmExpression- Returns:
- predicate testing whether the expression is null
-
isNotNull
Description copied from interface:ExpressionCreate a predicate to test whether the expression is not null.- Specified by:
isNotNullin interfaceExpression- Specified by:
isNotNullin interfaceJpaExpression- Specified by:
isNotNullin interfaceSqmExpression- Returns:
- predicate testing whether the expression is not null
-
equalTo
- Specified by:
equalToin interfaceJpaExpression- Specified by:
equalToin interfaceSqmExpression
-
equalTo
- Specified by:
equalToin interfaceJpaExpression- Specified by:
equalToin interfaceSqmExpression
-
in
Description copied from interface:ExpressionCreate a predicate to test whether the expression is a member of the argument list.- Specified by:
inin interfaceExpression- Specified by:
inin interfaceJpaExpression- Specified by:
inin interfaceSqmExpression- Parameters:
values- values to be tested against- Returns:
- predicate testing for membership
-
in
Description copied from interface:ExpressionCreate a predicate to test whether the expression is a member of the argument list.- Specified by:
inin interfaceExpression- Specified by:
inin interfaceJpaExpression- Specified by:
inin interfaceSqmExpression- Parameters:
values- expressions to be tested against- Returns:
- predicate testing for membership
-
in
Description copied from interface:ExpressionCreate a predicate to test whether the expression is a member of the collection.- Specified by:
inin interfaceExpression- Specified by:
inin interfaceJpaExpression- Specified by:
inin interfaceSqmExpression- Parameters:
values- collection of values to be tested against- Returns:
- predicate testing for membership
-
in
Description copied from interface:ExpressionCreate a predicate to test whether the expression is a member of the collection.- Specified by:
inin interfaceExpression- Specified by:
inin interfaceJpaExpression- Specified by:
inin interfaceSqmExpression- Parameters:
values- expression corresponding to collection to be tested against- Returns:
- predicate testing for membership
-
getSelectionItems
- Specified by:
getSelectionItemsin interfaceJpaSelection
-
alias
Description copied from interface:SelectionAssigns an alias to the selection item. Once assigned, an alias cannot be changed or reassigned. Returns the same selection item.- Specified by:
aliasin interfaceJpaSelection- Specified by:
aliasin interfaceSelection- Parameters:
name- alias- Returns:
- selection item
-
isCompoundSelection
public boolean isCompoundSelection()Description copied from interface:SelectionWhether the selection item is a compound selection.- Specified by:
isCompoundSelectionin interfaceSelection- Returns:
- boolean indicating whether the selection is a compound selection
-
getAlias
Description copied from interface:TupleElementReturn the alias assigned to the tuple element or null, if no alias has been assigned.- Specified by:
getAliasin interfaceTupleElement- Returns:
- alias
-
nodeBuilder
- Specified by:
nodeBuilderin interfaceSqmNode
-