Package org.intermine.task
Class BuildDbTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.intermine.task.BuildDbTask
-
public class BuildDbTask extends org.apache.tools.ant.Task
Generates and inserts SQL given database name, schema and temporary directory- Author:
- Mark Woodbridge
-
-
Constructor Summary
Constructors Constructor Description BuildDbTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
void
setModel(java.lang.String model)
Sets the modelvoid
setOsName(java.lang.String os)
Sets the objectstorevoid
setSchemafile(java.lang.String schemafile)
Adds the schemafile to be processed.void
setTempdir(java.io.File tempDir)
Sets the directory for temporary files including sql output-
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Field Detail
-
database
protected Database database
-
-
Method Detail
-
setOsName
public void setOsName(java.lang.String os)
Sets the objectstore- Parameters:
os
- String used to identify objectstore and therefore database
-
setModel
public void setModel(java.lang.String model)
Sets the model- Parameters:
model
- String used to identify the model (useprofrile, genomic...)
-
setTempdir
public void setTempdir(java.io.File tempDir)
Sets the directory for temporary files including sql output- Parameters:
tempDir
- the directory location
-
setSchemafile
public void setSchemafile(java.lang.String schemafile)
Adds the schemafile to be processed.- Parameters:
schemafile
- to be processed
-
execute
public void execute()
- Overrides:
execute
in classorg.apache.tools.ant.Task
-
-