示例#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);
 }