org.apache.torque.task
Class TorqueSQLTransformTask

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

public class TorqueSQLTransformTask
extends org.apache.tools.ant.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

Field Summary
private  String inputFile
          SQL input file.
private  String outputFile
          XML descriptor output file.
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
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 org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inputFile

private String inputFile
SQL input file.


outputFile

private String outputFile
XML descriptor output file.

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 org.apache.tools.ant.BuildException
Execute the task.

Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException - Any exceptions caught during procssing will be rethrown wrapped into a BuildException


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.