@Component class DistanceRepositoryImpl extends Object implements DistanceRepository
| Constructor and Description |
|---|
DistanceRepositoryImpl(DistanceCrudRepository distanceRepository) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteAll() |
void |
deleteDistances(Location location) |
long |
getDistance(Location from,
Location to) |
void |
saveDistance(Location from,
Location to,
long distance) |
@Autowired DistanceRepositoryImpl(DistanceCrudRepository distanceRepository)
public void saveDistance(Location from, Location to, long distance)
saveDistance in interface DistanceRepositorypublic long getDistance(Location from, Location to)
getDistance in interface DistanceRepositorypublic void deleteDistances(Location location)
deleteDistances in interface DistanceRepositorypublic void deleteAll()
deleteAll in interface DistanceRepositoryCopyright © 2001–2021 JBoss by Red Hat. All rights reserved.