Class Index

All Implemented Interfaces:
Serializable

public class Index extends LocalConstraint
Represents a database index. Can also represent a partial index, aligning with DatabaseMetaData.
Author:
Abe White, Stephen Kim
See Also:
  • Constructor Details

    • Index

      public Index()
      Default constructor.
    • Index

      @Deprecated public Index(String name, Table table)
      Deprecated.
      Constructor.
      Parameters:
      name - the name of the index
      table - the table of the index
    • Index

      public Index(DBIdentifier name, Table table)
  • Method Details

    • isUnique

      public boolean isUnique()
      Return true if this is a UNIQUE index.
    • setUnique

      public void setUnique(boolean unique)
      Set whether this is a UNIQUE index.
    • isLogical

      public boolean isLogical()
      Description copied from class: Constraint
      Return whether this constraint is a logical constraint only; i.e. if it does not exist in the database.
      Specified by:
      isLogical in class Constraint
    • getFullName

      @Deprecated public String getFullName()
      Deprecated.
      Description copied from class: Constraint
      Return the full name of the constraint.
      Overrides:
      getFullName in class Constraint
    • getFullIdentifier

      public DBIdentifier getFullIdentifier()
      Overrides:
      getFullIdentifier in class Constraint
    • equalsIndex

      public boolean equalsIndex(Index idx)
      Indexes are equal if they have the same name, the same columns, and are both unique/not unique.
    • getRefCount

      public int getRefCount()
    • ref

      public void ref()
    • deref

      public void deref()