Class RenameTableStatement

java.lang.Object
net.sf.jsqlparser.statement.alter.RenameTableStatement
All Implemented Interfaces:
Serializable, Model, Statement

public class RenameTableStatement extends Object implements Statement
See Also:
  • Field Details

    • tableNames

      private final LinkedHashMap<Table,Table> tableNames
    • usingTableKeyword

      private boolean usingTableKeyword
    • usingIfExistsKeyword

      private boolean usingIfExistsKeyword
    • waitDirective

      private String waitDirective
  • Constructor Details

    • RenameTableStatement

      public RenameTableStatement(Table oldName, Table newName)
    • RenameTableStatement

      public RenameTableStatement(Table oldName, Table newName, boolean usingTableKeyword, boolean usingIfExistsKeyword, String waitDirective)
  • Method Details

    • addTableNames

      public void addTableNames(Table oldName, Table newName)
    • isUsingTableKeyword

      public boolean isUsingTableKeyword()
    • setUsingTableKeyword

      public void setUsingTableKeyword(boolean usingTableKeyword)
    • withUsingTableKeyword

      public RenameTableStatement withUsingTableKeyword(boolean usingTableKeyword)
    • isUsingIfExistsKeyword

      public boolean isUsingIfExistsKeyword()
    • setUsingIfExistsKeyword

      public void setUsingIfExistsKeyword(boolean usingIfExistsKeyword)
    • withUsingIfExistsKeyword

      public RenameTableStatement withUsingIfExistsKeyword(boolean usingIfExistsKeyword)
    • getWaitDirective

      public String getWaitDirective()
    • setWaitDirective

      public void setWaitDirective(String waitDirective)
    • withWaitDirective

      public RenameTableStatement withWaitDirective(String waitDirective)
    • getTableNamesSize

      public int getTableNamesSize()
    • isTableNamesEmpty

      public boolean isTableNamesEmpty()
    • getTableNames

      public Set<Map.Entry<Table,Table>> getTableNames()
    • accept

      public void accept(StatementVisitor statementVisitor)
      Specified by:
      accept in interface Statement
    • appendTo

      public StringBuilder appendTo(StringBuilder builder)
    • toString

      public String toString()
      Overrides:
      toString in class Object