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