Top Description Methods
org.hibernate.sql.results.graph

public Interface DomainResultCreationState

Known Direct Implementers
org.hibernate.loader.ast.internal.LoaderSqlAstCreationState, org.hibernate.query.results.DomainResultCreationStateImpl, org.hibernate.query.sqm.sql.BaseSqmToSqlAstConverter
Annotations
@Incubating
Imports
org.hibernate.Incubating, org.hibernate.engine.FetchTiming, org.hibernate.metamodel.mapping.AssociationKey, .EntityDiscriminatorMapping, .EntityIdentifierMapping, .EntityMappingType, .ForeignKeyDescriptor, .ModelPart, org.hibernate.spi.EntityIdentifierNavigablePath, .NavigablePath, org.hibernate.sql.ast.spi.SqlAliasBaseManager, .SqlAstCreationState, org.hibernate.sql.results.graph.basic.BasicFetch, org.hibernate.sql.results.graph.entity.EntityResultGraphNode, org.hibernate.sql.results.graph.internal.ImmutableFetchList

Contains state related to building DomainResult and Fetch graphs
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public default boolean
forceIdentifierSelection()

Whether forcing the selection of the identifier is in effect for this creation

public ForeignKeyDescriptor.Nature
getCurrentlyResolvingForeignKeyPart()

Returns the part of the foreign key that is currently being resolved, or null if no foreign key is currently being resolved.

public default SqlAliasBaseManager
getSqlAliasBaseManager()

Access to the SQL alias helper

public SqlAstCreationState
getSqlAstCreationState()

The underlying state for SQL AST creation

public default boolean
isAssociationKeyVisited(AssociationKey circularityKey)

Checks whether the given circularityKey is registered

public default boolean
isRegisteringVisitedAssociationKeys()

Is this state accepting circularity detection keys?

public boolean
public default boolean
registerVisitedAssociationKey(AssociationKey circularityKey)

Registers a circularity detection key

public default void
removeVisitedAssociationKey(AssociationKey circularityKey)

Removes the registration of a circularity detection key

public ModelPart
resolveModelPart(NavigablePath navigablePath)

Resolve the ModelPart associated with a given NavigablePath.

public void
public void
setResolvingCircularFetch(boolean resolvingCircularFetch)

public default BasicFetch<?>
public ImmutableFetchList
visitFetches(FetchParent fetchParent)

Visit fetches for the given parent.

public default Fetch
public ImmutableFetchList

Method Detail

forceIdentifierSelectionback to summary
public default boolean forceIdentifierSelection()

Whether forcing the selection of the identifier is in effect for this creation

getCurrentlyResolvingForeignKeyPartback to summary
public ForeignKeyDescriptor.Nature getCurrentlyResolvingForeignKeyPart()

Returns the part of the foreign key that is currently being resolved, or null if no foreign key is currently being resolved.

getSqlAliasBaseManagerback to summary
public default SqlAliasBaseManager getSqlAliasBaseManager()

Access to the SQL alias helper

getSqlAstCreationStateback to summary
public SqlAstCreationState getSqlAstCreationState()

The underlying state for SQL AST creation

isAssociationKeyVisitedback to summary
public default boolean isAssociationKeyVisited(AssociationKey circularityKey)

Checks whether the given circularityKey is registered

isRegisteringVisitedAssociationKeysback to summary
public default boolean isRegisteringVisitedAssociationKeys()

Is this state accepting circularity detection keys?

isResolvingCircularFetchback to summary
public boolean isResolvingCircularFetch()
registerVisitedAssociationKeyback to summary
public default boolean registerVisitedAssociationKey(AssociationKey circularityKey)

Registers a circularity detection key

removeVisitedAssociationKeyback to summary
public default void removeVisitedAssociationKey(AssociationKey circularityKey)

Removes the registration of a circularity detection key

resolveModelPartback to summary
public ModelPart resolveModelPart(NavigablePath navigablePath)

Resolve the ModelPart associated with a given NavigablePath. More specific ModelParts should be preferred - e.g. the SingularAssociationAttributeMapping rather than just the EntityTypeMapping for the associated type

setCurrentlyResolvingForeignKeyPartback to summary
public void setCurrentlyResolvingForeignKeyPart(ForeignKeyDescriptor.Nature currentlyResolvingForeignKeySide)
setResolvingCircularFetchback to summary
public void setResolvingCircularFetch(boolean resolvingCircularFetch)
visitDiscriminatorFetchback to summary
public default BasicFetch<?> visitDiscriminatorFetch(EntityResultGraphNode fetchParent)
visitFetchesback to summary
public ImmutableFetchList visitFetches(FetchParent fetchParent)

Visit fetches for the given parent. We walk fetches via the SqlAstCreationContext because each "context" will define differently what should be fetched (HQL versus load)

visitIdentifierFetchback to summary
public default Fetch visitIdentifierFetch(EntityResultGraphNode fetchParent)
visitNestedFetchesback to summary
public ImmutableFetchList visitNestedFetches(FetchParent fetchParent)