public class DropTableConstraint extends MySqlPart
Generates a ALTER TABLE...DROP CONSTRAINT statement for MySQL.
ALTER TABLE person DROP CONSTRAINT email_check
| Constructor and Description |
|---|
DropTableConstraint() |
DropTableConstraint(String tableName,
String constraintName) |
| Modifier and Type | Method and Description |
|---|---|
void |
collectSqlFragment(CodeWriter writer) |
String |
getConstraintName() |
String |
getTableName() |
DropTableConstraint |
setConstraintName(String constraintName) |
DropTableConstraint |
setPretty(boolean pretty) |
DropTableConstraint |
setTableName(String tableName) |
escapeKeyword, placeBackTickscollectParameterValues, getParameterValues, getSqlFragment, isPretty, printSqlParts, toStringpublic DropTableConstraint setPretty(boolean pretty)
public void collectSqlFragment(CodeWriter writer)
collectSqlFragment in class SqlPartpublic String getTableName()
public DropTableConstraint setTableName(String tableName)
public String getConstraintName()
public DropTableConstraint setConstraintName(String constraintName)
Copyright (c) 2006-2025 North Concepts Inc. All Rights Reserved.