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