UniqueDelegate which uses create unique index commands when necessary.
create unique index ... exclude null keys or
create unique where not null index, depending on flavor.
create unique nonclustered index ... where ... command.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getAlterTableToAddUniqueKeyCommand(UniqueKey
The uniqueKey, Metadata UniqueKey instance. Contains all information about the columnsAccess to the bootstrap mapping information metadata, SqlStringGenerationContext A context for SQL string generation context)Overrides org. Implements org.
Deprecated
as a consequence of
Get the Metadata being deprecated.
alter table command used to create the given unique key
constraint, or return the empty string if the constraint was already included in the create table statement by getTableCreationUniqueConstraintsFragment.
|
| public String | getAlterTableToDropUniqueKeyCommand(UniqueKey
The uniqueKey, Metadata UniqueKey instance. Contains all information about the columnsAccess to the bootstrap mapping information metadata, SqlStringGenerationContext A context for SQL string generation context)Overrides org. Implements org.
Deprecated
as a consequence of
Get the Metadata being deprecated.
alter table command used to drop the given unique key
which was previously created by getAlterTableToAddUniqueKeyCommand.
|
| AlterTableUniqueIndexDelegate | back to summary |
|---|---|
| public AlterTableUniqueIndexDelegate(Dialect dialect) | |
| getAlterTableToAddUniqueKeyCommand | back to summary |
|---|---|
| public String getAlterTableToAddUniqueKeyCommand(UniqueKey uniqueKey, Metadata metadata, SqlStringGenerationContext context) Overrides org. Implements org. Doc from org. Deprecated as a consequence of Get the | |
| getAlterTableToDropUniqueKeyCommand | back to summary |
|---|---|
| public String getAlterTableToDropUniqueKeyCommand(UniqueKey uniqueKey, Metadata metadata, SqlStringGenerationContext context) Overrides org. Implements org. Doc from org. Deprecated as a consequence of Get the | |