I have implemented the  javax.jcr.nodetype package  and it is almost
finished except some methods.And nodetype creation test passes 100%.And all
the other tests  required test data.And committed to the trunk

While finding a solution for unavailability of test data ,I also started
implementing the javax.jcr.query and javax.jcr.query.qom packages.And I have
finished almost all 18 classes in  javax.jcr.query.qom ,but still have some
2,3 classes to finish.And committed to the trunk.

These days I am looking at javax.jcr.query package and going through the JCR
2 spec about queries to figure out how we can map our Registry query with
JCR query concept.
Also not only having SQL (similar) querying ,they also have XPath

For instance :if a user use JCR query this is how he should do it.(a simple
query)

*In SQL:*

// make SQL query
QueryManager queryManager = workspace.getQueryManager();
// create query
String sqlStatement = "SELECT * FROM mix:title ORDER BY prop_pagecount
ASC";
Query query = queryManager.createQuery(sqlStatement, Query.SQL);
// execute query and fetch result
QueryResult result = query.execute();

*In XPath*

 // make XPath query
QueryManager queryManager = workspace.getQueryManager();
 // create query
String xpathStatement = "//element(*,mix:title) order by
prop_pagecount ascending";
Query query = queryManager.createQuery(xpathStatement, Query.XPATH);
// execute query and fetch result
QueryResult result = query.execute();



Regards
/subash
_______________________________________________
Carbon-dev mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to