Interface IIndex

All Superinterfaces:
IOptionContainer, ISearchPath, ISimpleColumnContainer, ISimpleOptionContainer, IStatement, ISubElement
All Known Implementing Classes:
ChIndex, MsIndex, PgIndex

Interface for database index
  • Method Details

    • getStatementType

      default DbObjType getStatementType()
      Description copied from interface: IStatement
      Gets the type of this database object.
      Specified by:
      getStatementType in interface IStatement
      Returns:
      the database object type
    • toObjectReference

      default ObjectReference toObjectReference()
      Specified by:
      toObjectReference in interface ISearchPath
      Specified by:
      toObjectReference in interface IStatement
      Specified by:
      toObjectReference in interface ISubElement
    • isUnique

      boolean isUnique()
      Returns:
      true if unique index
    • compareColumns

      boolean compareColumns(Collection<String> refs)
      Compares the columns of this index with a collection of column references.
      Parameters:
      refs - the collection of column references to compare against
      Returns:
      true if the columns match in order and count