1
0
mirror of https://github.com/bspeice/itcs4180 synced 2025-08-02 13:35:25 -04:00

A whole lot of skeleton work for the scavenger hunt

This commit is contained in:
Bradlee Speice
2014-04-13 23:32:39 -04:00
parent dddab46731
commit f4df53da3f
5 changed files with 206 additions and 33 deletions

View File

@ -0,0 +1,33 @@
package edu.uncc.scavenger.database;
import java.util.List;
import edu.uncc.scavenger.rest.RestLocation;
public class LocationDatabaseClient {
/*
* Super high-level API for working with locations.
* Also helpful for just drawing out skeletons of code.
*/
public List<RestLocation> getAllLocations() {
// TODO: Implement method to get all locations that exist in the database
return null;
}
public void persistLocation(RestLocation location) {
// TODO: Save a location to the database
}
public void persistLocation(List<RestLocation> locations) {
for (RestLocation l: locations) {
persistLocation(l);
}
}
public void synchronizeLocations(List<RestLocation> locations) {
// TODO: Implement method to save all values in locations, and remove values that aren't there.
}
}