Class AthleteServiceMain

java.lang.Object
com.endurancetrio.business.competitor.service.AthleteServiceMain
All Implemented Interfaces:
AthleteService

@Service public class AthleteServiceMain extends Object implements AthleteService
  • Constructor Details

  • Method Details

    • getAthletes

      @Transactional(readOnly=true) public AthletesPageDTO getAthletes(org.springframework.data.domain.Pageable pageable)
      Description copied from interface: AthleteService
      Returns an AthletesPageDTO containing the paginated list of athletes.
      Specified by:
      getAthletes in interface AthleteService
      Parameters:
      pageable - the pagination information (page number, page size, etc.)
      Returns:
      an AthletesPageDTO with the athletes for the current page and pagination metadata
    • getAthleteById

      @Transactional(readOnly=true) public AthleteDTO getAthleteById(Long id)
      Description copied from interface: AthleteService
      Returns the AthleteDTO for the athlete with the given ID.
      Specified by:
      getAthleteById in interface AthleteService
      Parameters:
      id - the unique identifier of the athlete
      Returns:
      the AthleteDTO for the requested athlete
    • getAthleteRaces

      @Transactional(readOnly=true) public AthleteRacesPageDTO getAthleteRaces(Long athleteId, org.springframework.data.domain.Pageable pageable)
      Description copied from interface: AthleteService
      Returns an AthleteRacesPageDTO containing the paginated list of races for the athlete with the given ID, ordered by race date descending.
      Specified by:
      getAthleteRaces in interface AthleteService
      Parameters:
      athleteId - the unique identifier of the athlete
      pageable - the pagination information (page number, page size, etc.)
      Returns:
      an AthleteRacesPageDTO with the races for the athlete and pagination metadata