|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.addam.impexp.Script
public class Script
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.
| 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 |
|---|
private String separator
private String text
private File file
| Constructor Detail |
|---|
public Script()
| Method Detail |
|---|
void setStatementSeparator(String separator)
separator - void setFile(File aFile)
aFile - public void addText(String text)
text - public List getStatements()
private String getText()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||