Class TAPJob.JobFactory

java.lang.Object
org.javastro.ivoacore.uws.BaseJobFactory
org.javastro.ivoacore.tap.TAPJob.JobFactory
All Implemented Interfaces:
JobType, JobFactory
Enclosing class:
TAPJob

public static class TAPJob.JobFactory extends BaseJobFactory
Factory for creating TAPJob instances.
  • Constructor Details

    • JobFactory

      public JobFactory(DataSource ds, SchemaProvider schemaProvider, EnvironmentFactory environmentFactory)
      Constructs a JobFactory using the given data source.
      Parameters:
      ds - the JDBC data source used to execute TAP queries.
  • Method Details

    • createJob

      public BaseUWSJob createJob(JobSpecification jobDescription) throws UWSException
      Description copied from interface: JobFactory
      Creates a new BaseUWSJob from the given job specification.
      Parameters:
      jobDescription - the specification describing the job to create.
      Returns:
      the created job.
      Throws:
      UWSException - if the job cannot be created.
    • createJob

      public BaseUWSJob createJob(PersistedJobRecord record) throws UWSException
      Throws:
      UWSException
    • createJob

      public TAPJob createJob(String query, String lang, String responseformat, Long maxrec, String runid, String upload)
      Creates a TAP job from individual query parameters.
      Parameters:
      query - the ADQL query string.
      lang - the query language (e.g. "ADQL").
      responseformat - the desired response format (e.g. "votable").
      maxrec - the maximum number of records to return.
      runid - the run identifier for this job.
      upload - the upload parameter value, or null if not used.
      Returns:
      a new TAPJob with the specified parameters.