org.apache.torque.task
Class TorqueSQLExec.Transaction

java.lang.Object
  extended by org.apache.torque.task.TorqueSQLExec.Transaction
Enclosing class:
TorqueSQLExec

public class TorqueSQLExec.Transaction
extends 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.


Field Summary
private  String tSqlCommand
           
private  File tSrcFile
           
 
Constructor Summary
TorqueSQLExec.Transaction()
           
 
Method Summary
 void addText(String sql)
           
private  void runTransaction(PrintStream out)
           
 void setSrc(File src)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tSrcFile

private File tSrcFile

tSqlCommand

private String tSqlCommand
Constructor Detail

TorqueSQLExec.Transaction

public TorqueSQLExec.Transaction()
Method Detail

setSrc

public void setSrc(File src)

addText

public void addText(String sql)

runTransaction

private void runTransaction(PrintStream out)
                     throws IOException,
                            SQLException
Throws:
IOException
SQLException


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.