Class CreateIndex


public class CreateIndex extends SchemaCommand
This class represents the statement CREATE INDEX
  • Field Details

    • tableName

      private String tableName
    • indexName

      private String indexName
    • indexColumns

      private IndexColumn[] indexColumns
    • uniqueColumnCount

      private int uniqueColumnCount
    • primaryKey

      private boolean primaryKey
    • hash

      private boolean hash
    • spatial

      private boolean spatial
    • ifTableExists

      private boolean ifTableExists
    • ifNotExists

      private boolean ifNotExists
    • comment

      private String comment
  • Constructor Details

  • Method Details

    • setIfTableExists

      public void setIfTableExists(boolean b)
    • setIfNotExists

      public void setIfNotExists(boolean ifNotExists)
    • setTableName

      public void setTableName(String tableName)
    • setIndexName

      public void setIndexName(String indexName)
    • setIndexColumns

      public void setIndexColumns(IndexColumn[] columns)
    • update

      public long update()
      Description copied from class: Prepared
      Execute the statement.
      Overrides:
      update in class Prepared
      Returns:
      the update count
    • setPrimaryKey

      public void setPrimaryKey(boolean b)
    • setUniqueColumnCount

      public void setUniqueColumnCount(int uniqueColumnCount)
    • setHash

      public void setHash(boolean b)
    • setSpatial

      public void setSpatial(boolean b)
    • setComment

      public void setComment(String comment)
    • getType

      public int getType()
      Description copied from class: Prepared
      Get the command type as defined in CommandInterface
      Specified by:
      getType in class Prepared
      Returns:
      the statement type