Class JoinPath

  • All Implemented Interfaces:
    org.tentackle.common.Path<JoinPath,​Join>

    public class JoinPath
    extends java.lang.Object
    implements org.tentackle.common.Path<JoinPath,​Join>
    Path of Joins.
    Author:
    harald
    • Constructor Summary

      Constructors 
      Constructor Description
      JoinPath​(java.util.List<Join> elements, java.util.List<JoinPath> paths)
      Creates a relation path.
      JoinPath​(Join element, java.util.List<JoinPath> paths)
      Creates a normalized relation path.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Join findJoin​(java.util.List<org.tentackle.model.Relation> relations)
      Find the join for given relation path.
      java.util.List<Join> getElements()  
      java.util.List<JoinPath> getPaths()  
      void normalize()
      Normalizes the join and all subjoins.
      A normalized join contains only a single element.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • JoinPath

        public JoinPath​(java.util.List<Join> elements,
                        java.util.List<JoinPath> paths)
        Creates a relation path.
        Parameters:
        elements - the relations, null or empty if none
        paths - the continuation paths, null or empty if none
      • JoinPath

        public JoinPath​(Join element,
                        java.util.List<JoinPath> paths)
        Creates a normalized relation path.
        Parameters:
        element - the relation
        paths - the continuation paths, null or empty if none
    • Method Detail

      • getElements

        public java.util.List<Join> getElements()
        Specified by:
        getElements in interface org.tentackle.common.Path<JoinPath,​Join>
      • getPaths

        public java.util.List<JoinPath> getPaths()
        Specified by:
        getPaths in interface org.tentackle.common.Path<JoinPath,​Join>
      • findJoin

        public Join findJoin​(java.util.List<org.tentackle.model.Relation> relations)
        Find the join for given relation path.
        Parameters:
        relations - the relation path
        Returns:
        the join if found, else null
      • normalize

        public void normalize()
        Normalizes the join and all subjoins.
        A normalized join contains only a single element.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object