[jira] [Commented] (JDO-735) Make PersistenceManager and Query support AutoCloseable (JDK1.7+)
[ https://issues.apache.org/jira/browse/JDO-735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15696378#comment-15696378 ] Michael Bouschen commented on JDO-735: -- Need a tck test for try-with-resources for Extent, and Query. Maybe org.apache.jdo.tck.extents.AutoCloseable.java org.apache.jdo.tck.query.api.AutoCloseable.java The test class for PersistenceManager is pretty simple with no error cases. We should think about adding some cases where the test() method throws an exception and make sure the PM is closed: org.apache.jdo.tck.api.persistencemanager.close.AutoCloseable.java > Make PersistenceManager and Query support AutoCloseable (JDK1.7+) > - > > Key: JDO-735 > URL: https://issues.apache.org/jira/browse/JDO-735 > Project: JDO > Issue Type: New Feature > Components: api, specification, tck >Reporter: Andy Jefferson >Assignee: Michael Bouschen > Fix For: JDO 3.2 > > Attachments: CloseWithActiveTxRollsBack.java > > > So then it can be used with JDK1.7+ try-with-resources, as per > http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (JDO-758) What can a subquery return?
[ https://issues.apache.org/jira/browse/JDO-758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15696388#comment-15696388 ] Craig L Russell commented on JDO-758: - This part of the specification needs some work: A14.6.2-50[The Query parameter instance is unmodified as a result of the addSubquery or subsequent execution of the outer Query. Only some of the parameter query parts are copied for use as the subquery. The parts copied include the candidate class, filter, parameter declarations, variable declarations, imports, ordering specification, uniqueness, result specification, and grouping specification. The association with a PersistenceManager, the candidate collection or extent, result class, and range limits are not used. ] We also need to specify what kinds of subqueries are supported. Subqueries that return aggregates are required to be supported. Subqueries that return collections or individual objects are not required to be supported. No method calls on results of subqueries. > What can a subquery return? > --- > > Key: JDO-758 > URL: https://issues.apache.org/jira/browse/JDO-758 > Project: JDO > Issue Type: Improvement > Components: specification >Affects Versions: JDO 3.1 >Reporter: Tilmann Zäschke >Priority: Minor > Fix For: JDO 3.2 > > > The current spec specifies that subqueries should support ordering and > grouping, suggesting that subqueries should be able to return collections of > results. > However, a Java {{Collection}} (others are not supported in JDOQL) only > support {{size()}}, {{isEmpty()}} and {{contains()}}. These three functions > all return scalars, furthermore, these could all be implemented easily with > an additional term inside the subquery. Since the current reference > implementation does not support all these functions, it should be considered > whether subqueries should at all be required to return collections of objects. > A similar argument could be made for returning persistent objects from > subqueries (suggested by required support for 'unique'). Persistent objects > cannot be used in the parent query, except for accessing their identity, or > possibly casting them to a persistent type and access a field. > Can anyone think of a usecase or other argument why subqueries should be able > to return anything else than scalars/boolean (and possibly single persistent > objects)? -- This message was sent by Atlassian JIRA (v6.3.4#6332)
Minutes: JDO TCK Conference Call Friday November 25, 9 AM Pacific Time (PST)
Attendees: Michael Bouschen, Craig Russell Agenda: 1. JDO-735 "Make PersistenceManager and Query support AutoCloseable (JDK1.7+)" https://issues.apache.org/jira/browse/JDO-735 JIRA was updated to record that we need new/updated test cases for try-with-resources. 2. JDO-758 "What can a subquery return?" https://issues.apache.org/jira/browse/JDO-758 This part of the specification needs some work: A14.6.2-50[The Query parameter instance is unmodified as a result of the addSubquery or subsequent execution of the outer Query. Only some of the parameter query parts are copied for use as the subquery. The parts copied include the candidate class, filter, parameter declarations, variable declarations, imports, ordering specification, uniqueness, result specification, and grouping specification. The association with a PersistenceManager, the candidate collection or extent, result class, and range limits are not used. ] We also need to specify what kinds of subqueries are supported. Subqueries that return aggregates are required to be supported. Subqueries that return collections or individual objects are not required to be supported. 3. JDO-751 "Support for Java8 Optional" https://issues.apache.org/jira/browse/JDO-751 4. JDO-747 "Behavior of delete() with multiple concurrent Transactions" https://issues.apache.org/jira/browse/JDO-747 5. JDO 3.1: Need to go through change lists in JIRA for 3.1 RC1 and 3.1 to prepare JCP Change Log 6. Other issues Chapter 14 was updated with changes for Optional. There was a new table 5 inserted. All changes have been accepted. Action Items from weeks past: [Nov 04 2016] AI Craig update specification p. 183 and 193 for clarity. [Oct 30 2015] AI Craig: File a maintenance review with JCP [May 15 2015] AI Craig Spec change for roll back an active transaction when closing a persistence manager (JDO-735) [Apr 17 2015] AI Craig: Oracle spec page on JDO need to be updated once the JCP Maintenance Release for JDO 3.1 is published [Oct 17 2014] AI Matthew any updates for "Modify specification to address NoSQL datastores": https://issues.apache.org/jira/browse/JDO-651? [Feb 28 2014] AI Everyone: take a look at https://issues.apache.org/jira/browse/JDO-712 [Feb 28 2014] AI Everyone: take a look at https://issues.apache.org/jira/browse/JDO-625 [Dec 13 2013] AI Craig file a JIRA for java.sql.Blob and java.sql.Clob as persistent field types [Aug 24 2012] AI Craig update the JIRAs JDO-689 JDO-690 and JDO-692 about JDOHelper methods. In process. Craig L Russell Architect craig.russ...@oracle.com P.S. A good JDO? O, Gasp!