[jira] Commented: (JCR-1697) Simple Google style query

2010-03-02 Thread Paco Avila (JIRA)

[ 
https://issues.apache.org/jira/browse/JCR-1697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12840064#action_12840064
 ] 

Paco Avila commented on JCR-1697:
-

GQL is already in jcr-commons, so the purity is broken.

Anyway, my principal problem is that I can paginate the result of GQL, because 
the optimized method seems to be:

((QueryImpl) query).setLimit(limit);
((QueryImpl) query).setOffset(offset);

and it return a RowIterator. 

 Simple Google style query
 -

 Key: JCR-1697
 URL: https://issues.apache.org/jira/browse/JCR-1697
 Project: Jackrabbit Content Repository
  Issue Type: New Feature
  Components: jackrabbit-jcr-commons
Reporter: Marcel Reutegger
Priority: Minor
 Fix For: 1.5.0


 In the Sling project there's a need for a simple query language. See 
 SLING-573.
 I've created a parser that translates the simple query into an XPath query 
 statement and executes it on a JCR workspace.
 I'll commit it to the jackrabbit-jcr-commons module.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (JCR-1697) Simple Google style query

2010-03-02 Thread Paco Avila (JIRA)

[ 
https://issues.apache.org/jira/browse/JCR-1697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12840135#action_12840135
 ] 

Paco Avila commented on JCR-1697:
-

Sorry, I have created a new issue at JCR-2526.

 Simple Google style query
 -

 Key: JCR-1697
 URL: https://issues.apache.org/jira/browse/JCR-1697
 Project: Jackrabbit Content Repository
  Issue Type: New Feature
  Components: jackrabbit-jcr-commons
Reporter: Marcel Reutegger
Priority: Minor
 Fix For: 1.5.0


 In the Sling project there's a need for a simple query language. See 
 SLING-573.
 I've created a parser that translates the simple query into an XPath query 
 statement and executes it on a JCR workspace.
 I'll commit it to the jackrabbit-jcr-commons module.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (JCR-1697) Simple Google style query

2010-03-01 Thread Paco Avila (JIRA)

[ 
https://issues.apache.org/jira/browse/JCR-1697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12839860#action_12839860
 ] 

Paco Avila commented on JCR-1697:
-

The GQL.execute() returns a RowIterator and would be nice to return a 
QueryResult, so I can make a result.getColumnNames() to get the returned column 
names. Or perhaps better, make public the method which translates the GQL query 
to XPath so I can pass it to the QueryManager and execute it.

 Simple Google style query
 -

 Key: JCR-1697
 URL: https://issues.apache.org/jira/browse/JCR-1697
 Project: Jackrabbit Content Repository
  Issue Type: New Feature
  Components: jackrabbit-jcr-commons
Reporter: Marcel Reutegger
Priority: Minor
 Fix For: 1.5.0


 In the Sling project there's a need for a simple query language. See 
 SLING-573.
 I've created a parser that translates the simple query into an XPath query 
 statement and executes it on a JCR workspace.
 I'll commit it to the jackrabbit-jcr-commons module.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (JCR-1697) Simple Google style query

2010-03-01 Thread Paco Avila (JIRA)

[ 
https://issues.apache.org/jira/browse/JCR-1697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12839864#action_12839864
 ] 

Paco Avila commented on JCR-1697:
-

Another option is to handle these kind of queries internally making possible to 
run it as:

queryManager.createQuery(statement, type);

Where type could be gql in this case, and the statement a GQL query.

 Simple Google style query
 -

 Key: JCR-1697
 URL: https://issues.apache.org/jira/browse/JCR-1697
 Project: Jackrabbit Content Repository
  Issue Type: New Feature
  Components: jackrabbit-jcr-commons
Reporter: Marcel Reutegger
Priority: Minor
 Fix For: 1.5.0


 In the Sling project there's a need for a simple query language. See 
 SLING-573.
 I've created a parser that translates the simple query into an XPath query 
 statement and executes it on a JCR workspace.
 I'll commit it to the jackrabbit-jcr-commons module.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (JCR-1697) Simple Google style query

2010-03-01 Thread johann sorel (JIRA)

[ 
https://issues.apache.org/jira/browse/JCR-1697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12839877#action_12839877
 ] 

johann sorel commented on JCR-1697:
---

GQL has no relation with JCR. it is just a candidate amoung several others  
(like Common Query Language or Contextual Query Language) to write a query.
See : http://www.loc.gov/standards/sru/specs/cql.html

CQL and GQL are not part of the JCR, and having the Google name in it does 
give it any rights to live in the JCR common module.
If you need another query language I suggest you add it in a different module,
this way you won't force everyone to have it if they don't want it.

Some of my projects rely on the jcr-commun module and  I hope it will remain 
dedicated to pure JCR.

 Simple Google style query
 -

 Key: JCR-1697
 URL: https://issues.apache.org/jira/browse/JCR-1697
 Project: Jackrabbit Content Repository
  Issue Type: New Feature
  Components: jackrabbit-jcr-commons
Reporter: Marcel Reutegger
Priority: Minor
 Fix For: 1.5.0


 In the Sling project there's a need for a simple query language. See 
 SLING-573.
 I've created a parser that translates the simple query into an XPath query 
 statement and executes it on a JCR workspace.
 I'll commit it to the jackrabbit-jcr-commons module.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.