public abstract class AbstractConstraint extends Object implements Constraint
Constraint implementations| Modifier | 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, waitgetExportIdentifierprotected AbstractConstraint(TableSpecification table, String name)
public TableSpecification getTable()
ConstraintgetTable in interface Constraintpublic String getName()
ConstraintgetName in interface Constraintpublic Iterable<Column> getColumns()
ConstraintgetColumns in interface Constraintprotected 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)
ExportablesqlDropStrings in interface Exportabledialect - The dialect for which to generate the SQL drop stringspublic String[] sqlCreateStrings(Dialect dialect)
ExportablesqlCreateStrings in interface Exportabledialect - The dialect for which to generate the SQL creation stringsCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.