public class DropTable extends PostgresSqlPart
Generates a DROP TABLE statement for PostgreSQL.
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)
Indicates if
IF EXISTS clause should be included in the DROP TABLE statement (default true). |
DropTable |
setPretty(boolean pretty) |
DropTable |
setTableNames(Collection<String> tableNames) |
DropTable |
setTableNames(String... tableNames) |
escapeKeywordcollectParameterValues, getParameterValues, getSqlFragment, isPretty, printSqlParts, toStringpublic DropTable()
public DropTable(String... tableNames)
public void collectSqlFragment(CodeWriter writer)
collectSqlFragment in class SqlPartpublic 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)
IF EXISTS clause should be included in the DROP TABLE statement (default true).public boolean isCascade()
public DropTable setCascade(boolean cascade)
public boolean isRestrict()
Copyright (c) 2006-2025 North Concepts Inc. All Rights Reserved.