Interface DdlExecutor
-
- All Known Implementing Classes:
HibernateDdlExecutor
public interface DdlExecutorExecutes any set ofDdlCommands thrown its way.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateIndexCommandcreateCreateIndexCommand(String indexName, String tableName, boolean isUnique, String... columnNames)CreateIndexCommandcreateCreateIndexCommand(String indexName, String tableName, String... columnNames)DropIndexCommandcreateDropIndexCommand(String indexName, String tableName)DropTableCommandcreateDropTableCommand(String tableName)RenameTableCommandcreateRenameTableCommand(String oldTableName, String newTableName)CreateUniqueConstraintWithMultipleNullsCommandcreateUniqueConstraintWithMultipleNullsCommand(String constraintName, String tableName, String columnName)voidexecuteDdl(List<? extends DdlCommand> commands)Perform a set of data definition altering actions.voidexecuteDdlStatements(List<String> statements)List<String>getDdlStatements(List<? extends DdlCommand> commands)
-
-
-
Method Detail
-
createCreateIndexCommand
CreateIndexCommand createCreateIndexCommand(String indexName, String tableName, String... columnNames)
-
createCreateIndexCommand
CreateIndexCommand createCreateIndexCommand(String indexName, String tableName, boolean isUnique, String... columnNames)
-
createUniqueConstraintWithMultipleNullsCommand
CreateUniqueConstraintWithMultipleNullsCommand createUniqueConstraintWithMultipleNullsCommand(String constraintName, String tableName, String columnName)
- Since:
- 5.3
-
createDropIndexCommand
DropIndexCommand createDropIndexCommand(String indexName, String tableName)
-
createDropTableCommand
DropTableCommand createDropTableCommand(String tableName)
-
createRenameTableCommand
RenameTableCommand createRenameTableCommand(String oldTableName, String newTableName)
- Since:
- 5.7
-
executeDdl
void executeDdl(List<? extends DdlCommand> commands)
Perform a set of data definition altering actions. Each action is executed as a separate statement.- Parameters:
commands- A collection of ddl commands to perform
-
getDdlStatements
List<String> getDdlStatements(List<? extends DdlCommand> commands)
-
-