Class CreateIndex

  • All Implemented Interfaces:
    IDatabaseObject

    public class CreateIndex
    extends BaseObject
    Index creation definition for creating new indexes after the table has been defined (e.g. in a subsequent version)
    • Constructor Detail

      • CreateIndex

        protected CreateIndex​(java.lang.String schemaName,
                              java.lang.String versionTrackingName,
                              java.lang.String tableName,
                              int version,
                              IndexDef indexDef,
                              java.lang.String tenantColumnName)
        Protected constructor. Use the Builder to create instance.
        Parameters:
        schemaName -
        indexName -
        version -
    • Method Detail

      • builder

        public static CreateIndex.Builder builder()
        Return a new Builder instance for creating instances of CreateIndex
        Returns:
      • createStatement

        public CreateIndexStatement createStatement()
        Build a CreateIndexStatement from this CreateIndex object
        Returns:
      • getTableName

        public java.lang.String getTableName()
        Get the name of the table this index is built on
        Returns:
      • apply

        public void apply​(IDatabaseAdapter target)
        Description copied from interface: IDatabaseObject
        Apply the DDL for this object to the target database
        Parameters:
        target - the database target
      • apply

        public void apply​(java.lang.Integer priorVersion,
                          IDatabaseAdapter target)
        Description copied from interface: IDatabaseObject
        Apply migration logic to bring the target database to the current level of this object
        target - the database target