public class DefaultUniqueDelegate extends Object implements UniqueDelegate
| Constructor and Description |
|---|
DefaultUniqueDelegate(Dialect dialect) |
| Modifier and Type | Method and Description |
|---|---|
String |
applyUniquesOnAlter(UniqueKey uniqueKey)
If creating unique constraints in separate alter statements is
supported, generate the necessary "alter" syntax for the given key.
|
String |
applyUniquesOnAlter(UniqueKey uniqueKey,
String defaultCatalog,
String defaultSchema)
If creating unique constraints in separate alter statements is
supported, generate the necessary "alter" syntax for the given key.
|
String |
applyUniquesToTable(Table table)
If constraints are supported, but not in seperate alter statements,
return uniqueConstraintSql in order to add the constraint to the
original table definition.
|
String |
applyUniquesToTable(Table table)
If constraints are supported, but not in seperate alter statements,
return uniqueConstraintSql in order to add the constraint to the
original table definition.
|
String |
applyUniqueToColumn(Column column)
If the dialect does not supports unique constraints, this method should
return the syntax necessary to mutate the column definition
(usually "unique").
|
String |
applyUniqueToColumn(Column column)
If the dialect does not supports unique constraints, this method should
return the syntax necessary to mutate the column definition
(usually "unique").
|
String |
dropUniquesOnAlter(UniqueKey uniqueKey)
If dropping unique constraints in separate alter statements is
supported, generate the necessary "alter" syntax for the given key.
|
String |
dropUniquesOnAlter(UniqueKey uniqueKey,
String defaultCatalog,
String defaultSchema)
If dropping unique constraints in separate alter statements is
supported, generate the necessary "alter" syntax for the given key.
|
String |
uniqueConstraintSql(UniqueKey uniqueKey)
Generates the syntax necessary to create the unique constraint (reused
by all methods).
|
String |
uniqueConstraintSql(UniqueKey uniqueKey)
Generates the syntax necessary to create the unique constraint (reused
by all methods).
|
protected final Dialect dialect
public DefaultUniqueDelegate(Dialect dialect)
public String applyUniqueToColumn(Column column)
UniqueDelegateapplyUniqueToColumn in interface UniqueDelegatepublic String applyUniqueToColumn(Column column)
UniqueDelegateapplyUniqueToColumn in interface UniqueDelegatepublic String applyUniquesToTable(Table table)
UniqueDelegateapplyUniquesToTable in interface UniqueDelegatepublic String applyUniquesToTable(Table table)
UniqueDelegateapplyUniquesToTable in interface UniqueDelegatepublic String applyUniquesOnAlter(UniqueKey uniqueKey, String defaultCatalog, String defaultSchema)
UniqueDelegateapplyUniquesOnAlter in interface UniqueDelegatepublic String applyUniquesOnAlter(UniqueKey uniqueKey)
UniqueDelegateapplyUniquesOnAlter in interface UniqueDelegatepublic String dropUniquesOnAlter(UniqueKey uniqueKey, String defaultCatalog, String defaultSchema)
UniqueDelegatedropUniquesOnAlter in interface UniqueDelegatepublic String dropUniquesOnAlter(UniqueKey uniqueKey)
UniqueDelegatedropUniquesOnAlter in interface UniqueDelegatepublic String uniqueConstraintSql(UniqueKey uniqueKey)
UniqueDelegateuniqueConstraintSql in interface UniqueDelegatepublic String uniqueConstraintSql(UniqueKey uniqueKey)
UniqueDelegateuniqueConstraintSql in interface UniqueDelegateCopyright © 2018 JBoss by Red Hat. All rights reserved.