Пример #1
0
 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);
 }
Пример #2
0
 @Override
 public Club getClub(String clubName) {
   return clubDao.getClub(clubName);
 }
Пример #3
0
 @Override
 public List<Club> get_ID_NAME_LEAGUE_ClubColumnsByLeagueName(String leagueName) {
   return clubDao.get_ID_NAME_LEAGUE_ClubColumnsByLeagueName(leagueName);
 }
Пример #4
0
 @Override
 public List<String> getAllClubNames() {
   return clubDao.getAllClubNames();
 }
Пример #5
0
 public List<Club> get_ID_NAME_FOUND_ClubColumnsByFoundRange(String date1, String date2) {
   return clubDao.get_ID_NAME_FOUND_ClubColumnsByFoundRange(date1, date2);
 }
Пример #6
0
 public List<Club> get_ID_NAME_LEAGUE_ClubColumns() {
   return clubDao.get_ID_NAME_LEAGUE_ClubColumns();
 }
Пример #7
0
 public List<Club> getAllClubs() {
   return clubDao.getAllClubs();
 }
Пример #8
0
 public void updateClubs(Club[] clubs) {
   clubDao.updateClubs(clubs);
 }
Пример #9
0
 public void updateClub(Club club) {
   clubDao.updateClub(club);
 }
Пример #10
0
 public Club getClub(int clubId) {
   return clubDao.getClub(clubId);
 }