类 GraphParser

    • 构造器概要

      构造器 
      构造器 说明
      GraphParser()  
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static <T> RootGraph<T> parse​(Class<T> rootType, CharSequence graphText, javax.persistence.EntityManager entityManager)
      Creates a root graph based on the passed `rootType` and parses `graphText` into the generated root graph
      static <T> void parseInto​(javax.persistence.EntityGraph<T> graph, CharSequence graphText, javax.persistence.EntityManager entityManager)
      Parses the textual graph representation into the specified graph.
      static <T> void parseInto​(javax.persistence.EntityGraph<T> graph, CharSequence graphText, javax.persistence.EntityManagerFactory entityManagerFactory)
      Parses the textual graph representation into the specified graph.
      static <T> void parseInto​(javax.persistence.Subgraph<T> graph, CharSequence graphText, javax.persistence.EntityManager entityManager)
      Parses the textual graph representation into the specified graph.
      static <T> void parseInto​(javax.persistence.Subgraph<T> graph, CharSequence graphText, javax.persistence.EntityManagerFactory entityManagerFactory)
      Parses the textual graph representation into the specified graph.
      static <T> void parseInto​(Graph<T> graph, CharSequence graphText, javax.persistence.EntityManager entityManager)
      Parses the textual graph representation into the specified graph.
      static <T> void parseInto​(Graph<T> graph, CharSequence graphText, javax.persistence.EntityManagerFactory entityManagerFactory)
      Parses the textual graph representation into the specified graph.
    • 构造器详细资料

      • GraphParser

        public GraphParser()
    • 方法详细资料

      • parse

        public static <T> RootGraph<T> parse​(Class<T> rootType,
                                             CharSequence graphText,
                                             javax.persistence.EntityManager entityManager)
        Creates a root graph based on the passed `rootType` and parses `graphText` into the generated root graph
        参数:
        rootType - The root entity type
        graphText - The textual representation of the graph
        entityManager - The EntityManager
        抛出:
        InvalidGraphException - if the textual representation is invalid.
      • parseInto

        public static <T> void parseInto​(Graph<T> graph,
                                         CharSequence graphText,
                                         javax.persistence.EntityManager entityManager)
        Parses the textual graph representation into the specified graph.
        参数:
        graph - The target graph. This is the graph that will be populated by this process
        graphText - Textual representation of the graph
        entityManager - The EntityManager
        抛出:
        InvalidGraphException - if the textual representation is invalid.
      • parseInto

        public static <T> void parseInto​(javax.persistence.EntityGraph<T> graph,
                                         CharSequence graphText,
                                         javax.persistence.EntityManager entityManager)
        Parses the textual graph representation into the specified graph.
        参数:
        graph - The target graph. This is the graph that will be populated by this process
        graphText - Textual representation of the graph
        entityManager - The EntityManager
        抛出:
        InvalidGraphException - if the textual representation is invalid.
      • parseInto

        public static <T> void parseInto​(javax.persistence.Subgraph<T> graph,
                                         CharSequence graphText,
                                         javax.persistence.EntityManager entityManager)
        Parses the textual graph representation into the specified graph.
        参数:
        graph - The target graph. This is the graph that will be populated by this process
        graphText - Textual representation of the graph
        entityManager - The EntityManager
        抛出:
        InvalidGraphException - if the textual representation is invalid.
      • parseInto

        public static <T> void parseInto​(Graph<T> graph,
                                         CharSequence graphText,
                                         javax.persistence.EntityManagerFactory entityManagerFactory)
        Parses the textual graph representation into the specified graph.
        参数:
        graph - The target graph. This is the graph that will be populated by this process
        graphText - Textual representation of the graph
        entityManagerFactory - The EntityManagerFactory
        抛出:
        InvalidGraphException - if the textual representation is invalid.
      • parseInto

        public static <T> void parseInto​(javax.persistence.EntityGraph<T> graph,
                                         CharSequence graphText,
                                         javax.persistence.EntityManagerFactory entityManagerFactory)
        Parses the textual graph representation into the specified graph.
        参数:
        graph - The target graph. This is the graph that will be populated by this process
        graphText - Textual representation of the graph
        entityManagerFactory - The EntityManagerFactory
        抛出:
        InvalidGraphException - if the textual representation is invalid.
      • parseInto

        public static <T> void parseInto​(javax.persistence.Subgraph<T> graph,
                                         CharSequence graphText,
                                         javax.persistence.EntityManagerFactory entityManagerFactory)
        Parses the textual graph representation into the specified graph.
        参数:
        graph - The target graph. This is the graph that will be populated by this process
        graphText - Textual representation of the graph
        entityManagerFactory - The EntityManagerFactory
        抛出:
        InvalidGraphException - if the textual representation is invalid.