cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject [cayenne] branch master updated: adding deprecation note to DbAdapter SelectQuery-specific method
Date Sat, 16 May 2020 10:16:44 GMT
This is an automated email from the ASF dual-hosted git repository.

aadamchik pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cayenne.git


The following commit(s) were added to refs/heads/master by this push:
     new 067b7fa  adding deprecation note to DbAdapter SelectQuery-specific method
067b7fa is described below

commit 067b7fa9b3d2b22ab28ed76c4490e4ccacfa8295
Author: Andrus Adamchik <andrus@objectstyle.com>
AuthorDate: Sat May 16 13:15:17 2020 +0300

    adding deprecation note to DbAdapter SelectQuery-specific method
---
 .../src/main/java/org/apache/cayenne/dba/DbAdapter.java | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/cayenne-server/src/main/java/org/apache/cayenne/dba/DbAdapter.java b/cayenne-server/src/main/java/org/apache/cayenne/dba/DbAdapter.java
index a3e121a..647de31 100644
--- a/cayenne-server/src/main/java/org/apache/cayenne/dba/DbAdapter.java
+++ b/cayenne-server/src/main/java/org/apache/cayenne/dba/DbAdapter.java
@@ -55,12 +55,15 @@ public interface DbAdapter {
 	 */
 	String getBatchTerminator();
 
-	/**
-	 * Returns a SelectTranslator that works with the adapter target database.
-	 *
-	 * @since 4.0
-	 */
-	SelectTranslator getSelectTranslator(SelectQuery<?> query, EntityResolver entityResolver);
+    /**
+     * Returns a SelectTranslator that works with the adapter target database.
+     *
+     * @since 4.0
+     * @deprecated since 4.2 as {@link SelectQuery} is deprecated.
+     * {@link #getSelectTranslator(FluentSelect, EntityResolver)} replaces this method.
+     */
+    @Deprecated
+    SelectTranslator getSelectTranslator(SelectQuery<?> query, EntityResolver entityResolver);
 
 	/**
 	 * @since 4.2
@@ -111,7 +114,7 @@ public interface DbAdapter {
     default boolean supportsGeneratedKeysForBatchInserts() {
     	return supportsGeneratedKeys();
     }
-    
+
 	/**
 	 * Returns <code>true</code> if the target database supports batch updates.
 	 */


Mime
View raw message