public class DropTableConstraint extends H2SqlPart
Generates a ALTER TABLE...DROP CONSTRAINT statement for H2.
ALTER TABLE person DROP CONSTRAINT email_check
| Constructor and Description |
|---|
DropTableConstraint() |
DropTableConstraint(String tableName,
String constraintName)
Constructs a DropTableConstraint with the specified table and constraint names.
|
| Modifier and Type | Method and Description |
|---|---|
void |
collectSqlFragment(CodeWriter writer) |
String |
getConstraintName()
Returns the constraint name.
|
String |
getTableName()
Returns the table name.
|
DropTableConstraint |
setConstraintName(String constraintName)
Sets the constraint name.
|
DropTableConstraint |
setPretty(boolean pretty) |
DropTableConstraint |
setTableName(String tableName)
Sets the table name.
|
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)
tableName - the table namepublic String getConstraintName()
public DropTableConstraint setConstraintName(String constraintName)
constraintName - the constraint nameCopyright (c) 2006-2026 North Concepts Inc. All Rights Reserved.