Interface JoinGraphRegistry

    • Method Detail

      • registerJoinGraph

        void registerJoinGraph​(Object graphName,
                               Collection<JoinDescription> joins,
                               Class<?>... rootClasses)
        Adds new join graph to the registry.
        Parameters:
        graphName - graph unique name. Generally, any object may be used as a name, it should have correct hashCode method. String or enum is recommended.
        joins - associated joins
        rootClasses - target class for a new join graph
      • replaceJoinGraph

        void replaceJoinGraph​(Object graphName,
                              Collection<JoinDescription> joins,
                              Class<?>... rootClasses)
        Replace an existing join graph with a new one
        Parameters:
        graphName - graph unique name. Generally, any object may be used as a name, it should have correct hashCode method. String or enum is recommended.
        joins - associated joins
        rootClasses - target class for a new join graph
      • registerOrReplaceJoinGraph

        void registerOrReplaceJoinGraph​(Object graphName,
                                        Collection<JoinDescription> joins,
                                        Class<?>... rootClasses)
        Adds new join graph to the registry or replace an existing one.
        Parameters:
        graphName - graph unique name. Generally, any object may be used as a name, it should have correct hashCode method. String or enum is recommended.
        joins - associated joins
        rootClasses - target class for a new join graph
      • getJoinGraph

        List<JoinDescription> getJoinGraph​(Class<?> clazz,
                                           Object name)
        Parameters:
        clazz - target class
        name - join graph name
        Returns:
        collection of registered join graphs
      • getAllJoinGraphs

        Map<Object,​List<JoinDescription>> getAllJoinGraphs​(Class<?> clazz)
        Parameters:
        clazz - target class
        Returns:
        map of all registered join graphs