Class BuildDbTask


  • public class BuildDbTask
    extends org.apache.tools.ant.Task
    Generates and inserts SQL given database name, schema and temporary directory
    Author:
    Mark Woodbridge
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Database database  
      • 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

      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 model
      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

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