Class RenameConstantAction

  • All Implemented Interfaces:
    ConstantAction

    class RenameConstantAction
    extends DDLSingleTableConstantAction
    This class describes actions that are ALWAYS performed for a RENAME TABLE/COLUMN/INDEX Statement at Execution time.
    • Field Detail

      • fullTableName

        private java.lang.String fullTableName
      • tableName

        private java.lang.String tableName
      • newTableName

        private java.lang.String newTableName
      • oldObjectName

        private java.lang.String oldObjectName
      • newObjectName

        private java.lang.String newObjectName
      • schemaId

        private UUID schemaId
      • usedAlterTable

        private boolean usedAlterTable
      • renamingWhat

        private int renamingWhat
    • Constructor Detail

      • RenameConstantAction

        public RenameConstantAction​(java.lang.String fullTableName,
                                    java.lang.String tableName,
                                    java.lang.String oldObjectName,
                                    java.lang.String newObjectName,
                                    SchemaDescriptor sd,
                                    UUID tableId,
                                    boolean usedAlterTable,
                                    int renamingWhat)
        Make the ConstantAction for a RENAME TABLE/COLUMN/INDEX statement.
        Parameters:
        fullTableName - Fully qualified table name
        tableName - Table name.
        oldObjectName - This is either the name of column/index in case of rename column/index. For rename table, this is null.
        newObjectName - This is new name for table/column/index
        sd - Schema that table lives in.
        tableId - UUID for table
        usedAlterTable - True-Used Alter Table, False-Used Rename. For rename index, this will always be false because there is no alter table command to rename index
        renamingWhat - Rename a 1 - table, 2 - column, 3 - index