Class RouteServiceMain

java.lang.Object
com.endurancetrio.business.tracker.service.RouteServiceMain
All Implemented Interfaces:
RouteService

@Service public class RouteServiceMain extends Object implements RouteService
  • Constructor Details

  • Method Details

    • create

      @Transactional public RouteDTO create(RouteDTO routeDTO)
      Description copied from interface: RouteService
      Creates a new route configuration.
      Specified by:
      create in interface RouteService
      Parameters:
      routeDTO - the route configuration to be created (id must be null)
      Returns:
      the created RouteDTO
    • update

      @Transactional public RouteDTO update(Long id, RouteDTO routeDTO)
      Description copied from interface: RouteService
      Updates an existing route configuration.
      Specified by:
      update in interface RouteService
      Parameters:
      id - the unique identifier of the route to update
      routeDTO - the route configuration with updated data
      Returns:
      the updated RouteDTO
    • findAll

      @Transactional(readOnly=true) public List<RouteDTO> findAll()
      Description copied from interface: RouteService
      Retrieves all route configurations.
      Specified by:
      findAll in interface RouteService
      Returns:
      a list of RouteDTO representing all route configurations
    • findById

      @Transactional(readOnly=true) public RouteDTO findById(Long id)
      Description copied from interface: RouteService
      Finds a route configuration by its unique identifier.
      Specified by:
      findById in interface RouteService
      Parameters:
      id - the unique identifier of the route configuration
      Returns:
      the RouteDTO corresponding to the provided id
    • getRouteMetrics

      @Transactional(readOnly=true) public RouteMetricsDTO getRouteMetrics(Long id)
      Specified by:
      getRouteMetrics in interface RouteService