Class RunIqlQueryTask


  • public class RunIqlQueryTask
    extends org.apache.tools.ant.Task
    Ant task to read an IQL query from a -Pquery="QUERY" parameter and execute it in the database.
    Author:
    Richard Smith
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String alias  
      protected static int MAX_ROWS  
      protected java.lang.String query  
      • 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
      RunIqlQueryTask()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()
      void setAlias​(java.lang.String alias)
      Set the ObjectStore alias.
      void setQuery​(java.lang.String query)
      An query string to execute, may be IQL or SQL by format parameter must be set correctly, richard
      • 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

      • alias

        protected java.lang.String alias
      • query

        protected java.lang.String query
    • Constructor Detail

      • RunIqlQueryTask

        public RunIqlQueryTask()
    • Method Detail

      • setAlias

        public void setAlias​(java.lang.String alias)
        Set the ObjectStore alias.
        Parameters:
        alias - the ObjectStore alias
      • setQuery

        public void setQuery​(java.lang.String query)
        An query string to execute, may be IQL or SQL by format parameter must be set correctly, richard
        Parameters:
        query - the query
      • execute

        public void execute()
        Overrides:
        execute in class org.apache.tools.ant.Task