Package org.hibernate.query.hql.internal
Class BasicDotIdentifierConsumer
java.lang.Object
org.hibernate.query.hql.internal.BasicDotIdentifierConsumer
- All Implemented Interfaces:
DotIdentifierConsumer
- Direct Known Subclasses:
QualifiedJoinPredicatePathConsumer
A
DotIdentifierConsumer
used to interpret paths outside any
specific context. This is the handler used at the root of the handler
stack.
It can recognize any number of types of paths:
- fully-qualified class names (entity or otherwise)
- static field references, e.g.
MyClass.SOME_FIELD
- enum value references, e.g.
Sex.MALE
- navigable-path
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBasicDotIdentifierConsumer
(SemanticPathPart initialState, SqmCreationState creationState) BasicDotIdentifierConsumer
(SqmCreationState creationState) -
Method Summary
Modifier and TypeMethodDescriptionvoid
consumeIdentifier
(String identifier, boolean isBase, boolean isTerminal) Responsible for consuming each part of the path.void
consumeTreat
(String importableName, boolean isTerminal) Responsible for consuming each part of the path.protected SemanticPathPart
Get the currently consumed part.protected SqmCreationState
protected void
reset()
-
Constructor Details
-
BasicDotIdentifierConsumer
-
BasicDotIdentifierConsumer
-
-
Method Details
-
getCreationState
-
getConsumedPart
Description copied from interface:DotIdentifierConsumer
Get the currently consumed part. Generally called after the whole path has been processed at which point this will return the final outcome of the consumption- Specified by:
getConsumedPart
in interfaceDotIdentifierConsumer
-
consumeIdentifier
Description copied from interface:DotIdentifierConsumer
Responsible for consuming each part of the path. Called sequentially for each part.- Specified by:
consumeIdentifier
in interfaceDotIdentifierConsumer
- Parameters:
identifier
- The current part of the path being processedisBase
- Is this the base of the path (the first token)?isTerminal
- Is this the terminus of the path (last token)?
-
consumeTreat
Description copied from interface:DotIdentifierConsumer
Responsible for consuming each part of the path. Called sequentially for each part.- Specified by:
consumeTreat
in interfaceDotIdentifierConsumer
- Parameters:
importableName
- The treat target entity nameisTerminal
- Is this the terminus of the path (last token)?
-
reset
protected void reset() -
createBasePart
-