com.agimatec.dbtransform
Class ScriptTransformatorTool

java.lang.Object
  extended by com.agimatec.commons.generator.GeneratorTool
      extended by com.agimatec.dbtransform.ScriptTransformatorTool
All Implemented Interfaces:
FilenameFilter

public class ScriptTransformatorTool
extends GeneratorTool
implements FilenameFilter

Description: Transform (migration) scripts from one DBMS dialect to another (postgres to oracle)
User: roman.stumm
Date: 17.12.2007
Time: 11:57:10
Copyright: Agimatec GmbH


Field Summary
 
Fields inherited from class com.agimatec.commons.generator.GeneratorTool
dbms, settings, templateEngine
 
Constructor Summary
ScriptTransformatorTool()
           
 
Method Summary
 boolean accept(File dir, String name)
          decide which scripts to be transformed
protected  Object getConfig()
           
 String getPrefix()
           
protected  ScriptTransformatorSettings getSettings()
           
static void main(String[] args)
           
protected  void readConfig(File configFile)
           
 void runMain(String[] args, ScriptTransformatorSettings settings)
           
 
Methods inherited from class com.agimatec.commons.generator.GeneratorTool
generate, getDestFile, initialize, runMain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptTransformatorTool

public ScriptTransformatorTool()
Method Detail

getConfig

protected Object getConfig()
Specified by:
getConfig in class GeneratorTool

readConfig

protected void readConfig(File configFile)
                   throws IOException,
                          ClassNotFoundException
Specified by:
readConfig in class GeneratorTool
Throws:
IOException
ClassNotFoundException

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

runMain

public void runMain(String[] args,
                    ScriptTransformatorSettings settings)
             throws Exception
Throws:
Exception

getSettings

protected ScriptTransformatorSettings getSettings()

accept

public boolean accept(File dir,
                      String name)
decide which scripts to be transformed

Specified by:
accept in interface FilenameFilter

getPrefix

public String getPrefix()


Copyright © 2008-2012. All Rights Reserved.