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