org.intermine.task
Class BuildDbTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.intermine.task.BuildDbTask

public class BuildDbTask
extends org.apache.tools.ant.Task

Generates and inserts SQL given database name, schema and temporary directory


Field Summary
protected  Database database
           
protected  java.lang.String databaseAlias
           
protected  java.lang.String schemaFile
           
protected static java.lang.String SERIAL_SEQUENCE_NAME
           
protected  java.io.File tempDir
           
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
BuildDbTask()
           
 
Method Summary
 void execute()
          
 void setOsName(java.lang.String os)
          Sets the objectstore
 void 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
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERIAL_SEQUENCE_NAME

protected static final java.lang.String SERIAL_SEQUENCE_NAME
See Also:
Constant Field Values

tempDir

protected java.io.File tempDir

database

protected Database database

databaseAlias

protected java.lang.String databaseAlias

schemaFile

protected java.lang.String schemaFile
Constructor Detail

BuildDbTask

public BuildDbTask()
Method Detail

setOsName

public void setOsName(java.lang.String os)
Sets the objectstore

Parameters:
os - String used to identify objectstore and therefore database

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 class org.apache.tools.ant.Task