java.lang.Object
org.neo4j.driver.internal.summary.InternalGqlStatusObject
org.neo4j.driver.internal.summary.InternalGqlNotification
- All Implemented Interfaces:
GqlNotification
,GqlStatusObject
public final class InternalGqlNotification
extends InternalGqlStatusObject
implements GqlNotification
-
Field Summary
Fields inherited from class org.neo4j.driver.internal.summary.InternalGqlStatusObject
diagnosticRecord, gqlStatus, NO_DATA, NO_DATA_UNKNOWN, OMITTED_RESULT, statusDescription, SUCCESS
-
Constructor Summary
ConstructorsConstructorDescriptionInternalGqlNotification
(String gqlStatus, String statusDescription, Map<String, Value> diagnosticRecord, InputPosition position, NotificationSeverity severityLevel, String rawSeverityLevel, NotificationClassification classification, String rawClassification) -
Method Summary
Modifier and TypeMethodDescriptionReturnsNotificationClassification
derived from the diagnostic record.position()
Returns a position in the query where this notification points to.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.severity()
Returns the severity level of the notification derived from the diagnostic record.toString()
Methods inherited from class org.neo4j.driver.internal.summary.InternalGqlStatusObject
diagnosticRecord, equals, gqlStatus, hashCode, 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
-
Constructor Details
-
InternalGqlNotification
public InternalGqlNotification(String gqlStatus, String statusDescription, Map<String, Value> diagnosticRecord, InputPosition position, NotificationSeverity severityLevel, String rawSeverityLevel, NotificationClassification classification, String rawClassification)
-
-
Method Details
-
position
Description copied from interface:GqlNotification
Returns a position in the query where this notification points to.Not all notifications have a unique position to point to and in that case an empty
Optional
is returned.- Specified by:
position
in interfaceGqlNotification
- Returns:
- an
Optional
of theInputPosition
if available or an emptyOptional
otherwise
-
severity
Description copied from interface:GqlNotification
Returns the severity level of the notification derived from the diagnostic record.- Specified by:
severity
in interfaceGqlNotification
- Returns:
- the severity level of the notification
- See Also:
-
rawSeverity
Description copied from interface:GqlNotification
Returns the raw severity level of the notification as a String value retrieved directly from the diagnostic record.- Specified by:
rawSeverity
in interfaceGqlNotification
- Returns:
- the severity level of the notification
- See Also:
-
classification
Description copied from interface:GqlNotification
ReturnsNotificationClassification
derived from the diagnostic record.- Specified by:
classification
in interfaceGqlNotification
- Returns:
- an
Optional
ofNotificationClassification
or an emptyOptional
when the classification is either absent or unrecognised - See Also:
-
rawClassification
Description copied from interface:GqlNotification
Returns notification classification from the diagnostic record as aString
value retrieved directly from the diagnostic record.- Specified by:
rawClassification
in interfaceGqlNotification
- Returns:
- an
Optional
of notification classification or an emptyOptional
when it is absent - See Also:
-
toString
- Overrides:
toString
in classInternalGqlStatusObject
-