Class TableInfo.IndexInfo

java.lang.Object
net.sf.basedb.core.dbengine.TableInfo.IndexInfo
Enclosing class:
TableInfo

public static class TableInfo.IndexInfo extends Object
Holds information about an index in a table.
  • Field Details

    • name

      private final String name
    • isUnique

      private final boolean isUnique
    • columns

      private final Set<String> columns
    • condition

      private String condition
  • Constructor Details

    • IndexInfo

      public IndexInfo(String name, boolean isUnique)
      Create a new IndexInfo object. You should also add column names to the getColumns() set.
      Parameters:
      name - The name of the index
      isUnique - If the index must have unique values or not
  • Method Details

    • getName

      public String getName()
    • isUnique

      public boolean isUnique()
    • getColumns

      public Set<String> getColumns()
    • getCondition

      public String getCondition()
      If a condition is specificed a partial index is created for rows that matches the conditions. (Currently only supported by PostgreSQL and ignored by MySQL).
      Since:
      3.10
    • setCondition

      public void setCondition(String condition)
    • toString

      public String toString()
      Overrides:
      toString in class Object