net.sourceforge.addam.impexp
Class Script

java.lang.Object
  extended by net.sourceforge.addam.impexp.Script

public class Script
extends Object

Provides a placeholder for SQL; used in TableImport as pre/post statements. The SQL can be provided as a file, or as text embedded in the elements.

Since:
Aug 2, 2004
Author:
TIM3

Field Summary
private  File file
           
private  String separator
           
private  String text
           
 
Constructor Summary
Script()
           
 
Method Summary
 void addText(String text)
          adds to the SQL statement
 List getStatements()
          this is used to get the statements from the script
private  String getText()
           
(package private)  void setFile(File aFile)
          the text to be executed is read from the given file
(package private)  void setStatementSeparator(String separator)
          sets the string (usually a character) to separate multiple statements defaults to ";"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

separator

private String separator

text

private String text

file

private File file
Constructor Detail

Script

public Script()
Method Detail

setStatementSeparator

void setStatementSeparator(String separator)
sets the string (usually a character) to separate multiple statements defaults to ";"

Parameters:
separator -

setFile

void setFile(File aFile)
the text to be executed is read from the given file

Parameters:
aFile -

addText

public void addText(String text)
adds to the SQL statement

Parameters:
text -

getStatements

public List getStatements()
this is used to get the statements from the script

Returns:

getText

private String getText()
                throws org.apache.tools.ant.BuildException
Throws:
org.apache.tools.ant.BuildException


Copyright © 2005-2006 ADDAM Project Team. All Rights Reserved.