com.googlecode.flyway.core.init
Class DbInit

java.lang.Object
  extended by com.googlecode.flyway.core.init.DbInit

public class DbInit
extends java.lang.Object

Main workflow for migrating the database.

Author:
Axel Fontaine

Constructor Summary
DbInit(org.springframework.transaction.support.TransactionTemplate transactionTemplate, MetaDataTable metaDataTable)
          Creates a new database migrator.
 
Method Summary
 void init(SchemaVersion version, java.lang.String description)
          Initializes the metadata table with this version and this description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbInit

public DbInit(org.springframework.transaction.support.TransactionTemplate transactionTemplate,
              MetaDataTable metaDataTable)
Creates a new database migrator.

Parameters:
transactionTemplate - The transaction template to use.
metaDataTable - The database metadata table.
Method Detail

init

public void init(SchemaVersion version,
                 java.lang.String description)
          throws InitException
Initializes the metadata table with this version and this description.

Parameters:
version - The version to initialize the metadata table with.
description - The description for the ionitial version.
Throws:
InitException - when the initialization failed.


Copyright © 2011. All Rights Reserved.