Class ExecuteQueryJob

All Implemented Interfaces:
HasTransactionAttribute, IConfigurable, IConfigurationAware, INamedObject, IScopeProvider, IJob, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class ExecuteQueryJob extends JobDef
  • Constructor Details

    • ExecuteQueryJob

      public ExecuteQueryJob()
  • Method Details

    • configure

      public void configure() throws ConfigurationException
      Specified by:
      configure in interface IConfigurable
      configure in class JobDef
    • execute

      public void execute() throws JobExecutionException, TimeoutException
      Description copied from interface: IJob
      Actual implementation of the IJob. Is wrapped around a Locker and exceptions will be managed automatically.
      JobExecutionException - when the implementation fails to execute
      TimeoutException - when the TransactionTimeout has been reached
    • setQuery

      public void setQuery(String query)
      The SQL query text to be executed
    • setDatasourceName

      public void setDatasourceName(String datasourceName)
      JNDI name of datasource to be used
      Default value
    • setQueryTimeout

      public void setQueryTimeout(int i)
      The number of seconds the database driver will wait for a statement to execute. If the limit is exceeded, a TimeoutException is thrown. 0 means no timeout
      Default value
    • getQuery

      public String getQuery()
    • getJmsRealm

      public String getJmsRealm()
    • getDatasourceName

      public String getDatasourceName()
    • getQueryTimeout

      public int getQueryTimeout()