Example #1
0
 @Override
 public Waypoint getWaypointById(int id) {
   try {
     return waypointDao.getWaypointById(id);
   } catch (NullPointerException | HibernateException e) {
     logger.error(e.getMessage());
     return null;
   }
 }
Example #2
0
 @Override
 public Waypoint getWaypointByLabel(String waypointLabel) {
   try {
     return waypointDao.getWaypointByLabel(waypointLabel);
   } catch (NullPointerException | HibernateException e) {
     logger.error(e.getMessage());
     return null;
   }
 }
Example #3
0
 @Override
 public List<WaypointType> fetchAllWaypointTypes() {
   try {
     return waypointDao.fetchAllWaypointTypes();
   } catch (NullPointerException | HibernateException e) {
     logger.error(e.getMessage());
     return null;
   }
 }
Example #4
0
 @Override
 public WaypointType getTypeByName(String name) {
   try {
     return waypointDao.getTypeByName(name);
   } catch (NullPointerException | HibernateException e) {
     logger.error(e.getMessage());
     return null;
   }
 }
Example #5
0
 @Override
 public List<Waypoint> getWaypointsByTrip(Trip trip) {
   try {
     return waypointDao.getWaypointsByTrip(trip);
   } catch (NullPointerException | HibernateException e) {
     logger.error(e.getMessage());
     return null;
   }
 }
Example #6
0
 @Override
 public boolean deleteWaypoint(Waypoint waypoint) {
   try {
     return waypointDao.deleteWaypoint(waypoint);
   } catch (NullPointerException | HibernateException e) {
     logger.error(e.getMessage());
     return false;
   }
 }