Package org.hibernate.sql.results.graph
Interface DomainResultCreationState
-
- All Known Implementing Classes:
BaseSqmToSqlAstConverter,DomainResultCreationStateImpl,LoaderSqlAstCreationState,MultiTableSqmMutationConverter,StandardSqmTranslator,SybaseSqmToSqlAstConverter
@Incubating public interface DomainResultCreationState
Contains state related to buildingDomainResultandFetchgraphs
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanforceIdentifierSelection()Whether forcing the selection of the identifier is in effect for this creationForeignKeyDescriptor.NaturegetCurrentlyResolvingForeignKeyPart()Returns the part of the foreign key that is currently being resolved, ornullif no foreign key is currently being resolved.default SqlAliasBaseManagergetSqlAliasBaseManager()Access to the SQL alias helperSqlAstCreationStategetSqlAstCreationState()The underlying state for SQL AST creationdefault booleanisAssociationKeyVisited(AssociationKey circularityKey)Checks whether the given circularityKey is registereddefault booleanisRegisteringVisitedAssociationKeys()Is this state accepting circularity detection keys?booleanisResolvingCircularFetch()default booleanregisterVisitedAssociationKey(AssociationKey circularityKey)Registers a circularity detection keydefault voidremoveVisitedAssociationKey(AssociationKey circularityKey)Removes the registration of a circularity detection keyModelPartresolveModelPart(NavigablePath navigablePath)Resolve the ModelPart associated with a given NavigablePath.voidsetCurrentlyResolvingForeignKeyPart(ForeignKeyDescriptor.Nature currentlyResolvingForeignKeySide)voidsetResolvingCircularFetch(boolean resolvingCircularFetch)default BasicFetch<?>visitDiscriminatorFetch(EntityResultGraphNode fetchParent)default BasicFetch<?>visitEmbeddableDiscriminatorFetch(EmbeddableResultGraphNode fetchParent, boolean nested)ImmutableFetchListvisitFetches(FetchParent fetchParent)Visit fetches for the given parent.default FetchvisitIdentifierFetch(EntityResultGraphNode fetchParent)default ImmutableFetchListvisitNestedFetches(FetchParent fetchParent)<R> RwithNestedFetchParent(FetchParent fetchParent, Function<FetchParent,R> action)
-
-
-
Method Detail
-
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
default SqlAliasBaseManager getSqlAliasBaseManager()
Access to the SQL alias helper
-
registerVisitedAssociationKey
default boolean registerVisitedAssociationKey(AssociationKey circularityKey)
Registers a circularity detection key
-
removeVisitedAssociationKey
default void removeVisitedAssociationKey(AssociationKey circularityKey)
Removes the registration of a circularity detection key
-
isAssociationKeyVisited
default boolean isAssociationKeyVisited(AssociationKey circularityKey)
Checks whether the given circularityKey is registered
-
isRegisteringVisitedAssociationKeys
default boolean isRegisteringVisitedAssociationKeys()
Is this state accepting circularity detection keys?
-
resolveModelPart
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
-
visitIdentifierFetch
default Fetch visitIdentifierFetch(EntityResultGraphNode fetchParent)
-
visitDiscriminatorFetch
default BasicFetch<?> visitDiscriminatorFetch(EntityResultGraphNode fetchParent)
-
visitEmbeddableDiscriminatorFetch
default BasicFetch<?> visitEmbeddableDiscriminatorFetch(EmbeddableResultGraphNode fetchParent, boolean nested)
-
visitFetches
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)
-
visitNestedFetches
default ImmutableFetchList visitNestedFetches(FetchParent fetchParent)
-
withNestedFetchParent
<R> R withNestedFetchParent(FetchParent fetchParent, Function<FetchParent,R> action)
-
isResolvingCircularFetch
boolean isResolvingCircularFetch()
-
setResolvingCircularFetch
void setResolvingCircularFetch(boolean resolvingCircularFetch)
-
getCurrentlyResolvingForeignKeyPart
ForeignKeyDescriptor.Nature getCurrentlyResolvingForeignKeyPart()
Returns the part of the foreign key that is currently being resolved, ornullif no foreign key is currently being resolved.
-
setCurrentlyResolvingForeignKeyPart
void setCurrentlyResolvingForeignKeyPart(ForeignKeyDescriptor.Nature currentlyResolvingForeignKeySide)
-
-