Package io.inversion

Class Relationship

java.lang.Object
io.inversion.Relationship
All Implemented Interfaces:
Serializable

public class Relationship extends Object implements Serializable
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • isExclude

      public boolean isExclude()
    • withExclude

      public Relationship withExclude(boolean exclude)
    • getCollection

      public Collection getCollection()
      Returns:
      the collection
    • withCollection

      public Relationship withCollection(Collection collection)
    • getRelated

      public Collection getRelated()
      Returns:
      the related
    • getInverse

      public Relationship getInverse()
    • withRelated

      public Relationship withRelated(Collection related)
      Parameters:
      related - the related to set
      Returns:
      this
    • isManyToMany

      public boolean isManyToMany()
    • isOneToMany

      public boolean isOneToMany()
    • isManyToOne

      public boolean isManyToOne()
    • getName

      public String getName()
      Returns:
      the name
    • withName

      public Relationship withName(String name)
      Parameters:
      name - the name to set
      Returns:
      this
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getType

      public String getType()
      Returns:
      the type
    • withType

      public Relationship withType(String type)
      Parameters:
      type - the type to set
      Returns:
      this
    • getFkIndex1

      public Index getFkIndex1()
    • withFkIndex1

      public Relationship withFkIndex1(Index fkIndex1)
    • getFkIndex2

      public Index getFkIndex2()
    • withFkIndex2

      public Relationship withFkIndex2(Index fkIndex2)
    • getPrimaryKeyTable1

      public Collection getPrimaryKeyTable1()
    • getPrimaryKeyTable2

      public Collection getPrimaryKeyTable2()
    • getFk1Col1

      public Property getFk1Col1()
      Returns:
      the fkCol1
    • getFk2Col1

      public Property getFk2Col1()
      Returns:
      the fkCol2