public class DropTable extends MySqlPart
Generates a DROP TABLE
statement for MySQL.
DROP TABLE IF EXISTS person, address CASCADE
Constructor and Description |
---|
DropTable() |
DropTable(String... tableNames) |
Modifier and Type | Method and Description |
---|---|
void |
collectSqlFragment(CodeWriter writer) |
List<String> |
getTableNames() |
boolean |
isCascade() |
boolean |
isCheckIfExists()
Indicates if
IF EXISTS clause should be included in the DROP TABLE statement (default true). |
boolean |
isRestrict() |
DropTable |
setCascade(boolean cascade) |
DropTable |
setCheckIfExists(boolean checkIfExists) |
DropTable |
setPretty(boolean pretty) |
DropTable |
setTableNames(Collection<String> tableNames) |
DropTable |
setTableNames(String... tableNames) |
escapeKeyword
collectParameterValues, getParameterValues, getSqlFragment, isPretty, printSqlParts, toString
public DropTable()
public DropTable(String... tableNames)
public void collectSqlFragment(CodeWriter writer)
collectSqlFragment
in class SqlPart
public DropTable setTableNames(Collection<String> tableNames)
public boolean isCheckIfExists()
IF EXISTS
clause should be included in the DROP TABLE
statement (default true).public DropTable setCheckIfExists(boolean checkIfExists)
public boolean isCascade()
public DropTable setCascade(boolean cascade)
public boolean isRestrict()
Copyright (c) 2006-2023 North Concepts Inc. All Rights Reserved.