public void createClub(CreateClubForm createClubForm) throws ParseException { Club club = new Club(); club.setClubName(createClubForm.getClubName()); club.setFounded(new SimpleDateFormat("dd-MM-yyyy").parse(createClubForm.getFounded())); club.setLeague(leagueDao.getLeague(createClubForm.getLeagueName())); clubDao.saveClub(club); }
@Override public Club getClub(String clubName) { return clubDao.getClub(clubName); }
@Override public List<Club> get_ID_NAME_LEAGUE_ClubColumnsByLeagueName(String leagueName) { return clubDao.get_ID_NAME_LEAGUE_ClubColumnsByLeagueName(leagueName); }
@Override public List<String> getAllClubNames() { return clubDao.getAllClubNames(); }
public List<Club> get_ID_NAME_FOUND_ClubColumnsByFoundRange(String date1, String date2) { return clubDao.get_ID_NAME_FOUND_ClubColumnsByFoundRange(date1, date2); }
public List<Club> get_ID_NAME_LEAGUE_ClubColumns() { return clubDao.get_ID_NAME_LEAGUE_ClubColumns(); }
public List<Club> getAllClubs() { return clubDao.getAllClubs(); }
public void updateClubs(Club[] clubs) { clubDao.updateClubs(clubs); }
public void updateClub(Club club) { clubDao.updateClub(club); }
public Club getClub(int clubId) { return clubDao.getClub(clubId); }