' will be executed before
importing new data from a file. the default value is false.
addPre
public void addPre(Script script)
- used for setting a script to execute before importing data
addPost
public void addPost(Script script)
- used for setting a script to execute after importing data
setBatchSize
public void setBatchSize(int batchSize)
execute
public void execute()
throws org.apache.tools.ant.BuildException
- Imports all data from the listed files into the named tables.
- Overrides:
execute
in class org.apache.tools.ant.Task
- Throws:
org.apache.tools.ant.BuildException
- if anything goes wrong
executeScript
private void executeScript(Script script)
emptyTable
private void emptyTable(String tableName)
importTable
public void importTable(String tableName,
Connection connection)
throws org.apache.tools.ant.BuildException
- Imports all data from the file into the named table.
- Throws:
org.apache.tools.ant.BuildException
- if anything goes wrong
setIncludeFile
public void setIncludeFile(File tableFile)
- this is a shortcut for having an subelement by simply providing a filename as an attribute to this task
- Parameters:
tableFile
- a file containing an ordered list of tables
setExcludeFile
public void setExcludeFile(File tableFile)
- this is a shortcut for having a subelement by simply providing a filename as an attribute to this task
- Parameters:
tableFile
- a file containing an ordered list of tables
setIncludesPattern
public void setIncludesPattern(String pattern)
- Parameters:
pattern
- a regexp pattern to compare table names to
setExcludesPattern
public void setExcludesPattern(String pattern)
- Parameters:
pattern
- a regexp pattern to compare table names to
setIncludes
public void setIncludes(String names)
- Parameters:
names
- a comma separated list of table names
setExcludes
public void setExcludes(String names)
- Parameters:
names
- a comma separated list of table names
getTableNames
protected List<String> getTableNames()
- returns all Tables included by not excluded
- Returns:
- List of Strings each naming a table
Copyright © 2005-2006 ADDAM Project Team. All Rights Reserved.