org.apache.tools.ant.taskdefs

Class SQLExec.Transaction

Enclosing Class:
SQLExec

public class SQLExec.Transaction
extends java.lang.Object

Contains the definition of a new transaction element. Transactions allow several files or blocks of statements to be executed using the same JDBC connection and commit operation in between.

Method Summary

void
addConfigured(ResourceCollection a)
Set the source resource.
void
addText(String sql)
Set inline text
void
setSrc(File src)
Set the source file attribute.
void
setSrcResource(Resource src)
Set the source resource attribute.

Method Details

addConfigured

public void addConfigured(ResourceCollection a)
Set the source resource.
Parameters:
a - the source resource collection.
Since:
Ant 1.7

addText

public void addText(String sql)
Set inline text
Parameters:
sql - the inline text

setSrc

public void setSrc(File src)
Set the source file attribute.
Parameters:
src - the source file

setSrcResource

public void setSrcResource(Resource src)
Set the source resource attribute.
Parameters:
src - the source file
Since:
Ant 1.7