Class CreateTableUniqueDelegate

  • All Implemented Interfaces:
    Direct Known Subclasses:

    public class CreateTableUniqueDelegate
    extends AlterTableUniqueDelegate
    A UniqueDelegate which includes the unique constraint in the create table statement, except when called during schema migration.
    • For columns marked unique, this results in a unique column definition.
    • For named unique keys, it results in constraint abc unique(a,b,c) after the column list in create table.
    • For unique keys with no explicit name, it results in unique(x, y) after the column list.
    Counterintuitively, this class extends AlterTableUniqueDelegate, since it falls back to using alter table for schema migration.