Class ForeignKey

java.lang.Object
org.umlg.sqlg.structure.topology.ForeignKey

public class ForeignKey extends Object
This class is a data holder for the foreign keys of an edge. If the in or out vertex label does not have user defined primary keys then there will be only one entry to the vertex's 'ID'. If the vertex label has user defined primary keys there there will be many. One for each of the composite keys.
Author:
Pieter Martin Date: 2018/03/29
  • Method Details

    • of

      public static ForeignKey of(String key)
    • add

      public void add(String label, String identifier, String suffix)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • isFor

      public boolean isFor(SchemaTable schemaTable)
    • getDirection

      public org.apache.tinkerpop.gremlin.structure.Direction getDirection()
    • getSchemaTable

      public SchemaTable getSchemaTable()
    • isIn

      public boolean isIn()
    • isOut

      public boolean isOut()
    • getCompositeKeys

      public org.apache.commons.collections4.set.ListOrderedSet<String> getCompositeKeys()