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
collectParameterValues, getParameterValues, getSqlFragment, isPretty, printSqlParts, toString
public DropTableConstraint setPretty(boolean pretty)
public void collectSqlFragment(CodeWriter writer)
collectSqlFragment
in class SqlPart
public String getTableName()
public DropTableConstraint setTableName(String tableName)
public String getConstraintName()
public DropTableConstraint setConstraintName(String constraintName)
Copyright (c) 2006-2023 North Concepts Inc. All Rights Reserved.