EntityGraph utilities.
API Note
These methods really belong inside other classes that we cannot modify.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static < Root entity type of BOTH graphs. T> boolean | areEqual(EntityGraph<T>
Graph to compare. a, EntityGraph<T> Graph to compare. b)Compares two entity graphs and returns |
| public static boolean | areEqual(AttributeNode<?> a, AttributeNode<?> b)
Compares two entity graph attribute node and returns |
| public static boolean | |
| public static boolean | |
| public static List | executeList(Query
The JPA Query query, EntityGraph<T> The graph to apply graph, GraphSemantic The semantic to use when applying the graph semantic)Convenience method for executing the query,
applying the given |
| public static <R> List | executeList(TypedQuery<R>
The JPA Query query, EntityGraph<R> The graph to apply graph, GraphSemantic The semantic to use when applying the graph semantic)Form of |
| public static List | Returns: The result listThe JPA Query query, EntityGraph<T> The graph to apply graph, String semanticJpaHintName)Convenience method for executing the query,
applying the given |
| public static <R> List | executeList(TypedQuery<R>
The JPA Query query, EntityGraph<R> The graph to apply graph, String semanticJpaHintName)Form of |
| public static List | executeList(Query
The JPA Query query, EntityGraph<T> The graph to apply graph)Convenience method for executing the query
using the given |
| public static <R> List | executeList(TypedQuery<R>
The JPA Query query, EntityGraph<R> The graph to apply graph)Form of |
| public static < Root entity type of the query and graph. T> EntityGraph | Returns: The merged graph.EntityManager to use to create the new merged graph. em, Class<T> Root type of the entity for which the graph is being merged. rootType, EntityGraph<T>... Graphs to merge. graphs)Merges multiple entity graphs into a single graph that specifies the fetching/loading of all attributes the input graphs specify. |
| public static <T> EntityGraph | |
| public static <T> EntityGraph | |
| private static <T> EntityGraph |
| EntityGraphs | back to summary |
|---|---|
| public EntityGraphs() | |
| areEqual | back to summary |
|---|---|
| public static <T> boolean areEqual(EntityGraph<T> a, EntityGraph<T> b) Compares two entity graphs and returns
| |
| areEqual | back to summary |
|---|---|
| public static boolean areEqual(AttributeNode<?> a, AttributeNode<?> b) Compares two entity graph attribute node and returns | |
| areEqual | back to summary |
|---|---|
| public static boolean areEqual(Map<Class<T>, Subgraph<T>> a, Map<Class<T>, Subgraph<T>> b) Compares two entity subgraph maps and returns | |
| areEqual | back to summary |
|---|---|
| public static boolean areEqual(Subgraph<T> a, Subgraph<T> b) Compares two entity subgraphs and returns | |
| executeList | back to summary |
|---|---|
| public static List Convenience method for executing the query,
applying the given
| |
| executeList | back to summary |
|---|---|
| public static <R> List Form of API Note This signature assumes that the Query's return is an entity and that the graph applies to that entity's type. JPA does not necessarily require that, but it is by far the most common usage.
| |
| executeList | back to summary |
|---|---|
| public static List Convenience method for executing the query,
applying the given
| |
| executeList | back to summary |
|---|---|
| public static <R> List Form of API Note This signature assumes that the Query's return is an entity and that the graph applies to that entity's type. JPA does not necessarily require that, but it is by far the most common usage.
| |
| executeList | back to summary |
|---|---|
| public static List Convenience method for executing the query
using the given API Note Operates on the assumption that the "default" semantic for an
entity graph applied to a query is
| |
| executeList | back to summary |
|---|---|
| public static <R> List Form of API Note This signature assumes that the Query's return is an entity and that the graph applies to that entity's type. JPA does not necessarily require that, but it is by far the most common usage.
| |
| merge | back to summary |
|---|---|
| public static <T> EntityGraph Merges multiple entity graphs into a single graph that specifies the fetching/loading of all attributes the input graphs specify.
| |
| merge | back to summary |
|---|---|
public static <T> EntityGraph
| |
| merge | back to summary |
|---|---|
public static <T> EntityGraph
| |
| merge | back to summary |
|---|---|
private static <T> EntityGraph
| |