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
ConstructorDescriptionMigrationV33V40
(org.nuiton.version.Version version, org.nuiton.topia.migration.TopiaMigrationCallbackByClass callback) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
Constructor Details
-
MigrationV33V40
public MigrationV33V40(org.nuiton.version.Version version, org.nuiton.topia.migration.TopiaMigrationCallbackByClass callback) Constructor.- Parameters:
version
- versioncallback
- 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 classorg.nuiton.topia.migration.TopiaMigrationCallbackByClass.MigrationCallBackForVersion
- Throws:
org.nuiton.topia.TopiaException
-
getReproductionRateContent
Return reproduction rate equation content generated from previous group reproduction rate fields (v3).- Parameters:
pop
- popreproductionResults
- v3 reproduction rate (gtopiaid, rate);- Returns:
- equation content
-
getMaturityEquationContent
Return maturity equation content generated from previous maturity group (v3) value.- Parameters:
groupId
- previous group idgroupCount
- population group count- Returns:
- equation content
-