org.apache.ode.bpel.engine.migration
Class CorrelationKeySetMigration

java.lang.Object
  extended by org.apache.ode.bpel.engine.migration.CorrelationKeySetMigration
All Implemented Interfaces:
Migration

public class CorrelationKeySetMigration
extends java.lang.Object
implements Migration

Migrates the database from using single correlations to multiple correlations support.


Constructor Summary
CorrelationKeySetMigration()
           
 
Method Summary
 boolean migrate(java.util.Set<BpelProcess> registeredProcesses, BpelDAOConnection connection)
          All database migrations are run in the same transaction so if one fails, they will all be rollbacked.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CorrelationKeySetMigration

public CorrelationKeySetMigration()
Method Detail

migrate

public boolean migrate(java.util.Set<BpelProcess> registeredProcesses,
                       BpelDAOConnection connection)
Description copied from interface: Migration
All database migrations are run in the same transaction so if one fails, they will all be rollbacked. There are two ways to fail: either return false or throw an exception. The difference is that throwing an exception will stop the server startup whereas returning false will let the server continue its starting cycle and run on the non-migrated data.

Specified by:
migrate in interface Migration