org.sonar.core.persistence
Class DatabaseMigrator

java.lang.Object
  extended by org.sonar.core.persistence.DatabaseMigrator
All Implemented Interfaces:
ServerComponent

public class DatabaseMigrator
extends Object
implements ServerComponent

Restore schema by executing DDL scripts. Only Derby database is supported. Other databases are created by Ruby on Rails migrations.

Since:
2.12

Constructor Summary
DatabaseMigrator(MyBatis myBatis, Database database)
           
 
Method Summary
 boolean createDatabase()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseMigrator

public DatabaseMigrator(MyBatis myBatis,
                        Database database)
Method Detail

createDatabase

public boolean createDatabase()
Returns:
true if the database has been created, false if this database is not supported


Copyright © 2009-2012 SonarSource. All Rights Reserved.