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
All Implemented Interfaces:
java.lang.Cloneable

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 473814 2006-11-11 22:30:30Z tv $
Author:
Leon Messerschmidt, Jason van Zyl

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
TorqueSQLTransformTask()
           
 
Method Summary
 void execute()
          Execute the task.
 java.lang.String getInputFile()
          Get the current input file
 java.lang.String getOutputFile()
          Get the current output file.
 void setInputFile(java.lang.String v)
          Set the sql input file.
 void setOutputFile(java.lang.String v)
          Set the current output file.
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TorqueSQLTransformTask

public TorqueSQLTransformTask()
Method Detail

getInputFile

public java.lang.String getInputFile()
Get the current input file

Returns:
the input file

setInputFile

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

Parameters:
v - the input file

getOutputFile

public java.lang.String getOutputFile()
Get the current output file.

Returns:
the output file

setOutputFile

public void setOutputFile(java.lang.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 © 2000-2012 Apache Software Foundation. All Rights Reserved.