org.apache.torque.task
Class TorqueSQLTransformTask

java.lang.Object
  extended by Task
      extended by org.apache.torque.task.TorqueSQLTransformTask

public class TorqueSQLTransformTask
extends Task

An ant task for creating an xml schema from an sql schema

Version:
$Id: TorqueSQLTransformTask.java,v 1.1 2007-10-21 07:57:26 abyrne Exp $
Author:
Leon Messerschmidt, Jason van Zyl

Constructor Summary
TorqueSQLTransformTask()
           
 
Method Summary
 void execute()
          Execute the task.
 String getInputFile()
          Get the current input file
 String getOutputFile()
          Get the current output file.
 void setInputFile(String v)
          Set the sql input file.
 void setOutputFile(String v)
          Set the current output file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TorqueSQLTransformTask

public TorqueSQLTransformTask()
Method Detail

getInputFile

public String getInputFile()
Get the current input file

Returns:
the input file

setInputFile

public void setInputFile(String v)
Set the sql input file. This file must exist

Parameters:
v - the input file

getOutputFile

public String getOutputFile()
Get the current output file.

Returns:
the output file

setOutputFile

public void setOutputFile(String v)
Set the current output file. If the file does not exist it will be created. If the file exists all it's contents will be replaced.

Parameters:
v - the output file

execute

public void execute()
             throws BuildException
Execute the task.

Throws:
BuildException - Any exceptions caught during procssing will be rethrown wrapped into a BuildException


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.