|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.metamodel.relational.AbstractConstraint
public abstract class AbstractConstraint
Support for writing Constraint implementations
| Constructor Summary | |
|---|---|
protected |
AbstractConstraint(TableSpecification table,
String name)
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.hibernate.metamodel.relational.Exportable |
|---|
getExportIdentifier |
| Constructor Detail |
|---|
protected AbstractConstraint(TableSpecification table,
String name)
| Method Detail |
|---|
public TableSpecification getTable()
Constraint
getTable in interface Constraintpublic String getName()
Constraint
getName in interface Constraintpublic Iterable<Column> getColumns()
Constraint
getColumns in interface Constraintprotected int getColumnSpan()
protected List<Column> internalColumnAccess()
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 Exportabledialect - The dialect for which to generate the SQL drop strings
public String[] sqlCreateStrings(Dialect dialect)
Exportable
sqlCreateStrings in interface Exportabledialect - The dialect for which to generate the SQL creation strings
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||