@Test public void testDelete(){ assertTrue(jobConfigManager.delete(1L)); }
public Boolean delete(Long jobConfigId){ JobConfig cfg = jobConfigDao.findById(jobConfigId); if (cfg == null){ return Boolean.TRUE; } if (jobConfigDao.unbindJob(cfg.getJobId(), cfg.getId())){ return jobConfigDao.delete(jobConfigId); } return Boolean.FALSE; }
JobConfigManager { public Boolean delete(Long jobConfigId){ JobConfig cfg = jobConfigDao.findById(jobConfigId); if (cfg == null){ return Boolean.TRUE; } if (jobConfigDao.unbindJob(cfg.getJobId(), cfg.getId())){ return jobConfigDao.delete(jobConfigId); } return Boolean.FALSE; } }
JobConfigManager { public Boolean delete(Long jobConfigId){ JobConfig cfg = jobConfigDao.findById(jobConfigId); if (cfg == null){ return Boolean.TRUE; } if (jobConfigDao.unbindJob(cfg.getJobId(), cfg.getId())){ return jobConfigDao.delete(jobConfigId); } return Boolean.FALSE; }  }
JobConfigManager { public Boolean delete(Long jobConfigId){ JobConfig cfg = jobConfigDao.findById(jobConfigId); if (cfg == null){ return Boolean.TRUE; } if (jobConfigDao.unbindJob(cfg.getJobId(), cfg.getId())){ return jobConfigDao.delete(jobConfigId); } return Boolean.FALSE; }  Boolean save(JobConfig config); Boolean delete(Long jobConfigId); Boolean delete(JobConfig cfg); Boolean deleteByJobId(Long jobId); }
JobConfigManager { public Boolean delete(Long jobConfigId){ JobConfig cfg = jobConfigDao.findById(jobConfigId); if (cfg == null){ return Boolean.TRUE; } if (jobConfigDao.unbindJob(cfg.getJobId(), cfg.getId())){ return jobConfigDao.delete(jobConfigId); } return Boolean.FALSE; }  Boolean save(JobConfig config); Boolean delete(Long jobConfigId); Boolean delete(JobConfig cfg); Boolean deleteByJobId(Long jobId);  }