@Test public void testGetModelByModelFamilyID() { try { List<ModelHistoryWrapper> historyWrappers = modelResourceFacadeImp.getModelByModelFamilyID(modelFamilyDTO.getModelFamilyId(), 0, 10); assertNotNull(historyWrappers); assertTrue(historyWrappers.size() == 1); } catch (PropertyNotSetException e) { logger.error("PropertyNotSetException while executing testGetModelByModelFamilyID "+e.getMessage()); } }
@Override @SuppressWarnings("unchecked") public List<ModelHistoryWrapper> getModelByModelFamilyID(Long modelFamilyID, Integer start, Integer limit) throws PropertyNotSetException { return getModelByModelFamilyID(modelFamilyID, start, limit, "trainingTime", "DESC"); }
ModelResourceFacadeImp extends CoreDBServiceFacadeImp<Model, Long> implements ModelResourceFacade { @Override @SuppressWarnings("unchecked") public List<ModelHistoryWrapper> getModelByModelFamilyID(Long modelFamilyID, Integer start, Integer limit) throws PropertyNotSetException { return getModelByModelFamilyID(modelFamilyID, start, limit, "trainingTime", "DESC"); } }
ModelResourceFacadeImp extends CoreDBServiceFacadeImp<Model, Long> implements ModelResourceFacade { @Override @SuppressWarnings("unchecked") public List<ModelHistoryWrapper> getModelByModelFamilyID(Long modelFamilyID, Integer start, Integer limit) throws PropertyNotSetException { return getModelByModelFamilyID(modelFamilyID, start, limit, "trainingTime", "DESC"); } ModelResourceFacadeImp(); }
ModelResourceFacadeImp extends CoreDBServiceFacadeImp<Model, Long> implements ModelResourceFacade { @Override @SuppressWarnings("unchecked") public List<ModelHistoryWrapper> getModelByModelFamilyID(Long modelFamilyID, Integer start, Integer limit) throws PropertyNotSetException { return getModelByModelFamilyID(modelFamilyID, start, limit, "trainingTime", "DESC"); } 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 @SuppressWarnings("unchecked") public List<ModelHistoryWrapper> getModelByModelFamilyID(Long modelFamilyID, Integer start, Integer limit) throws PropertyNotSetException { return getModelByModelFamilyID(modelFamilyID, start, limit, "trainingTime", "DESC"); } 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);  }