Package org.intermine.task
Class ConverterTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.intermine.task.DynamicAttributeTask
-
- org.intermine.task.ConverterTask
-
- Direct Known Subclasses:
DBConverterTask
,DirectoryConverterTask
,FileConverterTask
,FullXmlConverterTask
public class ConverterTask extends DynamicAttributeTask
Task superclass for invoking converters.- Author:
- Matthew Wakeling
-
-
Field Summary
-
Fields inherited from class org.intermine.task.DynamicAttributeTask
LOG
-
-
Constructor Summary
Constructors Constructor Description ConverterTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doSQL(ObjectStore os)
Runs various performance-enhancing SQL statements.java.lang.String
getExcludeList()
Return the list set by setExcludeList().java.lang.String
getModelName()
Return the model namejava.lang.String
getOsName()
Return the object store alias set by setOsName().void
setExcludeList(java.lang.String excludeList)
Sets the list of classes to NOT try and convertvoid
setModelName(java.lang.String modelName)
Set the target model namevoid
setOsName(java.lang.String osName)
Set the objectstore name-
Methods inherited from class org.intermine.task.DynamicAttributeTask
configureDynamicAttributes
-
Methods inherited from class org.apache.tools.ant.Task
execute, 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
-
-
-
-
Method Detail
-
setOsName
public void setOsName(java.lang.String osName)
Set the objectstore name- Parameters:
osName
- the model name
-
setExcludeList
public void setExcludeList(java.lang.String excludeList)
Sets the list of classes to NOT try and convert- Parameters:
excludeList
- the suitably formatted list of classes to exclude.
-
getExcludeList
public java.lang.String getExcludeList()
Return the list set by setExcludeList().- Returns:
- the exclude list
-
getModelName
public java.lang.String getModelName()
Return the model name- Returns:
- the Model name
-
setModelName
public void setModelName(java.lang.String modelName)
Set the target model name- Parameters:
modelName
- the Model name
-
getOsName
public java.lang.String getOsName()
Return the object store alias set by setOsName().- Returns:
- the object store alias
-
doSQL
protected void doSQL(ObjectStore os) throws java.sql.SQLException, java.io.IOException
Runs various performance-enhancing SQL statements.- Parameters:
os
- the ObjectStore on which to run the SQL- Throws:
java.sql.SQLException
- if something goes wrongjava.io.IOException
- if an error occurs while reading from the post-processing sql file
-
-