This task uses an SQL -> Database map in the form of a properties
file to insert each SQL file listed into its designated database.
author: Jeff Martin author: Michael McCallum author: Tim Stephenson author: Jason van Zyl author: Martin Poeschl version: $Id: TorqueSQLExec.java 473814 2006-11-11 22:30:30Z tv $
Inner Class :public static class DelimiterType extends EnumeratedAttribute
Inner Class :public static class OnError extends EnumeratedAttribute
Read the statements from the .sql file and execute them.
Lines starting with '//', '--' or 'REM ' are ignored.
Parameters: reader - Parameters: out - throws: SQLException - throws: IOException -
setAutocommit
public void setAutocommit(boolean autocommit)(Code)
Set the autocommit flag for the DB connection.
Parameters: autocommit - the autocommit flag
For example, set this to "go" and delimitertype to "ROW" for
Sybase ASE or MS SQL Server.
Parameters: delimiter -
setDelimiterType
public void setDelimiterType(DelimiterType delimiterType)(Code)
Set the Delimiter type for this sql task. The delimiter type takes two
values - normal and row. Normal means that any occurence of the delimiter
terminate the SQL command whereas with row, only a line containing just
the delimiter is recognized as the end of the command.
Parameters: delimiterType -