You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Benson Margulies (JIRA)" <ji...@apache.org> on 2014/07/02 14:33:24 UTC

[jira] [Updated] (JENA-736) QueryExecution should implement AutoClosable

     [ https://issues.apache.org/jira/browse/JENA-736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benson Margulies updated JENA-736:
----------------------------------

    Summary: QueryExecution should implement AutoClosable  (was: QueryExecution should implement Closable)

> QueryExecution should implement AutoClosable
> --------------------------------------------
>
>                 Key: JENA-736
>                 URL: https://issues.apache.org/jira/browse/JENA-736
>             Project: Apache Jena
>          Issue Type: Improvement
>            Reporter: Benson Margulies
>
> This would be nice ...
>  try (QueryExecution qexec = QueryExecutionFactory.sparqlService("http://dbpedia.org/sparql", query)) {
>             ResultSet results = qexec.execSelect();
>             for (; results.hasNext(); ) {
>                 // Result processing is done here.
>             }
>         }



--
This message was sent by Atlassian JIRA
(v6.2#6252)