Package org.intermine.dataloader
Class ObjectStoreDataLoaderTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.intermine.dataloader.ObjectStoreDataLoaderTask
-
public class ObjectStoreDataLoaderTask extends org.apache.tools.ant.Task
Uses an IntegrationWriter to load data from another ObjectStore.- Author:
- Andrew Varley, Matthew Wakeling
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
allSources
protected boolean
ignoreDuplicates
protected java.lang.String
integrationWriter
protected java.lang.String
queryClass
protected java.lang.String
source
protected java.lang.String
sourceName
protected java.lang.String
sourceType
-
Constructor Summary
Constructors Constructor Description ObjectStoreDataLoaderTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
void
setAllSources(java.lang.String allSources)
Set the list of data sources present in the project.xml, for the purposes of verifying the priorities properties file.void
setIgnoreDuplicates(boolean ignoreDuplicates)
Set the value of ignoreDuplicates for the IntegrationWriter.void
setIntegrationWriter(java.lang.String integrationWriter)
Set the IntegrationWriter.void
setQueryClass(java.lang.String queryClass)
If the name of a class is set will only load objects of that type.void
setSource(java.lang.String source)
Set the ObjectStore that is the data source.void
setSourceName(java.lang.String sourceName)
Set the source name, as used by primary key priority config.void
setSourceType(java.lang.String sourceType)
Set the source type, as used by primary key priority config.-
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
-
integrationWriter
protected java.lang.String integrationWriter
-
source
protected java.lang.String source
-
sourceName
protected java.lang.String sourceName
-
sourceType
protected java.lang.String sourceType
-
ignoreDuplicates
protected boolean ignoreDuplicates
-
queryClass
protected java.lang.String queryClass
-
allSources
protected java.lang.String allSources
-
-
Method Detail
-
setIntegrationWriter
public void setIntegrationWriter(java.lang.String integrationWriter)
Set the IntegrationWriter.- Parameters:
integrationWriter
- the name of the IntegrationWriter
-
setSource
public void setSource(java.lang.String source)
Set the ObjectStore that is the data source.- Parameters:
source
- the name of the objectstore that is the source
-
setSourceName
public void setSourceName(java.lang.String sourceName)
Set the source name, as used by primary key priority config.- Parameters:
sourceName
- the name of the data source
-
setSourceType
public void setSourceType(java.lang.String sourceType)
Set the source type, as used by primary key priority config.- Parameters:
sourceType
- the name of the data source
-
setIgnoreDuplicates
public void setIgnoreDuplicates(boolean ignoreDuplicates)
Set the value of ignoreDuplicates for the IntegrationWriter.- Parameters:
ignoreDuplicates
- the value of ignoreDuplicates
-
setQueryClass
public void setQueryClass(java.lang.String queryClass)
If the name of a class is set will only load objects of that type.- Parameters:
queryClass
- the name of a class to load
-
setAllSources
public void setAllSources(java.lang.String allSources)
Set the list of data sources present in the project.xml, for the purposes of verifying the priorities properties file.- Parameters:
allSources
- a space-separated list of source names
-
execute
public void execute()
- Overrides:
execute
in classorg.apache.tools.ant.Task
-
-