Class ForeignKeyColumnRefs


  • public class ForeignKeyColumnRefs
    extends java.lang.Object
    This class represents a foreign key constraint between two tables in the database. The referencing table is not recorded in this data structure because this key will be a member of that table's schema.
    • Field Detail

      • constraintName

        private java.lang.String constraintName
        This is the optional name of the constraint specified in the DDL.
      • colIndexes

        private int[] colIndexes
        This is the array of column indexes in the referencing table of the foreign key.
      • referencedTable

        private java.lang.String referencedTable
        This is the name of the referenced table in the foreign key.
      • referencedColIndexes

        private int[] referencedColIndexes
        These are the indexes of the columns in the referenced table.
    • Method Detail

      • getConstraintName

        public java.lang.String getConstraintName()
      • setConstraintName

        public void setConstraintName​(java.lang.String constraintName)
      • size

        public int size()
        Returns the number of columns in the foreign key constraint.
      • getCol

        public int getCol​(int i)
      • getCols

        public int[] getCols()
      • getRefTable

        public java.lang.String getRefTable()
      • getRefCol

        public int getRefCol​(int i)
      • getRefCols

        public int[] getRefCols()
      • toString

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