public class

HibernateDdlExecutor

extends Object
implements DdlExecutor
java.lang.Object
   ↳ com.atlassian.confluence.upgrade.ddl.HibernateDdlExecutor

Class Overview

Executes any set of DdlCommands thrown its way.

Summary

Public Constructors
HibernateDdlExecutor(ConfluenceHibernateConfig hibernateConfig, SessionFactory sessionFactory)
Public Methods
CreateIndexCommand createCreateIndexCommand(String indexName, String tableName, String... columnNames)
DropIndexCommand createDropIndexCommand(String indexName, String tableName)
DropTableCommand createDropTableCommand(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)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.upgrade.ddl.DdlExecutor

Public Constructors

public HibernateDdlExecutor (ConfluenceHibernateConfig hibernateConfig, SessionFactory sessionFactory)

Public Methods

public CreateIndexCommand createCreateIndexCommand (String indexName, String tableName, String... columnNames)

public DropIndexCommand createDropIndexCommand (String indexName, String tableName)

public DropTableCommand createDropTableCommand (String tableName)

public 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

public void executeDdlStatements (List<String> statements)

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