|
||||||||||
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 |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
ExecuteSQL()
|
Method Summary | |
---|---|
void |
execute()
|
protected java.sql.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 |
---|
add, addFileset, addText, createTransaction, execSQL, getExpandProperties, printResults, printResults, runStatements, setAppend, setDelimiter, setDelimiterType, setEncoding, setEscapeProcessing, setExpandProperties, setKeepformat, setOnerror, setOutput, setPrint, setRawBlobs, setShowheaders, setShowtrailers, 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 |
---|
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 |
---|
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 java.sql.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 |