HHH-7797 Deprecating mistakenly removed Dialect methods

This commit is contained in:
Brett Meyer 2013-01-07 12:17:24 -05:00
parent c4ef270967
commit 31480aa1c8
1 changed files with 45 additions and 0 deletions

View File

@ -2385,4 +2385,49 @@ public abstract class Dialect implements ConversionContext {
public String getNotExpression( String expression ) { public String getNotExpression( String expression ) {
return "not " + expression; return "not " + expression;
} }
/**
* Does this dialect support the <tt>UNIQUE</tt> column syntax?
*
* @return boolean
*
* @deprecated {@link #getUniqueDelegate()} should be overridden instead.
*/
@Deprecated
public boolean supportsUnique() {
return true;
}
/**
* Does this dialect support adding Unique constraints via create and alter table ?
*
* @return boolean
*
* @deprecated {@link #getUniqueDelegate()} should be overridden instead.
*/
@Deprecated
public boolean supportsUniqueConstraintInCreateAlterTable() {
return true;
}
/**
* The syntax used to add a unique constraint to a table.
*
* @param constraintName The name of the unique constraint.
* @return The "add unique" fragment
*
* @deprecated {@link #getUniqueDelegate()} should be overridden instead.
*/
@Deprecated
public String getAddUniqueConstraintString(String constraintName) {
return " add constraint " + constraintName + " unique ";
}
/**
* @deprecated {@link #getUniqueDelegate()} should be overridden instead.
*/
@Deprecated
public boolean supportsNotNullUnique() {
return true;
}
} }