@Test public void testGetAllModels() { try { List<ModelDTO> modelDTOs = modelResourceFacadeImp.getAllModels(); assertNotNull(modelDTOs); } catch (PropertyNotSetException e) { logger.error("PropertyNotSetException while executing testGetAllModels "+e.getMessage()); } }
@Override public List<ModelDTO> getAllModels() throws PropertyNotSetException { List<ModelDTO> modelDTOList = new ArrayList<ModelDTO>(); List<Model> modelList = getAll(); logger.info("Fetched models list size: " + modelList.size()); for (Model model : modelList) { modelDTOList.add(new ModelDTO(model)); } return modelDTOList; }
ModelResourceFacadeImp extends CoreDBServiceFacadeImp<Model, Long> implements ModelResourceFacade { @Override public List<ModelDTO> getAllModels() throws PropertyNotSetException { List<ModelDTO> modelDTOList = new ArrayList<ModelDTO>(); List<Model> modelList = getAll(); logger.info("Fetched models list size: " + modelList.size()); for (Model model : modelList) { modelDTOList.add(new ModelDTO(model)); } return modelDTOList; } }
ModelResourceFacadeImp extends CoreDBServiceFacadeImp<Model, Long> implements ModelResourceFacade { @Override public List<ModelDTO> getAllModels() throws PropertyNotSetException { List<ModelDTO> modelDTOList = new ArrayList<ModelDTO>(); List<Model> modelList = getAll(); logger.info("Fetched models list size: " + modelList.size()); for (Model model : modelList) { modelDTOList.add(new ModelDTO(model)); } return modelDTOList; } ModelResourceFacadeImp(); }
ModelResourceFacadeImp extends CoreDBServiceFacadeImp<Model, Long> implements ModelResourceFacade { @Override public List<ModelDTO> getAllModels() throws PropertyNotSetException { List<ModelDTO> modelDTOList = new ArrayList<ModelDTO>(); List<Model> modelList = getAll(); logger.info("Fetched models list size: " + modelList.size()); for (Model model : modelList) { modelDTOList.add(new ModelDTO(model)); } return modelDTOList; } ModelResourceFacadeImp(); @Override List<ModelDTO> getAllModels(); @Override ModelDTO getModelByID(Long id); @Override @SuppressWarnings("unchecked") Integer getModelCountByModelFamilyID(Long modelFamilyID); @Override @SuppressWarnings("unchecked") List<ModelHistoryWrapper> getModelByModelFamilyID(Long modelFamilyID, Integer start, Integer limit); @Override @SuppressWarnings("unchecked") List<ModelHistoryWrapper> getModelByModelFamilyID(Long modelFamilyID, Integer start, Integer limit, 
			String sortColumn, String sortDirection); @Override List<ModelWrapper> getModelByCrisisID(Long crisisID); @Override boolean deleteModel(Long modelID); }
ModelResourceFacadeImp extends CoreDBServiceFacadeImp<Model, Long> implements ModelResourceFacade { @Override public List<ModelDTO> getAllModels() throws PropertyNotSetException { List<ModelDTO> modelDTOList = new ArrayList<ModelDTO>(); List<Model> modelList = getAll(); logger.info("Fetched models list size: " + modelList.size()); for (Model model : modelList) { modelDTOList.add(new ModelDTO(model)); } return modelDTOList; } ModelResourceFacadeImp(); @Override List<ModelDTO> getAllModels(); @Override ModelDTO getModelByID(Long id); @Override @SuppressWarnings("unchecked") Integer getModelCountByModelFamilyID(Long modelFamilyID); @Override @SuppressWarnings("unchecked") List<ModelHistoryWrapper> getModelByModelFamilyID(Long modelFamilyID, Integer start, Integer limit); @Override @SuppressWarnings("unchecked") List<ModelHistoryWrapper> getModelByModelFamilyID(Long modelFamilyID, Integer start, Integer limit, 
			String sortColumn, String sortDirection); @Override List<ModelWrapper> getModelByCrisisID(Long crisisID); @Override boolean deleteModel(Long modelID);  }