Class ReorgTable

  • All Implemented Interfaces:
    IDatabaseStatement

    public class ReorgTable
    extends java.lang.Object
    implements IDatabaseStatement
    For databases which support it, execute the reorg table command. This is usually required after a column has been removed or added, or the type of a column has been modified (Db2). This really ought to be done via the adapter, but that will require a much bigger refactor which is not desirable at the current time.
    • Constructor Summary

      Constructors 
      Constructor Description
      ReorgTable​(java.lang.String schemaName, java.lang.String tableName)
      Public constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run​(IDatabaseTranslator translator, java.sql.Connection c)
      Execute the statement using the connection.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReorgTable

        public ReorgTable​(java.lang.String schemaName,
                          java.lang.String tableName)
        Public constructor
        Parameters:
        schemaName -
        tableName - the table to reorg
    • Method Detail