net.sourceforge.addam.selectexec
Class SelectExecTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.JDBCTask
              extended by net.sourceforge.addam.selectexec.SelectExecTask

public class SelectExecTask
extends org.apache.tools.ant.taskdefs.JDBCTask

This is a strange task, but it can be quite useful... it executes the given SQL and treats the results (the first column, specifically) as a new set of SQL which it then executes.

Since:
Nov 30, 2004 9:07:45 PM
Author:
TIM3

Field Summary
private  int batchSize
           
private  String text
           
 
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
SelectExecTask()
           
 
Method Summary
 void addText(String text)
          adds to the SQL statement
 void execute()
           
 void setBatchSize(int size)
          sets the number of statements to execute simultaneously
 
Methods inherited from class org.apache.tools.ant.taskdefs.JDBCTask
createClasspath, getClasspath, getConnection, getLoader, getLoaderMap, getPassword, getRdbms, getUrl, getUserId, getVersion, isAutocommit, isCaching, isValidRdbms, setAutocommit, setCaching, setClasspath, setClasspathRef, setDriver, setPassword, setRdbms, setUrl, setUserid, setVersion
 
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

text

private String text

batchSize

private int batchSize
Constructor Detail

SelectExecTask

public SelectExecTask()
Method Detail

setBatchSize

public void setBatchSize(int size)
sets the number of statements to execute simultaneously

Parameters:
size -

addText

public void addText(String text)
adds to the SQL statement

Parameters:
text -

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


Copyright © 2005-2006 ADDAM Project Team. All Rights Reserved.