summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntje Fuhrmann2012-08-15 04:33:50 (EDT)
committer Manik Kishore2012-08-15 04:33:50 (EDT)
commitc18f0ea26c24d47066e6205592590819a207cfb8 (patch)
tree037c083a5fc4c36edb712158de670d4788031e56
parentc78f95f62e8781850659383e9278a0e85850dc9f (diff)
downloadorg.eclipse.stardust.engine-c18f0ea26c24d47066e6205592590819a207cfb8.zip
org.eclipse.stardust.engine-c18f0ea26c24d47066e6205592590819a207cfb8.tar.gz
org.eclipse.stardust.engine-c18f0ea26c24d47066e6205592590819a207cfb8.tar.bz2
Jira-ID: CRNT-25663
Implement additional console output explaining the various upgrade steps if option "-verbose" is set. git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/engine@58424 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/cli/sysconsole/UpgradeRuntimeCommand.java8
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/framework/RuntimeUpgradeJob.java46
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/framework/RuntimeUpgrader.java1
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_0_2from2_0_0RuntimeJob.java21
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_0_2fromPre2_0_0RuntimeJob.java21
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_0_3from2_0_2RuntimeJob.java21
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_5_0from2_0_3RuntimeJob.java21
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_5_1from2_5_0RuntimeJob.java21
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_5_3from2_5_1RuntimeJob.java21
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_6from2_5_1RuntimeJob.java21
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_7_2from2_6RuntimeJob.java21
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_7_3from2_7_2RuntimeJob.java21
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R3_0_1from2_7_3RuntimeJob.java21
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R3_0_1from3_0_0RuntimeJob.java21
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R3_0_6from3_0_1RuntimeJob.java21
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R3_2_0from3_0_6RuntimeJob.java21
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R3_6_0from3_2_0RuntimeJob.java21
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R4_0_0from3_6_0RuntimeJob.java21
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R4_5_0from4_0_0RuntimeJob.java21
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R4_6_0from4_5_0RuntimeJob.java21
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R4_7_0from4_6_0RuntimeJob.java21
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R4_9_0from4_7_0RuntimeJob.java21
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R5_2_0from4_9_0RuntimeJob.java29
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R6_0_0from5_2_0RuntimeJob.java38
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R7_0_0from6_x_xRuntimeJob.java28
25 files changed, 546 insertions, 3 deletions
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/cli/sysconsole/UpgradeRuntimeCommand.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/cli/sysconsole/UpgradeRuntimeCommand.java
index 697b463..ccb46b0 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/cli/sysconsole/UpgradeRuntimeCommand.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/cli/sysconsole/UpgradeRuntimeCommand.java
@@ -37,6 +37,7 @@ public class UpgradeRuntimeCommand extends AuditTrailCommand
public static final String UPGRADE_KEY_DDL = "ddl";
public static final String UPGRADE_KEY_DATA = "data";
public static final String UPGRADE_KEY_STEP = "step";
+ public static final String UPGRADE_KEY_VERBOSE = "verbose";
static
{
@@ -57,6 +58,9 @@ public class UpgradeRuntimeCommand extends AuditTrailCommand
argTypes.register("-" + UPGRADE_KEY_STEP, "-s", UPGRADE_KEY_STEP,
"Performs exactly one migration step. May require multiple invocations to fully perform migrations involving temporary schema versions.",
false);
+ argTypes.register("-" + UPGRADE_KEY_VERBOSE, "-v", UPGRADE_KEY_VERBOSE,
+ "Each runtime upgrade job will display additional operation details during execution and also during calls of 'upgraderuntime -describe'.",
+ false);
}
public Options getOptions()
@@ -90,6 +94,10 @@ public class UpgradeRuntimeCommand extends AuditTrailCommand
{
Parameters.instance().setBoolean(RuntimeUpgrader.UPGRADE_STEP, true);
}
+ if (options.containsKey(UPGRADE_KEY_VERBOSE))
+ {
+ Parameters.instance().setBoolean(RuntimeUpgrader.UPGRADE_VERBOSE, true);
+ }
RuntimeItem runtime = new RuntimeItem(
Parameters.instance().getString("AuditTrail.Type"),
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/framework/RuntimeUpgradeJob.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/framework/RuntimeUpgradeJob.java
index df1590d..59e7ef5 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/framework/RuntimeUpgradeJob.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/framework/RuntimeUpgradeJob.java
@@ -60,6 +60,8 @@ public abstract class RuntimeUpgradeJob extends UpgradeJob implements UpgradeObs
RuntimeUpgrader.UPGRADE_DATA, false);
final boolean schemaUpgrade = Parameters.instance().getBoolean(
RuntimeUpgrader.UPGRADE_SCHEMA, false);
+ final boolean verbose = Parameters.instance().getBoolean(
+ RuntimeUpgrader.UPGRADE_VERBOSE, false);
this.item = (RuntimeItem) item;
@@ -74,7 +76,10 @@ public abstract class RuntimeUpgradeJob extends UpgradeJob implements UpgradeObs
info("Upgrading schema...");
this.item.spoolSqlComment(this.getVersion() + " schema upgrade DDL");
-
+ if (verbose)
+ {
+ printUpgradeSchemaInfo();
+ }
upgradeSchema(recover);
setUpgradeState(UPGRADE_LEVEL1);
info("...Schema upgrade done.");
@@ -82,12 +87,20 @@ public abstract class RuntimeUpgradeJob extends UpgradeJob implements UpgradeObs
else
{
info("Skipping schema upgrade DDL as requested.");
+ if (verbose)
+ {
+ printUpgradeSchemaInfo();
+ }
}
// falling through to level 1
case 1:
if (!dryRun && !schemaUpgrade)
{
info("Migrating data...");
+ if (verbose)
+ {
+ printMigrateDataInfo();
+ }
migrateData(recover);
setUpgradeState(UPGRADE_LEVEL2);
info("...Data Migration done.");
@@ -95,6 +108,10 @@ public abstract class RuntimeUpgradeJob extends UpgradeJob implements UpgradeObs
else
{
info("Skipping data migration as requested.");
+ if (verbose)
+ {
+ printMigrateDataInfo();
+ }
}
// falling through to level 2
case 2:
@@ -119,7 +136,10 @@ public abstract class RuntimeUpgradeJob extends UpgradeJob implements UpgradeObs
info("Finalizing schema...");
this.item.spoolSqlComment(this.getVersion() + " schema finalization DDL");
-
+ if(verbose)
+ {
+ printFinalizeSchemaInfo();
+ }
finalizeSchema(recover);
setUpgradeState(UPGRADE_LEVEL4);
info("...Schema finalization done.");
@@ -127,6 +147,10 @@ public abstract class RuntimeUpgradeJob extends UpgradeJob implements UpgradeObs
else
{
info("Skipping schema finalization DDL as requested.");
+ if(verbose)
+ {
+ printFinalizeSchemaInfo();
+ }
}
}
// falling through to level 4
@@ -155,7 +179,22 @@ public abstract class RuntimeUpgradeJob extends UpgradeJob implements UpgradeObs
protected abstract void migrateData(boolean recover) throws UpgradeException;
protected abstract void finalizeSchema(boolean recover) throws UpgradeException;
-
+
+ /**
+ * This method prints detailed information that describes what is done by this upgrade schema task.
+ */
+ protected abstract void printUpgradeSchemaInfo();
+
+ /**
+ * This method prints detailed information that describes what is done by this migrate data task.
+ */
+ protected abstract void printMigrateDataInfo();
+
+ /**
+ * This method prints detailed information that describes what is done by this finalize schema task.
+ */
+ protected abstract void printFinalizeSchemaInfo();
+
protected void upgradeModel(boolean recover) throws UpgradeException
{
ModelItem model = null;
@@ -562,4 +601,5 @@ public abstract class RuntimeUpgradeJob extends UpgradeJob implements UpgradeObs
trace.info("...continueing anyway.");
}
}
+
}
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/framework/RuntimeUpgrader.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/framework/RuntimeUpgrader.java
index 8e9ab02..af08c7f 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/framework/RuntimeUpgrader.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/framework/RuntimeUpgrader.java
@@ -34,6 +34,7 @@ public class RuntimeUpgrader extends Upgrader
public static final String UPGRADE_SCHEMA = "ag.carnot.upgrade.runtime.schema";
public static final String UPGRADE_DATA = "ag.carnot.upgrade.runtime.data";
+ public static final String UPGRADE_VERBOSE = "ag.carnot.upgrade.verbose";
private String password;
private List jobs;
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_0_2from2_0_0RuntimeJob.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_0_2from2_0_0RuntimeJob.java
index e4a9b94..f248a5e 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_0_2from2_0_0RuntimeJob.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_0_2from2_0_0RuntimeJob.java
@@ -738,4 +738,25 @@ public class R2_0_2from2_0_0RuntimeJob extends OracleAwareRuntimeUpgradeJob
}
}
+
+ @Override
+ protected void printUpgradeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printMigrateDataInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printFinalizeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
}
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_0_2fromPre2_0_0RuntimeJob.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_0_2fromPre2_0_0RuntimeJob.java
index 093ef96..96f1f99 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_0_2fromPre2_0_0RuntimeJob.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_0_2fromPre2_0_0RuntimeJob.java
@@ -748,4 +748,25 @@ public class R2_0_2fromPre2_0_0RuntimeJob extends OracleAwareRuntimeUpgradeJob
{
return version.compareTo(new Version(2, 0, 0)) < 0;
}
+
+ @Override
+ protected void printUpgradeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printMigrateDataInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printFinalizeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
}
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_0_3from2_0_2RuntimeJob.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_0_3from2_0_2RuntimeJob.java
index 6e6c7dd..8d654f9 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_0_3from2_0_2RuntimeJob.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_0_3from2_0_2RuntimeJob.java
@@ -165,4 +165,25 @@ public class R2_0_3from2_0_2RuntimeJob extends OracleAwareRuntimeUpgradeJob
protected void finalizeSchema(boolean recover) throws UpgradeException
{
}
+
+ @Override
+ protected void printUpgradeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printMigrateDataInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printFinalizeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
}
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_5_0from2_0_3RuntimeJob.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_5_0from2_0_3RuntimeJob.java
index 7bbe80e..e156ca3 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_5_0from2_0_3RuntimeJob.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_5_0from2_0_3RuntimeJob.java
@@ -92,4 +92,25 @@ public class R2_5_0from2_0_3RuntimeJob extends OracleAwareRuntimeUpgradeJob
{
return new Version(2, 5, 0);
}
+
+ @Override
+ protected void printUpgradeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printMigrateDataInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printFinalizeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
}
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_5_1from2_5_0RuntimeJob.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_5_1from2_5_0RuntimeJob.java
index 57a8bde..200012f 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_5_1from2_5_0RuntimeJob.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_5_1from2_5_0RuntimeJob.java
@@ -61,4 +61,25 @@ public class R2_5_1from2_5_0RuntimeJob extends OracleAwareRuntimeUpgradeJob
{
return new Version(2, 5, 1);
}
+
+ @Override
+ protected void printUpgradeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printMigrateDataInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printFinalizeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
}
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_5_3from2_5_1RuntimeJob.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_5_3from2_5_1RuntimeJob.java
index 0ebc084..0f4d8f5 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_5_3from2_5_1RuntimeJob.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_5_3from2_5_1RuntimeJob.java
@@ -206,4 +206,25 @@ public class R2_5_3from2_5_1RuntimeJob extends OracleAwareRuntimeUpgradeJob
{
return new Version(2, 5, 3);
}
+
+ @Override
+ protected void printUpgradeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printMigrateDataInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printFinalizeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
}
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_6from2_5_1RuntimeJob.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_6from2_5_1RuntimeJob.java
index 144c2e8..a4ee170 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_6from2_5_1RuntimeJob.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_6from2_5_1RuntimeJob.java
@@ -254,4 +254,25 @@ public class R2_6from2_5_1RuntimeJob extends OracleAwareRuntimeUpgradeJob
{
return new Version(2, 6, 0);
}
+
+ @Override
+ protected void printUpgradeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printMigrateDataInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printFinalizeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
}
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_7_2from2_6RuntimeJob.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_7_2from2_6RuntimeJob.java
index 295b816..d52961d 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_7_2from2_6RuntimeJob.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_7_2from2_6RuntimeJob.java
@@ -331,4 +331,25 @@ public class R2_7_2from2_6RuntimeJob extends OracleAwareRuntimeUpgradeJob
}
}
}
+
+ @Override
+ protected void printUpgradeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printMigrateDataInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printFinalizeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
}
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_7_3from2_7_2RuntimeJob.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_7_3from2_7_2RuntimeJob.java
index 04203ca..1bf77d0 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_7_3from2_7_2RuntimeJob.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R2_7_3from2_7_2RuntimeJob.java
@@ -331,4 +331,25 @@ public class R2_7_3from2_7_2RuntimeJob extends OracleDB2AwareRuntimeUpgradeJob
{
return VERSION;
}
+
+ @Override
+ protected void printUpgradeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printMigrateDataInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printFinalizeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
}
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R3_0_1from2_7_3RuntimeJob.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R3_0_1from2_7_3RuntimeJob.java
index b2c8862..2f293d7 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R3_0_1from2_7_3RuntimeJob.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R3_0_1from2_7_3RuntimeJob.java
@@ -1146,4 +1146,25 @@ public class R3_0_1from2_7_3RuntimeJob extends OracleDB2AwareRuntimeUpgradeJob
this.activeTargetStateFilter = activeTargetStateFilter;
}
}
+
+ @Override
+ protected void printUpgradeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printMigrateDataInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printFinalizeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
}
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R3_0_1from3_0_0RuntimeJob.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R3_0_1from3_0_0RuntimeJob.java
index 5526544..be3b5fd 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R3_0_1from3_0_0RuntimeJob.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R3_0_1from3_0_0RuntimeJob.java
@@ -317,4 +317,25 @@ public class R3_0_1from3_0_0RuntimeJob extends OracleDB2AwareRuntimeUpgradeJob
QueryUtils.closeStatement(stmt);
}
}
+
+ @Override
+ protected void printUpgradeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printMigrateDataInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printFinalizeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
}
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R3_0_6from3_0_1RuntimeJob.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R3_0_6from3_0_1RuntimeJob.java
index f7d5ba9..045391c 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R3_0_6from3_0_1RuntimeJob.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R3_0_6from3_0_1RuntimeJob.java
@@ -161,4 +161,25 @@ public class R3_0_6from3_0_1RuntimeJob extends OracleDB2AwareRuntimeUpgradeJob
{
// no schema finalization needed
}
+
+ @Override
+ protected void printUpgradeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printMigrateDataInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printFinalizeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
}
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R3_2_0from3_0_6RuntimeJob.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R3_2_0from3_0_6RuntimeJob.java
index fcbcdd4..8765c29 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R3_2_0from3_0_6RuntimeJob.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R3_2_0from3_0_6RuntimeJob.java
@@ -1972,4 +1972,25 @@ public class R3_2_0from3_0_6RuntimeJob extends DbmsAwareRuntimeUpgradeJob
int afterMigration(RuntimeItem item) throws SQLException;
}
+
+ @Override
+ protected void printUpgradeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printMigrateDataInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printFinalizeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
}
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R3_6_0from3_2_0RuntimeJob.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R3_6_0from3_2_0RuntimeJob.java
index c4124eb..78e3591 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R3_6_0from3_2_0RuntimeJob.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R3_6_0from3_2_0RuntimeJob.java
@@ -539,4 +539,25 @@ public class R3_6_0from3_2_0RuntimeJob extends DbmsAwareRuntimeUpgradeJob
QueryUtils.closeStatement(insertSuperRefStmt);
}
}
+
+ @Override
+ protected void printUpgradeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printMigrateDataInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printFinalizeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
}
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R4_0_0from3_6_0RuntimeJob.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R4_0_0from3_6_0RuntimeJob.java
index 45ef134..73f8dd6 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R4_0_0from3_6_0RuntimeJob.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R4_0_0from3_6_0RuntimeJob.java
@@ -1059,4 +1059,25 @@ public class R4_0_0from3_6_0RuntimeJob extends DbmsAwareRuntimeUpgradeJob
}
}
+ @Override
+ protected void printUpgradeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printMigrateDataInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printFinalizeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
}
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R4_5_0from4_0_0RuntimeJob.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R4_5_0from4_0_0RuntimeJob.java
index 90100f2..dc197f2 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R4_5_0from4_0_0RuntimeJob.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R4_5_0from4_0_0RuntimeJob.java
@@ -685,4 +685,25 @@ public class R4_5_0from4_0_0RuntimeJob extends DbmsAwareRuntimeUpgradeJob
return result;
}
+
+ @Override
+ protected void printUpgradeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printMigrateDataInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printFinalizeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
}
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R4_6_0from4_5_0RuntimeJob.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R4_6_0from4_5_0RuntimeJob.java
index 60865aa..4fba2bf 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R4_6_0from4_5_0RuntimeJob.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R4_6_0from4_5_0RuntimeJob.java
@@ -1158,4 +1158,25 @@ public class R4_6_0from4_5_0RuntimeJob extends DbmsAwareRuntimeUpgradeJob
return rowCounter;
}
+
+ @Override
+ protected void printUpgradeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printMigrateDataInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printFinalizeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
}
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R4_7_0from4_6_0RuntimeJob.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R4_7_0from4_6_0RuntimeJob.java
index bb8887e..7e42463 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R4_7_0from4_6_0RuntimeJob.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R4_7_0from4_6_0RuntimeJob.java
@@ -80,4 +80,25 @@ public class R4_7_0from4_6_0RuntimeJob extends DbmsAwareRuntimeUpgradeJob
protected void finalizeSchema(boolean recover) throws UpgradeException
{
}
+
+ @Override
+ protected void printUpgradeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printMigrateDataInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printFinalizeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
}
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R4_9_0from4_7_0RuntimeJob.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R4_9_0from4_7_0RuntimeJob.java
index 0190bb5..a70dc88 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R4_9_0from4_7_0RuntimeJob.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R4_9_0from4_7_0RuntimeJob.java
@@ -112,4 +112,25 @@ public class R4_9_0from4_7_0RuntimeJob extends DbmsAwareRuntimeUpgradeJob
protected void finalizeSchema(boolean recover) throws UpgradeException
{
}
+
+ @Override
+ protected void printUpgradeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printMigrateDataInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ protected void printFinalizeSchemaInfo()
+ {
+ // TODO Auto-generated method stub
+
+ }
}
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R5_2_0from4_9_0RuntimeJob.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R5_2_0from4_9_0RuntimeJob.java
index 2564d2c..cd9619d 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R5_2_0from4_9_0RuntimeJob.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R5_2_0from4_9_0RuntimeJob.java
@@ -346,4 +346,33 @@ public class R5_2_0from4_9_0RuntimeJob extends DbmsAwareRuntimeUpgradeJob
}
error("Failed migrating runtime item tables.", sqle);
}
+
+ @Override
+ protected void printUpgradeSchemaInfo()
+ {
+ info("A new table 'department' with the columns " +
+ "'oid', 'id', 'name', 'partition', 'parentDepartment', 'description', 'organization' " +
+ "and indexes 'department_idx1' and 'department_idx2' will be created.");
+ info("A new table 'department_hierarchy' with the columns 'superDepartment', 'subDepartment' " +
+ "and indexes 'department_hier_idx1' and 'department_hier_idx2' will be created.");
+ info("The new columns 'currentUserPerformer', 'currentPerformer' and 'currentDepartment' " +
+ "will be created in table 'activity_instance' " +
+ "and indexes 'activity_inst_idx2' and 'activity_inst_idx3' will be modified.");
+ info("The new columns 'performerKind', 'performer', 'department' and 'state' will be created in table 'workitem' " +
+ "and index 'workitem_idx2' will be modified.");
+ info("The new columns 'department' and 'onBehalfOfDepartment' will be created in table 'act_inst_history'.");
+ info("The new columns 'model', 'participant' and 'department' will be created in table 'user_participant' " +
+ "and index 'user_particip_idx2' will be modified.");
+ info("The new column 'extendedState' will be created in table 'workflowuser'.");
+ }
+
+ @Override
+ protected void printMigrateDataInfo()
+ {
+ }
+
+ @Override
+ protected void printFinalizeSchemaInfo()
+ {
+ }
}
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R6_0_0from5_2_0RuntimeJob.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R6_0_0from5_2_0RuntimeJob.java
index b70749e..63ff67f 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R6_0_0from5_2_0RuntimeJob.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R6_0_0from5_2_0RuntimeJob.java
@@ -950,4 +950,42 @@ public class R6_0_0from5_2_0RuntimeJob extends DbmsAwareRuntimeUpgradeJob
return null;
}
}
+
+ @Override
+ protected void printUpgradeSchemaInfo()
+ {
+ info("A new table 'preferences' with the columns "
+ + "'ownerId', 'ownerType', 'moduleId', 'preferencesId', 'partition', 'stringValue' "
+ + "and index 'preferences_idx1' will be created.");
+ info("The table 'message_store' will be dropped.");
+ info("A new table 'model_ref' with the columns "
+ + "'code', 'modelOid', 'id', 'refOid', 'deployment' "
+ + "and indexes 'model_ref_idx1' and 'model_ref_idx2' will be created.");
+ info("A new table 'model_dep' with the columns "
+ + "'oid', 'deployer', 'deploymentTime', 'validFrom', 'deploymentComment' "
+ + "and indexes 'model_dep_idx1', 'model_dep_idx2' and 'model_dep_idx3' will be created.");
+ Session session = (Session) SessionFactory.getSession(SessionFactory.AUDIT_TRAIL);
+ if (session.getDBDescriptor().getUseLockTablesDefault())
+ {
+ info("A new table 'model_dep_lck' with the column 'oid' and index 'model_dep_lck_idx' will be created.");
+ }
+ info("A new column 'deployment' will be created in table 'process_instance'.");
+ }
+
+ @Override
+ protected void printMigrateDataInfo()
+ {
+ info("Table 'model_ref' will be populated.");
+ info("Table 'model_dep' will be populated.");
+ info("Field 'deployment' in table 'process_instance' will be populated.");
+ info("Index 'user_particip_idx2' in table 'user_participant' will be modified.");
+ info("Permissions will be inserted into table 'preferences'.");
+ info("Model Id will be added to xml data cluster definition.");
+ }
+
+ @Override
+ protected void printFinalizeSchemaInfo()
+ {
+
+ }
}
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R7_0_0from6_x_xRuntimeJob.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R7_0_0from6_x_xRuntimeJob.java
index 1074a71..d878045 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R7_0_0from6_x_xRuntimeJob.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/core/upgrade/jobs/R7_0_0from6_x_xRuntimeJob.java
@@ -351,6 +351,34 @@ public class R7_0_0from6_x_xRuntimeJob extends DbmsAwareRuntimeUpgradeJob
}
}
+ @Override
+ protected void printUpgradeSchemaInfo()
+ {
+ info("The new columns 'criticality', 'propertiesAvailable', 'processInstance' and index 'activity_inst_idx9' will be created in table 'activity_instance'.");
+ info("A new column 'criticality' will be created in table 'workitem'.");
+ info("A new table 'procinst_link' with the columns "
+ + "'processInstance', 'linkedProcessInstance', 'linkType', 'createTime', 'creatingUser' and 'linkingComment' will be created.");
+ info("A new table 'link_type' with the columns 'oid', 'id', 'description', 'partition' and index 'link_type_idx1' will be created.");
+ info("Datacluster setup key will be upgraded to 'org.eclipse.stardust.engine.core.runtime.setup_definition' in column 'name' in table 'property'.");
+ if (!item.isArchiveAuditTrail() && containsTable(AI_LCK_TABLE_NAME))
+ {
+ info("A new table 'partition_lck' with column 'oid' and index 'partition_lck_idx' will be created.");
+ }
+ }
+
+ @Override
+ protected void printMigrateDataInfo()
+ {
+ info("Initializes the field 'propertiesAvailable' in table 'activity_instance'.");
+ info("Missing XPaths which are needed to store the revisionComment will be created for Structured Datatypes.");
+ }
+
+ @Override
+ protected void printFinalizeSchemaInfo()
+ {
+ info("Default link types will be added.");
+ }
+
protected void migrateData(boolean recover) throws UpgradeException
{
try