Class Index

    • Constructor Detail

      • Index

        public Index()
    • Method Detail

      • addField

        public final void addField​(Field field)
        Add given field to list of index fields.
        Parameters:
        field - Field to add to list of index fields.
      • getFieldCount

        public final int getFieldCount()
        Get number of index fields.
        Returns:
        Number of index fields.
      • getField

        public final Field getField​(int index)
        Get index field at given index.
        Parameters:
        index - Index of index field to return.
        Returns:
        Index field at given index.
      • setTable

        public final void setTable​(Table table)
        Set table the foreign key is used for.
        Parameters:
        table - Table the foreign key is used for.
      • getTable

        public final Table getTable()
        Get table the foreign key is used for.
        Returns:
        Table the foreign key is used for.
      • fieldNames

        protected final void fieldNames​(DDLWriter writer)
        Concatenate all field names delimited by field delimiter and whitespace.
        Parameters:
        writer - DDLWriter to write schema objects to.
      • equals

        public final boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class java.lang.Object