Interface DdlExecutor
-
- All Known Implementing Classes:
HibernateDdlExecutor
public interface DdlExecutor
Executes any set ofDdlCommand
s thrown its way.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateIndexCommand
createCreateIndexCommand(String indexName, String tableName, boolean isUnique, String... columnNames)
CreateIndexCommand
createCreateIndexCommand(String indexName, String tableName, String... columnNames)
DropIndexCommand
createDropIndexCommand(String indexName, String tableName)
DropTableCommand
createDropTableCommand(String tableName)
RenameTableCommand
createRenameTableCommand(String oldTableName, String newTableName)
CreateUniqueConstraintWithMultipleNullsCommand
createUniqueConstraintWithMultipleNullsCommand(String constraintName, String tableName, String columnName)
void
executeDdl(List<? extends DdlCommand> commands)
Perform a set of data definition altering actions.void
executeDdlStatements(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)
-
-