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

public Class BasicDotIdentifierConsumer

extends Object
implements DotIdentifierConsumer
Class Inheritance
All Implemented Interfaces
org.hibernate.query.hql.spi.DotIdentifierConsumer
Known Direct Subclasses
org.hibernate.query.hql.internal.QualifiedJoinPredicatePathConsumer
Imports
java.lang.reflect.Field, org.hibernate.boot.registry.classloading.spi.ClassLoaderService, org.hibernate.metamodel.model.domain.EntityDomainType, org.hibernate.query.SemanticException, org.hibernate.query.hql.HqlLogging, org.hibernate.query.hql.spi.DotIdentifierConsumer, .SemanticPathPart, .SqmCreationState, .SqmPathRegistry, org.hibernate.query.sqm.function.SqmFunctionDescriptor, org.hibernate.query.sqm.spi.SqmCreationContext, org.hibernate.query.sqm.tree.domain.SqmPath, org.hibernate.query.sqm.tree.expression.SqmEnumLiteral, .SqmExpression, .SqmFieldLiteral, .SqmLiteralEntityType, org.hibernate.query.sqm.tree.from.SqmFrom, org.hibernate.type.descriptor.java.EnumJavaType, .JavaType, org.hibernate.type.descriptor.java.spi.JavaTypeRegistry

Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
public class

Field Summary

Modifier and TypeField and Description
private final SqmCreationState
private SemanticPathPart
private StringBuilder

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public void
consumeIdentifier(String
The current part of the path being processed
identifier
,
boolean
Is this the base of the path (the first token)?
isBase
,
boolean
Is this the terminus of the path (last token)?
isTerminal
)

Implements org.hibernate.query.hql.spi.DotIdentifierConsumer.consumeIdentifier.

Responsible for consuming each part of the path.
public void
consumeTreat(String
The treat target entity name
entityName
,
boolean
Is this the terminus of the path (last token)?
isTerminal
)

Implements org.hibernate.query.hql.spi.DotIdentifierConsumer.consumeTreat.

Responsible for consuming each part of the path.
protected SemanticPathPart
public SemanticPathPart
protected SqmCreationState
protected void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

creationStateback to summary
private final SqmCreationState creationState
currentPartback to summary
private SemanticPathPart currentPart
pathSoFarback to summary
private StringBuilder pathSoFar

Constructor Detail

BasicDotIdentifierConsumerback to summary
public BasicDotIdentifierConsumer(SqmCreationState creationState)
BasicDotIdentifierConsumerback to summary
public BasicDotIdentifierConsumer(SemanticPathPart initialState, SqmCreationState creationState)

Method Detail

consumeIdentifierback to summary
public void consumeIdentifier(String identifier, boolean isBase, boolean isTerminal)

Implements org.hibernate.query.hql.spi.DotIdentifierConsumer.consumeIdentifier.

Doc from org.hibernate.query.hql.spi.DotIdentifierConsumer.consumeIdentifier.

Responsible for consuming each part of the path. Called sequentially for each part.

Parameters
identifier:String

The current part of the path being processed

isBase:boolean

Is this the base of the path (the first token)?

isTerminal:boolean

Is this the terminus of the path (last token)?

Annotations
@Override
consumeTreatback to summary
public void consumeTreat(String entityName, boolean isTerminal)

Implements org.hibernate.query.hql.spi.DotIdentifierConsumer.consumeTreat.

Doc from org.hibernate.query.hql.spi.DotIdentifierConsumer.consumeTreat.

Responsible for consuming each part of the path. Called sequentially for each part.

Parameters
entityName:String

The treat target entity name

isTerminal:boolean

Is this the terminus of the path (last token)?

Annotations
@Override
createBasePartback to summary
protected SemanticPathPart createBasePart()
getConsumedPartback to summary
public SemanticPathPart getConsumedPart()

Implements org.hibernate.query.hql.spi.DotIdentifierConsumer.getConsumedPart.

Doc from org.hibernate.query.hql.spi.DotIdentifierConsumer.getConsumedPart.

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

Annotations
@Override
getCreationStateback to summary
protected SqmCreationState getCreationState()
resetback to summary
protected void reset()
org.hibernate.query.hql.internal back to summary

public Class BasicDotIdentifierConsumer.BaseLocalSequencePart

extends Object
implements SemanticPathPart
Class Inheritance
  • java.lang.Object
  • org.hibernate.query.hql.internal.BasicDotIdentifierConsumer.BaseLocalSequencePart
All Implemented Interfaces
org.hibernate.query.hql.spi.SemanticPathPart

Field Summary

Modifier and TypeField and Description
private boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public SqmPath<?>
public SemanticPathPart
protected void
validateAsRoot(SqmFrom<?, ?> pathRoot)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

isBaseback to summary
private boolean isBase

Constructor Detail

BaseLocalSequencePartback to summary
public BaseLocalSequencePart()

Method Detail

resolveIndexedAccessback to summary
public SqmPath<?> resolveIndexedAccess(SqmExpression<?> selector, boolean isTerminal, SqmCreationState processingState)

Implements org.hibernate.query.hql.spi.SemanticPathPart.resolveIndexedAccess.

Annotations
@Override
resolvePathPartback to summary
public SemanticPathPart resolvePathPart(String identifier, boolean isTerminal, SqmCreationState creationState)

Implements org.hibernate.query.hql.spi.SemanticPathPart.resolvePathPart.

Annotations
@Override
validateAsRootback to summary
protected void validateAsRoot(SqmFrom<?, ?> pathRoot)