You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Andy Jefferson (JIRA)" <ji...@apache.org> on 2015/05/12 10:45:02 UTC

[jira] [Commented] (JDO-652) Provision of a typesafe refactor-friendly query capability for JDOQL

    [ https://issues.apache.org/jira/browse/JDO-652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14539530#comment-14539530 ] 

Andy Jefferson commented on JDO-652:
------------------------------------

As already said, there are two parts to this. 
1). Generation of a (JDOQL) query using "Q" classes in a typesafe manner. This revolves around the XXXExpression classes in the patch that was provided 4+ years ago. Since I have seen no negative comments on this unless something is received to the contrary soon then I will commit this in the next week (into the package "javax.jdo.query").

2). The structure of the JDOQLTypedQuery class, and how it ties in to the query execution process. This needs to make use of whatever interface for QueryExecution so that a JDOQLTypedQuery can be executed using the same methods as a traditional Query. Personally I'm in favour of having a QueryExecution (or equivalent name) interface, and not changing too much more ... i.e let the user create a query like they do now pm.newQuery or pm.newTypedQuery and then execute them using methods in this interface, hence minimising the API change for users.

> Provision of a typesafe refactor-friendly query capability for JDOQL
> --------------------------------------------------------------------
>
>                 Key: JDO-652
>                 URL: https://issues.apache.org/jira/browse/JDO-652
>             Project: JDO
>          Issue Type: New Feature
>          Components: api, specification, tck
>            Reporter: Andy Jefferson
>             Fix For: JDO 3.2
>
>         Attachments: typesafe.patch, typesafe_manifest.patch
>
>
> There are various querying capabilities of this type around. JPA2 has its Criteria query API. Third party solutions like QueryDSL also exist, in its case providing a JDOQL implementation (as well as JPQL, and HQL). We should seriously consider introducing something along these lines in the JDO2.4 timeframe. 
> There is a comparison of JPA Criteria with QueryDSL over at 
> http://source.mysema.com/forum/mvnforum/viewthread_thread,49



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)