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 TypeMethodDescriptionvoidconsumeIdentifier(String identifier, boolean isBase, boolean isTerminal) Responsible for consuming each part of the path.voidconsumeTreat(String importableName, boolean isTerminal) Responsible for consuming each part of the path.protected SemanticPathPartGet the currently consumed part.protected SqmCreationStateprotected voidreset()
-
Constructor Details
-
BasicDotIdentifierConsumer
-
BasicDotIdentifierConsumer
-
-
Method Details
-
getCreationState
-
getConsumedPart
Description copied from interface:DotIdentifierConsumerGet 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:
getConsumedPartin interfaceDotIdentifierConsumer
-
consumeIdentifier
Description copied from interface:DotIdentifierConsumerResponsible for consuming each part of the path. Called sequentially for each part.- Specified by:
consumeIdentifierin 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:DotIdentifierConsumerResponsible for consuming each part of the path. Called sequentially for each part.- Specified by:
consumeTreatin interfaceDotIdentifierConsumer- Parameters:
importableName- The treat target entity nameisTerminal- Is this the terminus of the path (last token)?
-
reset
protected void reset() -
createBasePart
-