| Access | Constructor and Description |
|---|---|
| public | DefaultUniqueDelegate(Dialect
The dialect for which we are handling unique constraints dialect)Constructs DefaultUniqueDelegate |
| Modifier and Type | Method and Description |
|---|---|
| public String | getAlterTableToAddUniqueKeyCommand(UniqueKey
The UniqueKey instance. Contains all information about the columns uniqueKey, Metadata Access to the bootstrap mapping information metadata, SqlStringGenerationContext A context for SQL string generation context)Overrides default org.
Deprecated
as a consequence of
Get the SQL ALTER TABLE command to be used to create the given UniqueKey.
UniqueKey being deprecated.
|
| public String | getAlterTableToDropUniqueKeyCommand(UniqueKey
The UniqueKey instance. Contains all information about the columns uniqueKey, Metadata Access to the bootstrap mapping information metadata, SqlStringGenerationContext A context for SQL string generation context)Overrides default org.
Deprecated
as a consequence of
Get the SQL ALTER TABLE command to be used to drop the given UniqueKey.
UniqueKey being deprecated.
|
| public String | getColumnDefinitionUniquenessFragment(Column
The column to which to apply the unique column, SqlStringGenerationContext A context for SQL string generation context)Overrides default org. |
| protected String | |
| public String | getTableCreationUniqueConstraintsFragment(Table
The table for which to generate the unique constraints fragment table, SqlStringGenerationContext A context for SQL string generation context)Overrides default org.
Deprecated
as a consequence of
Get the fragment that can be used to apply unique constraints as part of table creation.
Table being deprecated.
|
| protected String |
| dialect | back to summary |
|---|---|
| protected final Dialect dialect | |
| DefaultUniqueDelegate | back to summary |
|---|---|
| public DefaultUniqueDelegate(Dialect dialect) Constructs DefaultUniqueDelegate
| |
| getAlterTableToAddUniqueKeyCommand | back to summary |
|---|---|
| public String getAlterTableToAddUniqueKeyCommand(UniqueKey uniqueKey, Metadata metadata, SqlStringGenerationContext context) Overrides default org. Doc from org. Deprecated as a consequence of Get the SQL ALTER TABLE command to be used to create the given UniqueKey.
| |
| getAlterTableToDropUniqueKeyCommand | back to summary |
|---|---|
| public String getAlterTableToDropUniqueKeyCommand(UniqueKey uniqueKey, Metadata metadata, SqlStringGenerationContext context) Overrides default org. Doc from org. Deprecated as a consequence of Get the SQL ALTER TABLE command to be used to drop the given UniqueKey.
| |
| getColumnDefinitionUniquenessFragment | back to summary |
|---|---|
| public String getColumnDefinitionUniquenessFragment(Column column, SqlStringGenerationContext context) Overrides default org. Doc from org. Get the fragment that can be used to make a column unique as part of its column definition. This is intended for dialects which do not support unique constraints
| |
| getDropUnique | back to summary |
|---|---|
| protected String getDropUnique() | |
| getTableCreationUniqueConstraintsFragment | back to summary |
|---|---|
| public String getTableCreationUniqueConstraintsFragment(Table table, SqlStringGenerationContext context) Overrides default org. Doc from org. Deprecated as a consequence of Get the fragment that can be used to apply unique constraints as part of table creation. The implementation
should iterate over the Intended for Dialects which support unique constraint definitions, but just not in separate ALTER statements.
| |
| uniqueConstraintSql | back to summary |
|---|---|
| protected String uniqueConstraintSql(UniqueKey uniqueKey)
Deprecated as a consequence of | |