org.qi4j.migration.assembly
Class MigrationRule

java.lang.Object
  extended by org.qi4j.migration.assembly.AbstractMigrationRule
      extended by org.qi4j.migration.assembly.MigrationRule

public class MigrationRule
extends AbstractMigrationRule

Migration rule that does not apply to a specific entity type


Field Summary
 
Fields inherited from class org.qi4j.migration.assembly.AbstractMigrationRule
fromVersion, toVersion
 
Constructor Summary
MigrationRule(String fromVersion, String toVersion, MigrationOperation operation)
           
 
Method Summary
 void downgrade(StateStore stateStore, Migrator migrator)
           
 String toString()
           
 void upgrade(StateStore stateStore, Migrator migrator)
           
 
Methods inherited from class org.qi4j.migration.assembly.AbstractMigrationRule
fromVersion, toVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MigrationRule

public MigrationRule(String fromVersion,
                     String toVersion,
                     MigrationOperation operation)
Method Detail

upgrade

public void upgrade(StateStore stateStore,
                    Migrator migrator)
             throws IOException
Throws:
IOException

downgrade

public void downgrade(StateStore stateStore,
                      Migrator migrator)
               throws IOException
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object