java.lang.Object
org.neo4j.driver.internal.summary.InternalGqlStatusObject
org.neo4j.driver.internal.summary.InternalNotification
- All Implemented Interfaces:
GqlStatusObject
,Notification
-
Field Summary
Fields inherited from class org.neo4j.driver.internal.summary.InternalGqlStatusObject
NO_DATA, NO_DATA_UNKNOWN, OMITTED_RESULT, SUCCESS
-
Constructor Summary
ConstructorDescriptionInternalNotification
(String gqlStatus, String statusDescription, Map<String, Value> diagnosticRecord, String code, String title, String description, NotificationSeverity severityLevel, String rawSeverityLevel, NotificationClassification classification, String rawClassification, InputPosition position) -
Method Summary
Modifier and TypeMethodDescriptioncategory()
Returns the category of the notification.ReturnsNotificationClassification
derived from the diagnostic record.code()
Returns a notification code for the discovered issue.Returns a longer description of the notification.boolean
int
hashCode()
position()
The position in the query where this notification points to.Returns the raw category of the notification as a String returned by the server.Returns notification classification from the diagnostic record as aString
value retrieved directly from the diagnostic record.Returns the raw severity level of the notification as a String value retrieved directly from the diagnostic record.Returns the severity level of the notification derived from the diagnostic record.title()
Returns a short summary of the notification.toString()
static Optional<NotificationCategory>
Methods inherited from class org.neo4j.driver.internal.summary.InternalGqlStatusObject
diagnosticRecord, gqlStatus, statusDescription
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.neo4j.driver.summary.GqlStatusObject
diagnosticRecord, gqlStatus, statusDescription
Methods inherited from interface org.neo4j.driver.summary.Notification
inputPosition, severity
-
Constructor Details
-
InternalNotification
public InternalNotification(String gqlStatus, String statusDescription, Map<String, Value> diagnosticRecord, String code, String title, String description, NotificationSeverity severityLevel, String rawSeverityLevel, NotificationClassification classification, String rawClassification, InputPosition position)
-
-
Method Details
-
valueOf
-
code
Description copied from interface:Notification
Returns a notification code for the discovered issue.- Specified by:
code
in interfaceNotification
- Returns:
- the notification code
-
title
Description copied from interface:Notification
Returns a short summary of the notification.- Specified by:
title
in interfaceNotification
- Returns:
- the title of the notification.
- See Also:
-
description
Description copied from interface:Notification
Returns a longer description of the notification.- Specified by:
description
in interfaceNotification
- Returns:
- the description of the notification.
-
position
Description copied from interface:Notification
The position in the query where this notification points to. Not all notifications have a unique position to point to and in that case the position would be set to null.- Specified by:
position
in interfaceNotification
- Returns:
- the position in the query where the issue was found, or null if no position is associated with this notification.
-
severityLevel
Description copied from interface:Notification
Returns the severity level of the notification derived from the diagnostic record.- Specified by:
severityLevel
in interfaceNotification
- Returns:
- the severity level of the notification
- See Also:
-
rawSeverityLevel
Description copied from interface:Notification
Returns the raw severity level of the notification as a String value retrieved directly from the diagnostic record.- Specified by:
rawSeverityLevel
in interfaceNotification
- Returns:
- the severity level of the notification
- See Also:
-
classification
Description copied from interface:Notification
ReturnsNotificationClassification
derived from the diagnostic record.- Specified by:
classification
in interfaceNotification
- Returns:
- an
Optional
ofNotificationClassification
or an emptyOptional
when the classification is either absent or unrecognised - See Also:
-
rawClassification
Description copied from interface:Notification
Returns notification classification from the diagnostic record as aString
value retrieved directly from the diagnostic record.- Specified by:
rawClassification
in interfaceNotification
- Returns:
- an
Optional
of notification classification or an emptyOptional
when it is absent - See Also:
-
category
Description copied from interface:Notification
Returns the category of the notification.- Specified by:
category
in interfaceNotification
- Returns:
- the category of the notification
-
rawCategory
Description copied from interface:Notification
Returns the raw category of the notification as a String returned by the server.- Specified by:
rawCategory
in interfaceNotification
- Returns:
- the category of the notification
-
equals
- Overrides:
equals
in classInternalGqlStatusObject
-
hashCode
public int hashCode()- Overrides:
hashCode
in classInternalGqlStatusObject
-
toString
- Overrides:
toString
in classInternalGqlStatusObject
-