Package org.hibernate.graph
Interface RootGraph<J>
-
- All Superinterfaces:
EntityGraph<J>
,Graph<J>
,GraphNode<J>
- All Known Subinterfaces:
RootGraphImplementor<J>
- All Known Implementing Classes:
RootGraphImpl
public interface RootGraph<J> extends Graph<J>, EntityGraph<J>
Extends the JPA-definedEntityGraph
with additional operations.- See Also:
SubGraph
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
addAttributeNodes(Attribute<J,?>... attributes)
default void
addAttributeNodes(String... names)
default <X> SubGraph<X>
addKeySubgraph(Attribute<J,X> attribute)
default <X> SubGraph<? extends X>
addKeySubgraph(Attribute<J,X> attribute, Class<? extends X> type)
default <X> SubGraph<X>
addKeySubgraph(String name)
default <X> Subgraph<X>
addKeySubgraph(String name, Class<X> type)
<T1> SubGraph<? extends T1>
addSubclassSubgraph(Class<? extends T1> type)
default <X> SubGraph<X>
addSubgraph(Attribute<J,X> attribute)
default <X> SubGraph<? extends X>
addSubgraph(Attribute<J,X> attribute, Class<? extends X> type)
default <X> SubGraph<X>
addSubgraph(String name)
default <X> SubGraph<X>
addSubgraph(String name, Class<X> type)
default List<AttributeNode<?>>
getAttributeNodes()
RootGraph<J>
makeRootGraph(String name, boolean mutable)
Create a named rootGraph
if the given name is not null.SubGraph<J>
makeSubGraph(boolean mutable)
-
Methods inherited from interface jakarta.persistence.EntityGraph
getName
-
Methods inherited from interface org.hibernate.graph.Graph
addAttributeNode, addAttributeNode, addKeySubGraph, addKeySubGraph, addKeySubGraph, addKeySubGraph, addPluralSubgraph, addSubGraph, addSubGraph, addSubGraph, addSubGraph, findAttributeNode, findAttributeNode, getAttributeNodeList, getGraphAttributeNodes, getGraphedType, makeCopy
-
-
-
-
Method Detail
-
makeRootGraph
RootGraph<J> makeRootGraph(String name, boolean mutable)
Description copied from interface:Graph
Create a named rootGraph
if the given name is not null.- Specified by:
makeRootGraph
in interfaceGraph<J>
mutable
- controls whether the resultingGraph
is mutable
-
makeSubGraph
SubGraph<J> makeSubGraph(boolean mutable)
Description copied from interface:Graph
- Specified by:
makeSubGraph
in interfaceGraph<J>
-
addSubclassSubgraph
<T1> SubGraph<? extends T1> addSubclassSubgraph(Class<? extends T1> type)
- Specified by:
addSubclassSubgraph
in interfaceEntityGraph<J>
-
getAttributeNodes
default List<AttributeNode<?>> getAttributeNodes()
- Specified by:
getAttributeNodes
in interfaceEntityGraph<J>
-
addAttributeNodes
default void addAttributeNodes(String... names)
- Specified by:
addAttributeNodes
in interfaceEntityGraph<J>
-
addAttributeNodes
default void addAttributeNodes(Attribute<J,?>... attributes)
- Specified by:
addAttributeNodes
in interfaceEntityGraph<J>
-
addSubgraph
default <X> SubGraph<X> addSubgraph(Attribute<J,X> attribute)
- Specified by:
addSubgraph
in interfaceEntityGraph<J>
-
addSubgraph
default <X> SubGraph<? extends X> addSubgraph(Attribute<J,X> attribute, Class<? extends X> type)
- Specified by:
addSubgraph
in interfaceEntityGraph<J>
-
addSubgraph
default <X> SubGraph<X> addSubgraph(String name)
- Specified by:
addSubgraph
in interfaceEntityGraph<J>
-
addSubgraph
default <X> SubGraph<X> addSubgraph(String name, Class<X> type)
- Specified by:
addSubgraph
in interfaceEntityGraph<J>
-
addKeySubgraph
default <X> SubGraph<X> addKeySubgraph(Attribute<J,X> attribute)
- Specified by:
addKeySubgraph
in interfaceEntityGraph<J>
-
addKeySubgraph
default <X> SubGraph<? extends X> addKeySubgraph(Attribute<J,X> attribute, Class<? extends X> type)
- Specified by:
addKeySubgraph
in interfaceEntityGraph<J>
-
addKeySubgraph
default <X> SubGraph<X> addKeySubgraph(String name)
- Specified by:
addKeySubgraph
in interfaceEntityGraph<J>
-
addKeySubgraph
default <X> Subgraph<X> addKeySubgraph(String name, Class<X> type)
- Specified by:
addKeySubgraph
in interfaceEntityGraph<J>
-
-