HHH-7472 - Introduce a "schema management" service

This commit is contained in:
Steve Ebersole 2012-08-14 09:54:28 -05:00
parent 94aa561e19
commit cd480fbd2b
1 changed files with 22 additions and 0 deletions

View File

@ -1844,6 +1844,28 @@ public abstract class Dialect implements ConversionContext {
// DDL support ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // DDL support ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/**
* Get the SQL command used to create the named schema
*
* @param schemaName The name of the schema to be created.
*
* @return The creation command
*/
public String getCreateSchemaCommand(String schemaName) {
return "create schema " + schemaName;
}
/**
* Get the SQL command used to drop the named schema
*
* @param schemaName The name of the schema to be dropped.
*
* @return The drop command
*/
public String getDropSchemaCommand(String schemaName) {
return "drop schema " + schemaName;
}
/** /**
* Does this dialect support the <tt>ALTER TABLE</tt> syntax? * Does this dialect support the <tt>ALTER TABLE</tt> syntax?
* *