@Test public void testFindByCriteria() { ProcessingService processingService = BeanFactory.getProcessingServiceBean(); List<Processing> found = processingService.findByCriteria("14567", false); assertEquals(1, found.size()); found = processingService.findByCriteria("simple", true); assertEquals(10299, found.size()); found = processingService.findByCriteria("SIMPLE", true); assertEquals(0, found.size()); }
@Override public List<Processing> findByCriteria(String criteria, boolean isCaseSens) { return processingDAO.findByCriteria(criteria, isCaseSens); }
ProcessingServiceImpl implements ProcessingService { @Override public List<Processing> findByCriteria(String criteria, boolean isCaseSens) { return processingDAO.findByCriteria(criteria, isCaseSens); } }
ProcessingServiceImpl implements ProcessingService { @Override public List<Processing> findByCriteria(String criteria, boolean isCaseSens) { return processingDAO.findByCriteria(criteria, isCaseSens); } ProcessingServiceImpl(); }
ProcessingServiceImpl implements ProcessingService { @Override public List<Processing> findByCriteria(String criteria, boolean isCaseSens) { return processingDAO.findByCriteria(criteria, isCaseSens); } ProcessingServiceImpl(); @Override void setProcessingDAO(ProcessingDAO processingDAO); void setFileDAO(FileDAO fileDAO); @Override void insert(SequencerRun sequencerRun, Processing processing); @Override void insert(Registration registration, SequencerRun sequencerRun, Processing processing); @Override Integer insert(Processing processing); @Override void update(Processing processing); @Override void delete(Processing processing, boolean deleteRealFiles); @Override List<File> getFiles(Integer processingId); @Override boolean isHasFile(Integer processingId); @Override Set<Processing> setWithHasFile(Set<Processing> list); @Override List<File> getFiles(Integer processingId, String metaType); boolean isHasFile(Integer processingId, String metaType); @Override Set<Processing> setWithHasFile(Set<Processing> list, String metaType); @Override Processing findByID(Integer id); @Override Processing findByIDOnlyWithRunningWR(Integer processingID); @Override Processing findBySWAccession(Integer swAccession); @Override List<Processing> findByOwnerID(Integer registrationId); @Override List<Processing> findByCriteria(String criteria, boolean isCaseSens); @Override Processing updateDetached(Processing processing); @Override List<Processing> list(); @Override void update(Registration registration, Processing processing); @Override Integer insert(Registration registration, Processing processing); @Override Processing updateDetached(Registration registration, Processing processing); @Override Set<Processing> findFor(Sample sample, WorkflowRun workflowRun); @Override Set<Processing> findFor(Sample sample); }
ProcessingServiceImpl implements ProcessingService { @Override public List<Processing> findByCriteria(String criteria, boolean isCaseSens) { return processingDAO.findByCriteria(criteria, isCaseSens); } ProcessingServiceImpl(); @Override void setProcessingDAO(ProcessingDAO processingDAO); void setFileDAO(FileDAO fileDAO); @Override void insert(SequencerRun sequencerRun, Processing processing); @Override void insert(Registration registration, SequencerRun sequencerRun, Processing processing); @Override Integer insert(Processing processing); @Override void update(Processing processing); @Override void delete(Processing processing, boolean deleteRealFiles); @Override List<File> getFiles(Integer processingId); @Override boolean isHasFile(Integer processingId); @Override Set<Processing> setWithHasFile(Set<Processing> list); @Override List<File> getFiles(Integer processingId, String metaType); boolean isHasFile(Integer processingId, String metaType); @Override Set<Processing> setWithHasFile(Set<Processing> list, String metaType); @Override Processing findByID(Integer id); @Override Processing findByIDOnlyWithRunningWR(Integer processingID); @Override Processing findBySWAccession(Integer swAccession); @Override List<Processing> findByOwnerID(Integer registrationId); @Override List<Processing> findByCriteria(String criteria, boolean isCaseSens); @Override Processing updateDetached(Processing processing); @Override List<Processing> list(); @Override void update(Registration registration, Processing processing); @Override Integer insert(Registration registration, Processing processing); @Override Processing updateDetached(Registration registration, Processing processing); @Override Set<Processing> findFor(Sample sample, WorkflowRun workflowRun); @Override Set<Processing> findFor(Sample sample);  }