class DatabaseSetService {

    public List<DatabaseSet> getAllDatabaseSetByProjectId(Long projectId) throws SQLException {
        Project project = projectDao.getProjectByID(projectId);
        if (null != project) {
            return databaseSetDao.getAllDatabaseSetByGroupId(project.getDal_group_id());
        }
        return Collections.EMPTY_LIST;
    }

}