Search in sources :

Example 1 with PublishShapefileJobQuery

use of net.geoprism.registry.etl.PublishShapefileJobQuery in project geoprism-registry by terraframe.

the class MasterListVersion method getJobs.

public List<ExecutableJob> getJobs() {
    LinkedList<ExecutableJob> jobs = new LinkedList<ExecutableJob>();
    PublishShapefileJobQuery psjq = new PublishShapefileJobQuery(new QueryFactory());
    psjq.WHERE(psjq.getVersion().EQ(this));
    try (OIterator<? extends PublishShapefileJob> it = psjq.getIterator()) {
        jobs.addAll(it.getAll());
    }
    PublishMasterListVersionJobQuery pmlvj = new PublishMasterListVersionJobQuery(new QueryFactory());
    pmlvj.WHERE(pmlvj.getMasterListVersion().EQ(this));
    try (OIterator<? extends PublishMasterListVersionJob> it = pmlvj.getIterator()) {
        jobs.addAll(it.getAll());
    }
    return jobs;
}
Also used : QueryFactory(com.runwaysdk.query.QueryFactory) PublishMasterListVersionJobQuery(net.geoprism.registry.etl.PublishMasterListVersionJobQuery) ExecutableJob(com.runwaysdk.system.scheduler.ExecutableJob) PublishShapefileJobQuery(net.geoprism.registry.etl.PublishShapefileJobQuery) LinkedList(java.util.LinkedList)

Aggregations

QueryFactory (com.runwaysdk.query.QueryFactory)1 ExecutableJob (com.runwaysdk.system.scheduler.ExecutableJob)1 LinkedList (java.util.LinkedList)1 PublishMasterListVersionJobQuery (net.geoprism.registry.etl.PublishMasterListVersionJobQuery)1 PublishShapefileJobQuery (net.geoprism.registry.etl.PublishShapefileJobQuery)1