|
17 | 17 | package org.neo4j.driver;
|
18 | 18 |
|
19 | 19 | import java.util.concurrent.CompletionStage;
|
20 |
| -import org.neo4j.driver.async.AsyncSession; |
21 | 20 | import org.neo4j.driver.exceptions.ClientException;
|
22 | 21 | import org.neo4j.driver.exceptions.UnsupportedFeatureException;
|
23 |
| -import org.neo4j.driver.reactive.ReactiveSession; |
24 |
| -import org.neo4j.driver.types.TypeSystem; |
25 |
| -import org.neo4j.driver.util.Experimental; |
26 | 22 |
|
27 | 23 | /**
|
28 | 24 | * Accessor for a specific Neo4j graph database.
|
@@ -132,7 +128,6 @@ default Session session(SessionConfig sessionConfig) {
|
132 | 128 | * @throws IllegalArgumentException for unsupported session types
|
133 | 129 | * @since 5.2
|
134 | 130 | */
|
135 |
| - @SuppressWarnings("deprecation") |
136 | 131 | default <T extends BaseSession> T session(Class<T> sessionClass) {
|
137 | 132 | return session(sessionClass, SessionConfig.defaultConfig());
|
138 | 133 | }
|
@@ -167,7 +162,6 @@ default <T extends BaseSession> T session(Class<T> sessionClass) {
|
167 | 162 | * @throws IllegalArgumentException for unsupported session types
|
168 | 163 | * @since 5.8
|
169 | 164 | */
|
170 |
| - @SuppressWarnings("deprecation") |
171 | 165 | default <T extends BaseSession> T session(Class<T> sessionClass, AuthToken sessionAuthToken) {
|
172 | 166 | return session(sessionClass, SessionConfig.defaultConfig(), sessionAuthToken);
|
173 | 167 | }
|
@@ -198,7 +192,6 @@ default <T extends BaseSession> T session(Class<T> sessionClass, AuthToken sessi
|
198 | 192 | * @throws IllegalArgumentException for unsupported session types
|
199 | 193 | * @since 5.2
|
200 | 194 | */
|
201 |
| - @SuppressWarnings("deprecation") |
202 | 195 | default <T extends BaseSession> T session(Class<T> sessionClass, SessionConfig sessionConfig) {
|
203 | 196 | return session(sessionClass, sessionConfig, null);
|
204 | 197 | }
|
@@ -235,63 +228,8 @@ default <T extends BaseSession> T session(Class<T> sessionClass, SessionConfig s
|
235 | 228 | * @throws IllegalArgumentException for unsupported session types
|
236 | 229 | * @since 5.8
|
237 | 230 | */
|
238 |
| - @SuppressWarnings("deprecation") |
239 | 231 | <T extends BaseSession> T session(Class<T> sessionClass, SessionConfig sessionConfig, AuthToken sessionAuthToken);
|
240 | 232 |
|
241 |
| - /** |
242 |
| - * Create a new general purpose {@link ReactiveSession} with default {@link SessionConfig session configuration}. The {@link ReactiveSession} provides a |
243 |
| - * reactive way to run queries and process results. |
244 |
| - * |
245 |
| - * @return a new {@link ReactiveSession} object. |
246 |
| - * @deprecated superseded by {@link #session(Class)} |
247 |
| - */ |
248 |
| - @Deprecated |
249 |
| - default ReactiveSession reactiveSession() { |
250 |
| - return session(ReactiveSession.class); |
251 |
| - } |
252 |
| - |
253 |
| - /** |
254 |
| - * Create a new {@link ReactiveSession} with a specified {@link SessionConfig session configuration}. Use {@link SessionConfig#forDatabase(String)} to |
255 |
| - * obtain a general purpose session configuration for the specified database. The {@link ReactiveSession} provides a reactive way to run queries and process |
256 |
| - * results. |
257 |
| - * |
258 |
| - * @param sessionConfig used to customize the session. |
259 |
| - * @return a new {@link ReactiveSession} object. |
260 |
| - * @deprecated superseded by {@link #session(Class, SessionConfig)} |
261 |
| - */ |
262 |
| - @Deprecated |
263 |
| - default ReactiveSession reactiveSession(SessionConfig sessionConfig) { |
264 |
| - return session(ReactiveSession.class, sessionConfig); |
265 |
| - } |
266 |
| - |
267 |
| - /** |
268 |
| - * Create a new general purpose {@link AsyncSession} with default {@link SessionConfig session configuration}. The {@link AsyncSession} provides an |
269 |
| - * asynchronous way to run queries and process results. |
270 |
| - * <p> |
271 |
| - * Alias to {@link #asyncSession(SessionConfig)}}. |
272 |
| - * |
273 |
| - * @return a new {@link AsyncSession} object. |
274 |
| - * @deprecated superseded by {@link #session(Class)} |
275 |
| - */ |
276 |
| - @Deprecated |
277 |
| - default AsyncSession asyncSession() { |
278 |
| - return session(AsyncSession.class); |
279 |
| - } |
280 |
| - |
281 |
| - /** |
282 |
| - * Create a new {@link AsyncSession} with a specified {@link SessionConfig session configuration}. |
283 |
| - * Use {@link SessionConfig#forDatabase(String)} to obtain a general purpose session configuration for the specified database. |
284 |
| - * The {@link AsyncSession} provides an asynchronous way to run queries and process results. |
285 |
| - * |
286 |
| - * @param sessionConfig used to customize the session. |
287 |
| - * @return a new {@link AsyncSession} object. |
288 |
| - * @deprecated superseded by {@link #session(Class, SessionConfig)} |
289 |
| - */ |
290 |
| - @Deprecated |
291 |
| - default AsyncSession asyncSession(SessionConfig sessionConfig) { |
292 |
| - return session(AsyncSession.class, sessionConfig); |
293 |
| - } |
294 |
| - |
295 | 233 | /**
|
296 | 234 | * Close all the resources assigned to this driver, including open connections and IO threads.
|
297 | 235 | * <p>
|
@@ -334,18 +272,6 @@ default AsyncSession asyncSession(SessionConfig sessionConfig) {
|
334 | 272 | */
|
335 | 273 | boolean isMetricsEnabled();
|
336 | 274 |
|
337 |
| - /** |
338 |
| - * This will return the type system supported by the driver. |
339 |
| - * The types supported on a particular server a session is connected against might not contain all of the types defined here. |
340 |
| - * |
341 |
| - * @return type system used by this query runner for classifying values |
342 |
| - * @deprecated superseded by {@link TypeSystem#getDefault()} |
343 |
| - */ |
344 |
| - @Experimental |
345 |
| - @Deprecated |
346 |
| - @SuppressWarnings("SameReturnValue") |
347 |
| - TypeSystem defaultTypeSystem(); |
348 |
| - |
349 | 275 | /**
|
350 | 276 | * This verifies if the driver can connect to a remote server or a cluster
|
351 | 277 | * by establishing a network connection with the remote and possibly exchanging a few data before closing the connection.
|
|
0 commit comments