Class TableInfo.IndexInfo

  • Enclosing class:
    TableInfo

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

      • name

        private final String name
      • isUnique

        private final boolean isUnique
      • condition

        private String condition
    • Constructor Detail

      • 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 Detail

      • 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)