Uses of Enum Class
org.hibernate.graph.GraphSemantic
Packages that use GraphSemantic
Package
Description
This package defines the central Hibernate APIs, beginning with
SessionFactory
, which represents an instance of
Hibernate at runtime and is the source of new instances of
Session
and StatelessSession
,
the most important APIs exposing persistence-related operations for
entities.This package defines some central internal SPI abstractions
used throughout the implementation of Hibernate.
Implements and extends the JPA-defined entity graph API.
This package defines an internal SPI abstracting over implementations
of the APIs defined in
org.hibernate.graph
.Everything related to HQL/JPQL, native SQL, and criteria queries.
SPIs for HQL support.
Contains a range of internal abstractions for dealing with query execution,
query plans, query options, and query parameters.
SPI-level SQM contracts
-
Uses of GraphSemantic in org.hibernate
Methods in org.hibernate with parameters of type GraphSemanticModifier and TypeMethodDescription<T> T
StatelessSession.get
(EntityGraph<T> graph, GraphSemantic graphSemantic, Object id) Retrieve a record, fetching associations specified by the givenEntityGraph
.<T> T
StatelessSession.get
(EntityGraph<T> graph, GraphSemantic graphSemantic, Object id, LockMode lockMode) Retrieve a record, fetching associations specified by the givenEntityGraph
, and obtaining the specified lock mode.<T> List
<T> StatelessSession.getMultiple
(EntityGraph<T> entityGraph, GraphSemantic graphSemantic, List<?> ids) Retrieve multiple rows, returning instances of the root entity of the givenEntityGraph
with the fetched associations specified by the graph, in a list where the position of an instance in the list matches the position of its identifier in the given array, and the list contains a null value if there is no persistent instance matching a given identifier.IdentifierLoadAccess.with
(EntityGraph<T> graph, GraphSemantic semantic) Deprecated, for removal: This API element is subject to removal in a future version.Customize the associations fetched by specifying an entity graph, and how it should be interpreted.MultiIdentifierLoadAccess.with
(EntityGraph<T> graph, GraphSemantic semantic) Deprecated, for removal: This API element is subject to removal in a future version.Customize the associations fetched by specifying an entity graph, and how it should be interpreted.NaturalIdLoadAccess.with
(EntityGraph<T> graph, GraphSemantic semantic) Customize the associations fetched by specifying an entity graph, and how it should be interpreted.NaturalIdMultiLoadAccess.with
(EntityGraph<T> graph, GraphSemantic semantic) Customize the associations fetched by specifying an entity graph, and how it should be interpreted.SimpleNaturalIdLoadAccess.with
(EntityGraph<T> graph, GraphSemantic semantic) Customize the associations fetched by specifying an entity graph, and how it should be interpreted. -
Uses of GraphSemantic in org.hibernate.engine.spi
Methods in org.hibernate.engine.spi that return GraphSemanticMethods in org.hibernate.engine.spi with parameters of type GraphSemanticModifier and TypeMethodDescriptionLoadQueryInfluencers.applyEntityGraph
(@Nullable RootGraphImplementor<?> rootGraph, @Nullable GraphSemantic graphSemantic) void
EffectiveEntityGraph.applyGraph
(RootGraphImplementor<?> graph, @Nullable GraphSemantic semantic) Apply the graph and semantic. -
Uses of GraphSemantic in org.hibernate.graph
Methods in org.hibernate.graph that return GraphSemanticModifier and TypeMethodDescriptionstatic GraphSemantic
GraphSemantic.fromHintName
(String hintName) static GraphSemantic
Returns the enum constant of this class with the specified name.static GraphSemantic[]
GraphSemantic.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in org.hibernate.graph with parameters of type GraphSemanticModifier and TypeMethodDescriptionstatic List
EntityGraphs.executeList
(Query query, EntityGraph<?> graph, GraphSemantic semantic) Deprecated.Since it is not type safe and returns a raw typestatic <R> List
<R> EntityGraphs.executeList
(TypedQuery<R> query, EntityGraph<R> graph, GraphSemantic semantic) Deprecated.static <R> void
EntityGraphs.setGraph
(TypedQuery<R> query, EntityGraph<R> graph, GraphSemantic semantic) Convenience method to apply the given graph to the given query without the need for a cast when working with JPA API. -
Uses of GraphSemantic in org.hibernate.graph.spi
Methods in org.hibernate.graph.spi that return GraphSemanticModifier and TypeMethodDescription@Nullable GraphSemantic
AppliedGraph.getSemantic()
The semantic (fetch/load) under which the graph should be applied -
Uses of GraphSemantic in org.hibernate.query
Methods in org.hibernate.query with parameters of type GraphSemanticModifier and TypeMethodDescriptionQuery.applyGraph
(RootGraph graph, GraphSemantic semantic) Deprecated.UseQuery.setEntityGraph(EntityGraph, GraphSemantic)
which is more type safeQuery.setEntityGraph
(EntityGraph<? super R> graph, GraphSemantic semantic) SelectionQuery.setEntityGraph
(EntityGraph<? super R> graph, GraphSemantic semantic) Apply anEntityGraph
to the query. -
Uses of GraphSemantic in org.hibernate.query.hql.spi
Methods in org.hibernate.query.hql.spi with parameters of type GraphSemanticModifier and TypeMethodDescriptionSqmQueryImplementor.applyGraph
(RootGraph graph, GraphSemantic semantic) -
Uses of GraphSemantic in org.hibernate.query.spi
Methods in org.hibernate.query.spi with parameters of type GraphSemanticModifier and TypeMethodDescriptionprotected void
AbstractCommonQueryContract.applyEntityGraphHint
(GraphSemantic graphSemantic, Object value, String hintName) protected void
AbstractCommonQueryContract.applyGraph
(String graphString, GraphSemantic graphSemantic) protected void
AbstractCommonQueryContract.applyGraph
(RootGraphImplementor<?> entityGraph, GraphSemantic graphSemantic) void
MutableQueryOptions.applyGraph
(RootGraphImplementor<?> rootGraph, GraphSemantic graphSemantic) AbstractQuery.setEntityGraph
(EntityGraph<? super R> graph, GraphSemantic semantic) AbstractSelectionQuery.setEntityGraph
(EntityGraph<? super R> graph, GraphSemantic semantic) -
Uses of GraphSemantic in org.hibernate.query.sqm.spi
Methods in org.hibernate.query.sqm.spi with parameters of type GraphSemanticModifier and TypeMethodDescriptionDelegatingSqmSelectionQueryImplementor.setEntityGraph
(EntityGraph<? super R> graph, GraphSemantic semantic)