org.apache.jetspeed.anttasks
Class ExecuteSQL

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 org.apache.tools.ant.taskdefs.SQLExec
                  extended by org.apache.jetspeed.anttasks.ExecuteSQL

public class ExecuteSQL
extends org.apache.tools.ant.taskdefs.SQLExec


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.tools.ant.taskdefs.SQLExec
org.apache.tools.ant.taskdefs.SQLExec.DelimiterType, org.apache.tools.ant.taskdefs.SQLExec.OnError, org.apache.tools.ant.taskdefs.SQLExec.Transaction
 
Field Summary
 
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
ExecuteSQL()
           
 
Method Summary
 void execute()
           
protected  Connection getConnection()
          Creates a new Connection as using the driver, url, userid and password specified.
 
Methods inherited from class org.apache.tools.ant.taskdefs.SQLExec
addFileset, addText, createTransaction, execSQL, printResults, printResults, runStatements, setAppend, setDelimiter, setDelimiterType, setEncoding, setEscapeProcessing, setKeepformat, setOnerror, setOutput, setPrint, setShowheaders, setSrc
 
Methods inherited from class org.apache.tools.ant.taskdefs.JDBCTask
createClasspath, getClasspath, 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
 

Constructor Detail

ExecuteSQL

public ExecuteSQL()
Method Detail

execute

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

getConnection

protected Connection getConnection()
                            throws org.apache.tools.ant.BuildException
Creates a new Connection as using the driver, url, userid and password specified. The calling method is responsible for closing the connection.

Overrides:
getConnection in class org.apache.tools.ant.taskdefs.JDBCTask
Returns:
Connection the newly created connection.
Throws:
org.apache.tools.ant.BuildException - if the UserId/Password/Url is not set or there is no suitable driver or the driver fails to load.


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.