Exemplo n.º 1
0
 private JobPlan _loadJobPlan(Long jobId) {
   DefaultJobPlan jobPlan =
       (DefaultJobPlan)
           getSqlMapClientTemplate()
               .queryForObject("scheduledPlan", arguments("id", jobId).asMap());
   if (jobPlan == null) {
     return null;
   }
   loadJobPlanAssociatedEntities(jobPlan);
   return jobPlan;
 }
Exemplo n.º 2
0
 public JobPlan loadPlan(long jobId) {
   DefaultJobPlan plan =
       (DefaultJobPlan) getSqlMapClientTemplate().queryForObject("select-job-plan", jobId);
   loadJobPlanAssociatedEntities(plan);
   return plan;
 }