Deprecated
as a consequence of RelationalModel being deprecated. See corresponding docs for further information.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ArrayList | |
| private String | |
| private Table |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public Iterator | columnIterator()
Deprecated
(Since 6.0) use
This is a duplicate method, that has been removed in v.6.0.
getColumnIterator() instead.
|
| public boolean | Returns: true if this constraint already contains a column with same name.
|
| public abstract String | Returns: String The prefix to use in generated constraint names. Examples: "UK_", "FK_", and "PK_".
|
| public static String | Returns: String The generated name
Deprecated
as a consequence of
If a constraint is not explicitly named, this is called to generate
a unique hash using the table and column names.
Table being deprecated.
|
| public static String | Returns: String The generated name
Deprecated
as a consequence of
Helper method for Table being deprecated.
generateName(String, Table, Column..
|
| public Column | |
| public Iterator | |
| public List | |
| public int | |
| public String | |
| public Table | |
| public static String | Returns: String The hashed name.The name to be hashed. s)Hash a constraint name using MD5. |
| public boolean | |
| public void | |
| public void | |
| public abstract String | sqlConstraintString(SqlStringGenerationContext context, String constraintName, String defaultCatalog, String defaultSchema)
|
| public String | sqlCreateString(Mapping p, SqlStringGenerationContext context, String defaultCatalog, String defaultSchema)
Implements org. |
| public String | sqlDropString(SqlStringGenerationContext context, String defaultCatalog, String defaultSchema)
Implements org. |
| public String |
| columns | back to summary |
|---|---|
| private final ArrayList<Column> columns | |
| name | back to summary |
|---|---|
| private String name | |
| table | back to summary |
|---|---|
| private Table table
Deprecated as a consequence of | |
| Constraint | back to summary |
|---|---|
| public Constraint() | |
| addColumn | back to summary |
|---|---|
| public void addColumn(Column column) | |
| addColumns | back to summary |
|---|---|
| public void addColumns(Iterator<E> columnIterator) | |
| columnIterator | back to summary |
|---|---|
| public Iterator Deprecated (Since 6.0) use This is a duplicate method, that has been removed in v.6.0.
| |
| containsColumn | back to summary |
|---|---|
public boolean containsColumn(Column column)
| |
| generatedConstraintNamePrefix | back to summary |
|---|---|
public abstract String generatedConstraintNamePrefix()
| |
| generateName | back to summary |
|---|---|
| public static String generateName(String prefix, Table table, Column... columns)
Deprecated as a consequence of If a constraint is not explicitly named, this is called to generate a unique hash using the table and column names. Static so the name can be generated prior to creating the Constraint. They're cached, keyed by name, in multiple locations.
| |
| generateName | back to summary |
|---|---|
| public static String generateName(String prefix, Table table, List<Column> columns)
Deprecated as a consequence of Helper method for
| |
| getColumn | back to summary |
|---|---|
| public Column getColumn(int i) | |
| getColumnIterator | back to summary |
|---|---|
| public Iterator | |
| getColumns | back to summary |
|---|---|
| public List | |
| getColumnSpan | back to summary |
|---|---|
| public int getColumnSpan() | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getTable | back to summary |
|---|---|
| public Table getTable()
Deprecated as a consequence of | |
| hashedName | back to summary |
|---|---|
| public static String hashedName(String s) Hash a constraint name using MD5. Convert the MD5 digest to base 35 (full alphanumeric), guaranteeing that the length of the name will always be smaller than the 30 character identifier restriction enforced by a few dialects. | |
| isGenerated | back to summary |
|---|---|
| public boolean isGenerated(Dialect dialect) | |
| setName | back to summary |
|---|---|
| public void setName(String name) | |
| setTable | back to summary |
|---|---|
| public void setTable(Table table)
Deprecated as a consequence of | |
| sqlConstraintString | back to summary |
|---|---|
| public abstract String sqlConstraintString(SqlStringGenerationContext context, String constraintName, String defaultCatalog, String defaultSchema) | |
| sqlCreateString | back to summary |
|---|---|
| public String sqlCreateString(Mapping p, SqlStringGenerationContext context, String defaultCatalog, String defaultSchema) Implements org.
| |
| sqlDropString | back to summary |
|---|---|
| public String sqlDropString(SqlStringGenerationContext context, String defaultCatalog, String defaultSchema) Implements org.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static Constraint. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(Column
the first object to be compared. col1, Column the second object to be compared. col2)Implements java. |
| INSTANCE | back to summary |
|---|---|
| public static Constraint. | |
| ColumnComparator | back to summary |
|---|---|
| private ColumnComparator() | |
| compare | back to summary |
|---|---|
| public int compare(Column col1, Column col2) Implements java. Doc from java. Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
The implementor must ensure that
The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |