Top Description Methods
org.hibernate.sql.ast.spi

public Interface SqlAstQueryPartProcessingState

extends SqlAstProcessingState
Known Direct Implementers
org.hibernate.loader.ast.internal.LoaderSqlAstCreationState, org.hibernate.query.sqm.sql.internal.SqlAstQueryPartProcessingStateImpl
Imports
java.util.Map, org.hibernate.metamodel.model.domain.EntityDomainType, org.hibernate.query.sqm.tree.from.SqmFrom, org.hibernate.sql.ast.tree.from.TableGroup, org.hibernate.sql.ast.tree.select.QueryPart

SqlAstProcessingState specialization for query parts
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public Map<SqmFrom<?, ?>, Boolean>
public QueryPart
getInflightQueryPart()

Get the QueryPart being processed as part of this state.

public void
registerFromUsage(SqmFrom<?, ?> sqmFrom, boolean downgradeTreatUses)

Registers that the given SqmFrom was used in an expression and whether to downgrade org.hibernate.persister.entity.EntityNameUse#TREAT of it.

public void
registerTreatedFrom(SqmFrom<?, ?> sqmFrom)

Registers that the given SqmFrom is treated.

Inherited from org.hibernate.sql.ast.spi.SqlAstProcessingState:
getParentStategetSqlAstCreationStategetSqlExpressionResolverisTopLevel

Method Detail

getFromRegistrationsback to summary
public Map<SqmFrom<?, ?>, Boolean> getFromRegistrations()

Returns the treated SqmFroms and whether their org.hibernate.persister.entity.EntityNameUse#TREAT should be downgraded to org.hibernate.persister.entity.EntityNameUse#EXPRESSION.

getInflightQueryPartback to summary
public QueryPart getInflightQueryPart()

Get the QueryPart being processed as part of this state. It is considered in-flight as it is probably still being built.

registerFromUsageback to summary
public void registerFromUsage(SqmFrom<?, ?> sqmFrom, boolean downgradeTreatUses)

Registers that the given SqmFrom was used in an expression and whether to downgrade org.hibernate.persister.entity.EntityNameUse#TREAT of it.

registerTreatedFromback to summary
public void registerTreatedFrom(SqmFrom<?, ?> sqmFrom)

Registers that the given SqmFrom is treated.