You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-commits@db.apache.org by cl...@apache.org on 2024/10/29 17:41:06 UTC

(db-jdo) branch JDO-842 updated: Update JDOQLTypedQuery.java

This is an automated email from the ASF dual-hosted git repository.

clr pushed a commit to branch JDO-842
in repository https://gitbox.apache.org/repos/asf/db-jdo.git


The following commit(s) were added to refs/heads/JDO-842 by this push:
     new d32742fb Update JDOQLTypedQuery.java
d32742fb is described below

commit d32742fb3abca18612969284c05fbcb7673e3d57
Author: Craig L Russell <ap...@gmail.com>
AuthorDate: Tue Oct 29 10:41:02 2024 -0700

    Update JDOQLTypedQuery.java
    
    Deprecate JDOQLTyped Query methods:
    candidate
    variable
---
 api/src/main/java/javax/jdo/JDOQLTypedQuery.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/api/src/main/java/javax/jdo/JDOQLTypedQuery.java b/api/src/main/java/javax/jdo/JDOQLTypedQuery.java
index d787ec0a..e681e0bd 100644
--- a/api/src/main/java/javax/jdo/JDOQLTypedQuery.java
+++ b/api/src/main/java/javax/jdo/JDOQLTypedQuery.java
@@ -54,6 +54,7 @@ public interface JDOQLTypedQuery<T> extends Serializable, Closeable {
    * type-safe handling.
    *
    * @return Expression for the candidate
+   * @deprecated Users should use the static public method Q{type}.candidate("this")
    */
   PersistableExpression<T> candidate();
 
@@ -205,6 +206,7 @@ public interface JDOQLTypedQuery<T> extends Serializable, Closeable {
    * @param type Type of the variable
    * @return Expression for the variable
    * @param <V> type for the variable
+   * @deprecated Users should use the static public method Q{type}.variable(String name, Expression exp)
    */
   <V> Expression<V> variable(String name, Class<V> type);