com.atlassian.confluence.upgrade.ddl
Interface DdlExecutor

All Known Implementing Classes:
HibernateDdlExecutor

public interface DdlExecutor

Executes any set of DdlCommands thrown its way.

Since:
4.0

Method Summary
 CreateIndexCommand createCreateIndexCommand(java.lang.String indexName, java.lang.String tableName, java.lang.String... columnNames)
           
 DropIndexCommand createDropIndexCommand(java.lang.String indexName, java.lang.String tableName)
           
 DropTableCommand createDropTableCommand(java.lang.String tableName)
           
 CreateUniqueConstraintWithMultipleNullsCommand createUniqueConstraintWithMultipleNullsCommand(java.lang.String constraintName, java.lang.String tableName, java.lang.String columnName)
           
 void executeDdl(java.util.List<? extends DdlCommand> commands)
          Perform a set of data definition altering actions.
 void executeDdlStatements(java.util.List<java.lang.String> statements)
           
 java.util.List<java.lang.String> getDdlStatements(java.util.List<? extends DdlCommand> commands)
           
 

Method Detail

createCreateIndexCommand

CreateIndexCommand createCreateIndexCommand(java.lang.String indexName,
                                            java.lang.String tableName,
                                            java.lang.String... columnNames)

createUniqueConstraintWithMultipleNullsCommand

CreateUniqueConstraintWithMultipleNullsCommand createUniqueConstraintWithMultipleNullsCommand(java.lang.String constraintName,
                                                                                              java.lang.String tableName,
                                                                                              java.lang.String columnName)
Since:
5.3

createDropIndexCommand

DropIndexCommand createDropIndexCommand(java.lang.String indexName,
                                        java.lang.String tableName)

createDropTableCommand

DropTableCommand createDropTableCommand(java.lang.String tableName)

executeDdl

void executeDdl(java.util.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

executeDdlStatements

void executeDdlStatements(java.util.List<java.lang.String> statements)

getDdlStatements

java.util.List<java.lang.String> getDdlStatements(java.util.List<? extends DdlCommand> commands)


Copyright © 2003-2014 Atlassian. All Rights Reserved.