Class MigrationV33V40

java.lang.Object
org.nuiton.topia.migration.TopiaMigrationCallbackByClass.MigrationCallBackForVersion
fr.ifremer.isisfish.datastore.migration.MigrationV33V40

public class MigrationV33V40 extends org.nuiton.topia.migration.TopiaMigrationCallbackByClass.MigrationCallBackForVersion
Migration between version 3.3 and 4.0.
Version:
$Revision$ Last update : $Date$ By : $Author$
Author:
chatellier
  • Field Summary

    Fields inherited from class org.nuiton.topia.migration.TopiaMigrationCallbackByClass.MigrationCallBackForVersion

    callBack, version
  • Constructor Summary

    Constructors
    Constructor
    Description
    MigrationV33V40(org.nuiton.version.Version version, org.nuiton.topia.migration.TopiaMigrationCallbackByClass callback)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
    getMaturityEquationContent(int groupId, int groupCount)
    Return maturity equation content generated from previous maturity group (v3) value.
    protected String
    getReproductionRateContent(Population pop, List<Object[]> reproductionResults)
    Return reproduction rate equation content generated from previous group reproduction rate fields (v3).
    protected void
    prepareMigrationScript(org.nuiton.topia.framework.TopiaContextImplementor tx, List<String> queries, boolean showSql, boolean showProgression)
     

    Methods inherited from class org.nuiton.topia.migration.TopiaMigrationCallbackByClass.MigrationCallBackForVersion

    executeSQL, executeSQL, prepareMigration

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MigrationV33V40

      public MigrationV33V40(org.nuiton.version.Version version, org.nuiton.topia.migration.TopiaMigrationCallbackByClass callback)
      Constructor.
      Parameters:
      version - version
      callback - callback
  • Method Details

    • prepareMigrationScript

      protected void prepareMigrationScript(org.nuiton.topia.framework.TopiaContextImplementor tx, List<String> queries, boolean showSql, boolean showProgression) throws org.nuiton.topia.TopiaException
      Specified by:
      prepareMigrationScript in class org.nuiton.topia.migration.TopiaMigrationCallbackByClass.MigrationCallBackForVersion
      Throws:
      org.nuiton.topia.TopiaException
    • getReproductionRateContent

      protected String getReproductionRateContent(Population pop, List<Object[]> reproductionResults)
      Return reproduction rate equation content generated from previous group reproduction rate fields (v3).
      Parameters:
      pop - pop
      reproductionResults - v3 reproduction rate (gtopiaid, rate);
      Returns:
      equation content
    • getMaturityEquationContent

      protected String getMaturityEquationContent(int groupId, int groupCount)
      Return maturity equation content generated from previous maturity group (v3) value.
      Parameters:
      groupId - previous group id
      groupCount - population group count
      Returns:
      equation content