javax.persistence.EntityGraph
(RootGraph) and javax.persistence.Subgraph (SubGraph),
using a simple syntax defined by the `graph.g` Antlr grammar.
The parse methods all create a root javax.
based on the passed entity class and parse the graph string into that root graph.
The parseInto methods parse the graph string into a passed graph, which may be a sub-graph
Multiple graphs made for the same entity type can be merged. See EntityGraphs#merge.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static <T> RootGraph | parse(final Class<T>
The root entity type rootType, final CharSequence The textual representation of the graph graphText, final EntityManager The EntityManager entityManager)Creates a root graph based on the passed `rootType` and parses `graphText` into the generated root graph |
| private static <T> RootGraphImplementor | parse(final Class<T> rootType, final CharSequence graphText, final SessionImplementor session)
Deprecated
as a consequence of
SessionImplementor being deprecated.
|
| public static <T> void | parseInto(final Graph<T>
The target graph. This is the graph that will be populated by this process graph, final CharSequence Textual representation of the graph graphText, final EntityManager The EntityManager entityManager)Parses the textual graph representation into the specified graph. |
| public static <T> void | parseInto(final EntityGraph<T>
The target graph. This is the graph that will be populated by this process graph, final CharSequence Textual representation of the graph graphText, final EntityManager The EntityManager entityManager)Parses the textual graph representation into the specified graph. |
| public static <T> void | parseInto(final Subgraph<T>
The target graph. This is the graph that will be populated by this process graph, final CharSequence Textual representation of the graph graphText, final EntityManager The EntityManager entityManager)Parses the textual graph representation into the specified graph. |
| public static <T> void | parseInto(final Graph<T>
The target graph. This is the graph that will be populated by this process graph, final CharSequence Textual representation of the graph graphText, final EntityManagerFactory The EntityManagerFactory entityManagerFactory)Parses the textual graph representation into the specified graph. |
| public static <T> void | parseInto(final EntityGraph<T>
The target graph. This is the graph that will be populated by this process graph, final CharSequence Textual representation of the graph graphText, final EntityManagerFactory The EntityManagerFactory entityManagerFactory)Parses the textual graph representation into the specified graph. |
| public static <T> void | parseInto(final Subgraph<T>
The target graph. This is the graph that will be populated by this process graph, final CharSequence Textual representation of the graph graphText, final EntityManagerFactory The EntityManagerFactory entityManagerFactory)Parses the textual graph representation into the specified graph. |
| private static < The Java type for the ManagedType described by `graph` T> void | parseInto(GraphImplementor<T>
The target graph. This is the graph that will be populated
by this process graph, final CharSequence Textual representation of the graph graphText, SessionFactoryImplementor The SessionFactory reference sessionFactory)
Deprecated
as a consequence of
Parses the textual graph representation as described above
into the specified graph.
SessionFactoryImplementor being deprecated.
|
| GraphParser | back to summary |
|---|---|
| public GraphParser() | |
| parse | back to summary |
|---|---|
| public static <T> RootGraph Creates a root graph based on the passed `rootType` and parses `graphText` into the generated root graph API Note The passed EntityManager is expected to be a Hibernate implementation. Attempting to pass another provider's EntityManager implementation will fail
| |
| parse | back to summary |
|---|---|
| private static <T> RootGraphImplementor Deprecated as a consequence of | |
| parseInto | back to summary |
|---|---|
| public static <T> void parseInto(final Graph<T> graph, final CharSequence graphText, final EntityManager entityManager) Parses the textual graph representation into the specified graph.
| |
| parseInto | back to summary |
|---|---|
| public static <T> void parseInto(final EntityGraph<T> graph, final CharSequence graphText, final EntityManager entityManager) Parses the textual graph representation into the specified graph.
| |
| parseInto | back to summary |
|---|---|
| public static <T> void parseInto(final Subgraph<T> graph, final CharSequence graphText, final EntityManager entityManager) Parses the textual graph representation into the specified graph.
| |
| parseInto | back to summary |
|---|---|
| public static <T> void parseInto(final Graph<T> graph, final CharSequence graphText, final EntityManagerFactory entityManagerFactory) Parses the textual graph representation into the specified graph.
| |
| parseInto | back to summary |
|---|---|
| public static <T> void parseInto(final EntityGraph<T> graph, final CharSequence graphText, final EntityManagerFactory entityManagerFactory) Parses the textual graph representation into the specified graph.
| |
| parseInto | back to summary |
|---|---|
| public static <T> void parseInto(final Subgraph<T> graph, final CharSequence graphText, final EntityManagerFactory entityManagerFactory) Parses the textual graph representation into the specified graph.
| |
| parseInto | back to summary |
|---|---|
| private static <T> void parseInto(GraphImplementor<T> graph, final CharSequence graphText, SessionFactoryImplementor sessionFactory)
Deprecated as a consequence of Parses the textual graph representation as described above into the specified graph.
| |