org.openanzo.jdbc.utils.opgen.ant
Class CompositionTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.MatchingTask
              extended by org.openanzo.jdbc.utils.opgen.ant.CompositionTask
All Implemented Interfaces:
org.apache.tools.ant.types.selectors.SelectorContainer

public class CompositionTask
extends org.apache.tools.ant.taskdefs.MatchingTask

An ant task to reads in rdb statements (SQL, DDL, etc.) from files (as specified in the ant file) and composes Anzo SQL Files (i.e. DB2.sql) as well as generates java rdb statement wrapper files.

Author:
Joe Betz

Nested Class Summary
static class CompositionTask.PSTask
          Provides file listings of prepared statements.
 
Constructor Summary
CompositionTask()
          Create a new composition task
 
Method Summary
 void addDDL(DDLTask ddlTask)
          Add a ddl task to this task
 void addPreparedStatements(CompositionTask.PSTask ps)
          Add a preparedStatement task to this task
 void execute()
           
 java.lang.String getOutputFormat()
          Set the output format for this task
 void setDestdir(java.io.File destinationFile)
          Set the destination file
 void setOutputFormat(java.lang.String outputFormat)
          Set the outputStream for this task
 
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, init, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositionTask

public CompositionTask()
Create a new composition task

Method Detail

addDDL

public void addDDL(DDLTask ddlTask)
Add a ddl task to this task

Parameters:
ddlTask - to add

addPreparedStatements

public void addPreparedStatements(CompositionTask.PSTask ps)
Add a preparedStatement task to this task

Parameters:
ps - preparedStatement task to add

setDestdir

public void setDestdir(java.io.File destinationFile)
Set the destination file

Parameters:
destinationFile - to which this sql is written

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException

setOutputFormat

public void setOutputFormat(java.lang.String outputFormat)
Set the outputStream for this task

Parameters:
outputFormat - for this task

getOutputFormat

public java.lang.String getOutputFormat()
Set the output format for this task

Returns:
the output format for this task


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.