public interface UniqueDelegate
getAlterTableToAddUniqueKeyCommand(org.hibernate.mapping.UniqueKey, java.lang.String, java.lang.String)
.
Also, see getAlterTableToDropUniqueKeyCommand(org.hibernate.mapping.UniqueKey, java.lang.String, java.lang.String)
getTableCreationUniqueConstraintsFragment(org.hibernate.mapping.Table)
getColumnDefinitionUniquenessFragment(org.hibernate.mapping.Column)
Modifier and Type | Method and Description |
---|---|
String |
getAlterTableToAddUniqueKeyCommand(UniqueKey uniqueKey)
Get the SQL ALTER TABLE command to be used to create the given UniqueKey.
|
String |
getAlterTableToAddUniqueKeyCommand(UniqueKey uniqueKey,
String defaultCatalog,
String defaultSchema)
Get the SQL ALTER TABLE command to be used to create the given UniqueKey.
|
String |
getAlterTableToDropUniqueKeyCommand(UniqueKey uniqueKey)
Get the SQL ALTER TABLE command to be used to drop the given UniqueKey.
|
String |
getAlterTableToDropUniqueKeyCommand(UniqueKey uniqueKey,
String defaultCatalog,
String defaultSchema)
Get the SQL ALTER TABLE command to be used to drop the given UniqueKey.
|
String |
getColumnDefinitionUniquenessFragment(Column column)
Get the fragment that can be used to make a column unique as part of its column definition.
|
String |
getColumnDefinitionUniquenessFragment(Column column)
Get the fragment that can be used to make a column unique as part of its column definition.
|
String |
getTableCreationUniqueConstraintsFragment(Table table)
Get the fragment that can be used to apply unique constraints as part of table creation.
|
String |
getTableCreationUniqueConstraintsFragment(Table table)
Get the fragment that can be used to apply unique constraints as part of table creation.
|
String getColumnDefinitionUniquenessFragment(Column column)
column
- The column to which to apply the uniqueString getColumnDefinitionUniquenessFragment(Column column)
column
- The column to which to apply the uniqueString getTableCreationUniqueConstraintsFragment(Table table)
UniqueKey
instances for the given table (see
Table.getUniqueKeyIterator()
and generate the whole fragment for all
unique keys
Intended for Dialects which support unique constraint definitions, but just not in separate ALTER statements.table
- The table for which to generate the unique constraints fragment", unique(col1, col2), unique( col20)"
. NOTE: The leading
comma is important!String getTableCreationUniqueConstraintsFragment(Table table)
UniqueKey
instances for the given table (see
Table.getUniqueKeyIterator()
and generate the whole fragment for all
unique keys
Intended for Dialects which support unique constraint definitions, but just not in separate ALTER statements.table
- The table for which to generate the unique constraints fragment", unique(col1, col2), unique( col20)"
. NOTE: The leading
comma is important!String getAlterTableToAddUniqueKeyCommand(UniqueKey uniqueKey, String defaultCatalog, String defaultSchema)
uniqueKey
- The UniqueKey instance. Contains all information about the columnsdefaultCatalog
- The default catalogdefaultSchema
- The default schemaString getAlterTableToAddUniqueKeyCommand(UniqueKey uniqueKey)
uniqueKey
- The UniqueKey instance. Contains all information about the columns, as well as
schema/catalogString getAlterTableToDropUniqueKeyCommand(UniqueKey uniqueKey, String defaultCatalog, String defaultSchema)
uniqueKey
- The UniqueKey instance. Contains all information about the columnsdefaultCatalog
- The default catalogdefaultSchema
- The default schemaString getAlterTableToDropUniqueKeyCommand(UniqueKey uniqueKey)
uniqueKey
- The UniqueKey instance. Contains all information about the columns, as well as
schema/catalogCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.