public abstract class AbstractConstraint extends Object implements Constraint
Constraint
implementationsModifier | Constructor and Description |
---|---|
protected |
AbstractConstraint(TableSpecification table,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
addColumn(Column column) |
Iterable<Column> |
getColumns()
Obtain the columns that are part of this constraint.
|
protected int |
getColumnSpan() |
String |
getName()
Obtain the constraint name.
|
TableSpecification |
getTable()
Obtain the table to which this constraint applies.
|
protected void |
internalAddColumn(Column column) |
protected List<Column> |
internalColumnAccess() |
protected boolean |
isCreationVetoed(Dialect dialect) |
protected abstract String |
sqlConstraintStringInAlterTable(Dialect dialect) |
String[] |
sqlCreateStrings(Dialect dialect)
Gets the SQL strings for creating the database object.
|
String[] |
sqlDropStrings(Dialect dialect)
Gets the SQL strings for dropping the database object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExportIdentifier
protected AbstractConstraint(TableSpecification table, String name)
public TableSpecification getTable()
Constraint
getTable
in interface Constraint
public String getName()
Constraint
getName
in interface Constraint
public Iterable<Column> getColumns()
Constraint
getColumns
in interface Constraint
protected int getColumnSpan()
public void addColumn(Column column)
protected void internalAddColumn(Column column)
protected boolean isCreationVetoed(Dialect dialect)
protected abstract String sqlConstraintStringInAlterTable(Dialect dialect)
public String[] sqlDropStrings(Dialect dialect)
Exportable
sqlDropStrings
in interface Exportable
dialect
- The dialect for which to generate the SQL drop stringspublic String[] sqlCreateStrings(Dialect dialect)
Exportable
sqlCreateStrings
in interface Exportable
dialect
- The dialect for which to generate the SQL creation stringsCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.