public List<GraphQueryNotification> getNotifications() { if (resultSummary == null) { return Collections.emptyList(); } if (notifications != null) { return notifications; } notifications = resultSummary.notifications().stream() .map(notification -> new Neo4jBoltQueryNotification(notification.title(), notification.description(), Optional.ofNullable(notification.position()) .map(InputPosition::offset) .orElse(null))) .collect(toList()); return notifications; }
if (summary.notifications().size() > 0) { sb.append("Notifications:\n"); for (Notification notification : summary.notifications()) { sb.append(format("[%s] %s(%s) - %s", notification.severity(), notification.title(), notification.code(), notification.description()));