|
46 | 46 | public interface Neo4jClient {
|
47 | 47 |
|
48 | 48 | LogAccessor cypherLog = new LogAccessor(LogFactory.getLog("org.springframework.data.neo4j.cypher"));
|
49 |
| - LogAccessor cypherNotificationLog = new LogAccessor(LogFactory.getLog("org.springframework.data.neo4j.cypher.notifications")); |
| 49 | + LogAccessor cypherPerformanceNotificationLog = new LogAccessor(LogFactory.getLog("org.springframework.data.neo4j.cypher.performance")); |
| 50 | + LogAccessor cypherHintNotificationLog = new LogAccessor(LogFactory.getLog("org.springframework.data.neo4j.cypher.hint")); |
| 51 | + LogAccessor cypherUnrecognizedNotificationLog = new LogAccessor(LogFactory.getLog("org.springframework.data.neo4j.cypher.unrecognized")); |
| 52 | + LogAccessor cypherUnsupportedNotificationLog = new LogAccessor(LogFactory.getLog("org.springframework.data.neo4j.cypher.unsupported")); |
| 53 | + LogAccessor cypherDeprecationNotificationLog = new LogAccessor(LogFactory.getLog("org.springframework.data.neo4j.cypher.deprecation")); |
| 54 | + LogAccessor cypherGenericNotificationLog = new LogAccessor(LogFactory.getLog("org.springframework.data.neo4j.cypher.generic")); |
50 | 55 | LogAccessor log = new LogAccessor(LogFactory.getLog(Neo4jClient.class));
|
51 | 56 |
|
52 |
| - Set<String> cypherNotificationCategories = Set.of( |
53 |
| - "Neo.ClientNotification.Statement.UnknownRelationshipTypeWarning", |
| 57 | + // from https://neo4j.com/docs/status-codes/current/notifications/all-notifications/ |
| 58 | + Set<String> cypherPerformanceNotificationCodes = Set.of( |
| 59 | + "Neo.ClientNotification.Statement.CartesianProduct", |
| 60 | + "Neo.ClientNotification.Statement.UnboundedVariableLengthPattern", |
| 61 | + "Neo.ClientNotification.Statement.ExhaustiveShortestPath", |
| 62 | + "Neo.ClientNotification.Statement.NoApplicableIndex", |
| 63 | + "Neo.ClientNotification.Statement.EagerOperator", |
| 64 | + "Neo.ClientNotification.Statement.DynamicProperty", |
| 65 | + "Neo.ClientNotification.Statement.CodeGenerationFailed"); |
| 66 | + |
| 67 | + Set<String> cypherHintNotificationCodes = Set.of( |
| 68 | + "Neo.ClientNotification.Statement.JoinHintUnfulfillableWarning", |
| 69 | + "Neo.ClientNotification.Schema.HintedIndexNotFound"); |
| 70 | + |
| 71 | + Set<String> cypherUnrecognizedNotificationCodes = Set.of( |
| 72 | + "Neo.ClientNotification.Database.HomeDatabaseNotFound", |
54 | 73 | "Neo.ClientNotification.Statement.UnknownLabelWarning",
|
55 |
| - "Neo.ClientNotification.Statement.UnknownPropertyKeyWarning", |
56 |
| - "Neo.ClientNotification.Statement.FeatureDeprecationWarning"); |
| 74 | + "Neo.ClientNotification.Statement.UnknownRelationshipTypeWarning", |
| 75 | + "Neo.ClientNotification.Statement.UnknownPropertyKeyWarning"); |
| 76 | + |
| 77 | + Set<String> cypherUnsupportedNotificationCodes = Set.of( |
| 78 | + "Neo.ClientNotification.Statement.RuntimeUnsupportedWarning", |
| 79 | + "Neo.ClientNotification.Statement.RuntimeExperimental"); |
| 80 | + |
| 81 | + Set<String> cypherDeprecationNotificationCodes = Set.of( |
| 82 | + "Neo.ClientNotification.Statement.FeatureDeprecationWarning", |
| 83 | + "Neo.ClientNotification.Request.DeprecatedFormat"); |
| 84 | + |
| 85 | + Set<String> cypherGenericNotificationCodes = Set.of( |
| 86 | + "Neo.ClientNotification.Statement.SubqueryVariableShadowing", |
| 87 | + "Neo.ClientNotification.Statement.ParameterNotProvided", |
| 88 | + "Neo.ClientNotification.Procedure.ProcedureWarning", |
| 89 | + "Neo.ClientNotification.Statement.UnsatisfiableRelationshipTypeExpression", |
| 90 | + "Neo.ClientNotification.Statement.RepeatedRelationshipReference"); |
| 91 | + |
57 | 92 |
|
58 | 93 | static Neo4jClient create(Driver driver) {
|
59 | 94 |
|
|
0 commit comments