Class AlterRenameCommand

java.lang.Object
net.ucanaccess.commands.AlterRenameCommand
All Implemented Interfaces:
ICommand

public class AlterRenameCommand extends Object implements ICommand
  • Constructor Details

    • AlterRenameCommand

      public AlterRenameCommand(String oldTableName, String newTableName, String execId)
  • Method Details

    • getExecId

      public String getExecId()
      Description copied from interface: ICommand
      Returns the unique execution identifier.
      Specified by:
      getExecId in interface ICommand
      Returns:
      the execution id
    • getTableName

      public String getTableName()
      Description copied from interface: ICommand
      Returns the name of the table affected by this command.
      Specified by:
      getTableName in interface ICommand
      Returns:
      the table name
    • getType

      public ICommand.CommandType getType()
      Description copied from interface: ICommand
      Returns the type of this command.
      Specified by:
      getType in interface ICommand
      Returns:
      the command type
    • persist

      public IFeedbackAction persist() throws SQLException
      Description copied from interface: ICommand
      Persists the changes to the underlying Access database file.
      Specified by:
      persist in interface ICommand
      Returns:
      a feedback action to be executed after persistence
      Throws:
      SQLException - if a database error occurs during persistence
    • rollback

      public IFeedbackAction rollback()
      Description copied from interface: ICommand
      Reverts the changes made by this command.
      Specified by:
      rollback in interface ICommand
      Returns:
      a feedback action to be executed after rollback