Package org.hibernate.sql.results.graph
Interface DomainResultCreationState
- All Known Implementing Classes:
BaseSqmToSqlAstConverter
,DomainResultCreationStateImpl
,LoaderSqlAstCreationState
,MultiTableSqmMutationConverter
,StandardSqmTranslator
,SybaseSqmToSqlAstConverter
Contains state related to building
DomainResult
and
Fetch
graphs-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Whether forcing the selection of the identifier is in effect for this creationReturns the part of the foreign key that is currently being resolved, ornull
if no foreign key is currently being resolved.default SqlAliasBaseManager
Access to the SQL alias helperThe underlying state for SQL AST creationdefault boolean
isAssociationKeyVisited
(AssociationKey circularityKey) Checks whether the given circularityKey is registereddefault boolean
Is this state accepting circularity detection keys?boolean
default boolean
registerVisitedAssociationKey
(AssociationKey circularityKey) Registers a circularity detection keydefault void
removeVisitedAssociationKey
(AssociationKey circularityKey) Removes the registration of a circularity detection keyresolveModelPart
(NavigablePath navigablePath) Resolve the ModelPart associated with a given NavigablePath.void
setCurrentlyResolvingForeignKeyPart
(ForeignKeyDescriptor.Nature currentlyResolvingForeignKeySide) void
setResolvingCircularFetch
(boolean resolvingCircularFetch) default BasicFetch<?>
visitDiscriminatorFetch
(EntityResultGraphNode fetchParent) default BasicFetch<?>
visitEmbeddableDiscriminatorFetch
(EmbeddableResultGraphNode fetchParent, boolean nested) visitFetches
(FetchParent fetchParent) Visit fetches for the given parent.default Fetch
visitIdentifierFetch
(EntityResultGraphNode fetchParent) default ImmutableFetchList
visitNestedFetches
(FetchParent fetchParent) <R> R
withNestedFetchParent
(FetchParent fetchParent, Function<FetchParent, R> action)
-
Method Details
-
forceIdentifierSelection
default boolean forceIdentifierSelection()Whether forcing the selection of the identifier is in effect for this creation -
getSqlAstCreationState
SqlAstCreationState getSqlAstCreationState()The underlying state for SQL AST creation -
getSqlAliasBaseManager
Access to the SQL alias helper -
registerVisitedAssociationKey
Registers a circularity detection key -
removeVisitedAssociationKey
Removes the registration of a circularity detection key -
isAssociationKeyVisited
Checks whether the given circularityKey is registered -
isRegisteringVisitedAssociationKeys
default boolean isRegisteringVisitedAssociationKeys()Is this state accepting circularity detection keys? -
visitIdentifierFetch
-
visitDiscriminatorFetch
-
visitEmbeddableDiscriminatorFetch
default BasicFetch<?> visitEmbeddableDiscriminatorFetch(EmbeddableResultGraphNode fetchParent, boolean nested) -
visitFetches
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) -
visitNestedFetches
-
withNestedFetchParent
-
isResolvingCircularFetch
boolean isResolvingCircularFetch() -
setResolvingCircularFetch
void setResolvingCircularFetch(boolean resolvingCircularFetch) -
getCurrentlyResolvingForeignKeyPart
ForeignKeyDescriptor.Nature getCurrentlyResolvingForeignKeyPart()Returns the part of the foreign key that is currently being resolved, ornull
if no foreign key is currently being resolved. -
setCurrentlyResolvingForeignKeyPart
void setCurrentlyResolvingForeignKeyPart(ForeignKeyDescriptor.Nature currentlyResolvingForeignKeySide)
-