Package org.javastro.ivoacore.tap
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
Factory for creating
TAPJob instances.-
Field Summary
Fields inherited from class org.javastro.ivoacore.uws.BaseJobFactory
environmentFactory, idProvider, isParameterized, jobType, jobTypeDescription -
Constructor Summary
ConstructorsConstructorDescriptionJobFactory(DataSource ds, SchemaProvider schemaProvider, EnvironmentFactory environmentFactory) Constructs a JobFactory using the given data source. -
Method Summary
Modifier and TypeMethodDescriptioncreateJob(String query, String lang, String responseformat, Long maxrec, String runid, String upload) Creates a TAP job from individual query parameters.createJob(JobSpecification jobDescription) Creates a newBaseUWSJobfrom the given job specification.createJob(PersistedJobRecord record) Methods inherited from class org.javastro.ivoacore.uws.BaseJobFactory
isParameterized, jobDescription, jobType
-
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
Description copied from interface:JobFactoryCreates a newBaseUWSJobfrom 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
- 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, ornullif not used.- Returns:
- a new
TAPJobwith the specified parameters.
-