de.willuhn.jameica.hbci.migration
Class DatabaseMigrationTask

java.lang.Object
  extended by de.willuhn.jameica.hbci.migration.DatabaseMigrationTask
All Implemented Interfaces:
de.willuhn.jameica.system.BackgroundTask
Direct Known Subclasses:
McKoiToH2MigrationTask

public class DatabaseMigrationTask
extends java.lang.Object
implements de.willuhn.jameica.system.BackgroundTask

Task zum Migrieren der Datenbank.


Field Summary
protected  de.willuhn.util.I18N i18n
           
protected  de.willuhn.datasource.rmi.DBService source
           
protected  de.willuhn.datasource.rmi.DBService target
           
 
Constructor Summary
DatabaseMigrationTask()
           
 
Method Summary
protected  void copy(java.lang.Class type, de.willuhn.util.ProgressMonitor monitor)
          Kopiert eine einzelne Tabelle.
protected  void fixObject(de.willuhn.datasource.db.AbstractDBObject object, de.willuhn.util.ProgressMonitor monitor)
          Kann von der abgeleiteten Klasse ueberschrieben werden, um Daten zu korrigieren.
 void interrupt()
           
 boolean isInterrupted()
           
 void run(de.willuhn.util.ProgressMonitor monitor)
           
 void setSource(de.willuhn.datasource.rmi.DBService source)
          Legt die Datenquelle fest.
 void setTarget(de.willuhn.datasource.rmi.DBService target)
          Legt das Datenziel fest.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

i18n

protected de.willuhn.util.I18N i18n

source

protected de.willuhn.datasource.rmi.DBService source

target

protected de.willuhn.datasource.rmi.DBService target
Constructor Detail

DatabaseMigrationTask

public DatabaseMigrationTask()
Method Detail

setSource

public void setSource(de.willuhn.datasource.rmi.DBService source)
Legt die Datenquelle fest.

Parameters:
source - Datenquelle.

setTarget

public void setTarget(de.willuhn.datasource.rmi.DBService target)
Legt das Datenziel fest.

Parameters:
target - Datenziel.

interrupt

public void interrupt()
Specified by:
interrupt in interface de.willuhn.jameica.system.BackgroundTask
See Also:
BackgroundTask.interrupt()

isInterrupted

public boolean isInterrupted()
Specified by:
isInterrupted in interface de.willuhn.jameica.system.BackgroundTask
See Also:
BackgroundTask.isInterrupted()

run

public void run(de.willuhn.util.ProgressMonitor monitor)
         throws de.willuhn.util.ApplicationException
Specified by:
run in interface de.willuhn.jameica.system.BackgroundTask
Throws:
de.willuhn.util.ApplicationException
See Also:
BackgroundTask.run(de.willuhn.util.ProgressMonitor)

fixObject

protected void fixObject(de.willuhn.datasource.db.AbstractDBObject object,
                         de.willuhn.util.ProgressMonitor monitor)
                  throws java.rmi.RemoteException
Kann von der abgeleiteten Klasse ueberschrieben werden, um Daten zu korrigieren.

Parameters:
object - das ggf noch zu korrigierende Objekt.
monitor - Monitor.
Throws:
java.rmi.RemoteException

copy

protected void copy(java.lang.Class type,
                    de.willuhn.util.ProgressMonitor monitor)
             throws java.lang.Exception
Kopiert eine einzelne Tabelle.

Parameters:
type - Objekttyp.
monitor - Monitor.
Throws:
java.lang.Exception