Class CreateIndex


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

      • tableName

        private java.lang.String tableName
      • indexName

        private java.lang.String indexName
      • 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 java.lang.String comment
    • Method Detail

      • setIfTableExists

        public void setIfTableExists​(boolean b)
      • setIfNotExists

        public void setIfNotExists​(boolean ifNotExists)
      • setTableName

        public void setTableName​(java.lang.String tableName)
      • setIndexName

        public void setIndexName​(java.lang.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​(java.lang.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