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(String indexName, String tableName, String... columnNames)
           
 DropIndexCommand createDropIndexCommand(String indexName, String tableName)
           
 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)

createDropIndexCommand

DropIndexCommand createDropIndexCommand(String indexName,
                                        String tableName)

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

executeDdlStatements

void executeDdlStatements(List<String> statements)

getDdlStatements

List<String> getDdlStatements(List<? extends DdlCommand> commands)


Copyright © 2003-2011 Atlassian. All Rights Reserved.