Пример #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;
 }
Пример #2
0
 public JobPlan loadPlan(long jobId) {
   DefaultJobPlan plan =
       (DefaultJobPlan) getSqlMapClientTemplate().queryForObject("select-job-plan", jobId);
   loadJobPlanAssociatedEntities(plan);
   return plan;
 }