Class RenameTableStatement
- java.lang.Object
-
- net.sf.jsqlparser.statement.alter.RenameTableStatement
-
public class RenameTableStatement extends java.lang.Object implements Statement
- See Also:
- Rename, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.LinkedHashMap<Table,Table>
tableNames
private boolean
usingIfExistsKeyword
private boolean
usingTableKeyword
private java.lang.String
waitDirective
-
Constructor Summary
Constructors Constructor Description RenameTableStatement(Table oldName, Table newName)
RenameTableStatement(Table oldName, Table newName, boolean usingTableKeyword, boolean usingIfExistsKeyword, java.lang.String waitDirective)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(StatementVisitor statementVisitor)
void
addTableNames(Table oldName, Table newName)
java.lang.StringBuilder
appendTo(java.lang.StringBuilder builder)
java.util.Set<java.util.Map.Entry<Table,Table>>
getTableNames()
int
getTableNamesSize()
java.lang.String
getWaitDirective()
boolean
isTableNamesEmpty()
boolean
isUsingIfExistsKeyword()
boolean
isUsingTableKeyword()
void
setUsingIfExistsKeyword(boolean usingIfExistsKeyword)
void
setUsingTableKeyword(boolean usingTableKeyword)
void
setWaitDirective(java.lang.String waitDirective)
java.lang.String
toString()
RenameTableStatement
withUsingIfExistsKeyword(boolean usingIfExistsKeyword)
RenameTableStatement
withUsingTableKeyword(boolean usingTableKeyword)
RenameTableStatement
withWaitDirective(java.lang.String waitDirective)
-
-
-
Method Detail
-
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 java.lang.String getWaitDirective()
-
setWaitDirective
public void setWaitDirective(java.lang.String waitDirective)
-
withWaitDirective
public RenameTableStatement withWaitDirective(java.lang.String waitDirective)
-
getTableNamesSize
public int getTableNamesSize()
-
isTableNamesEmpty
public boolean isTableNamesEmpty()
-
accept
public void accept(StatementVisitor statementVisitor)
-
appendTo
public java.lang.StringBuilder appendTo(java.lang.StringBuilder builder)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-