|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.JDBCTask
org.apache.tools.ant.taskdefs.SQLExec
org.apache.jetspeed.anttasks.ExecuteSQL
public class ExecuteSQL
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 |
---|
public ExecuteSQL()
Method Detail |
---|
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.taskdefs.SQLExec
org.apache.tools.ant.BuildException
protected Connection getConnection() throws org.apache.tools.ant.BuildException
getConnection
in class org.apache.tools.ant.taskdefs.JDBCTask
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |