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
public class BasicDotIdentifierConsumer extends Object implements DotIdentifierConsumer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
BasicDotIdentifierConsumer.BaseLocalSequencePart
-
Constructor Summary
Constructors Constructor Description BasicDotIdentifierConsumer(SemanticPathPart initialState, SqmCreationState creationState)
BasicDotIdentifierConsumer(SqmCreationState creationState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
consumeIdentifier(String identifier, boolean isBase, boolean isTerminal)
Responsible for consuming each part of the path.void
consumeTreat(String entityName, boolean isTerminal)
Responsible for consuming each part of the path.protected SemanticPathPart
createBasePart()
SemanticPathPart
getConsumedPart()
Get the currently consumed part.protected SqmCreationState
getCreationState()
protected void
reset()
-
-
-
Constructor Detail
-
BasicDotIdentifierConsumer
public BasicDotIdentifierConsumer(SqmCreationState creationState)
-
BasicDotIdentifierConsumer
public BasicDotIdentifierConsumer(SemanticPathPart initialState, SqmCreationState creationState)
-
-
Method Detail
-
getCreationState
protected SqmCreationState getCreationState()
-
getConsumedPart
public SemanticPathPart 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
public void consumeIdentifier(String identifier, boolean isBase, boolean isTerminal)
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
public void consumeTreat(String entityName, boolean isTerminal)
Description copied from interface:DotIdentifierConsumer
Responsible for consuming each part of the path. Called sequentially for each part.- Specified by:
consumeTreat
in interfaceDotIdentifierConsumer
- Parameters:
entityName
- The treat target entity nameisTerminal
- Is this the terminus of the path (last token)?
-
reset
protected void reset()
-
createBasePart
protected SemanticPathPart createBasePart()
-
-