jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@adobe.com>
Subject Re: what we have to use instead of Query.XPATH
Date Thu, 07 Jul 2011 15:38:18 GMT
It is only deprecated in the JCR 2.0 spec (and hence the javax.jcr api
docs), but Jackrabbit will continue to support it, since a lot of apps on
top of Jackrabbit make use of Xpath as the primary query language.


On 07.07.11 08:21, "g. raaja" <raaja09@gmail.com> wrote:

>Its showing Query.XPATH is deprecated and in API its showing
>*Deprecated. As of JCR 2.0, this language is deprecated.*
>my code is: This is for adding spellcheck
>*QueryManager qm = jcrSession.getWorkspace().getQueryManager();
>Query query =
>and in another condition
>*QueryManager qm = jcrSession.getWorkspace().getQueryManager();
>stmt1 ="//element(*,nt:resource)[jcr:contains(.,'"+content+"')]";
>Query q = qm.createQuery(stmt1, Query.XPATH)*;
>I am not getting an idea what I have to use instead of this.
>Please guide me what to use in the place of this Query.XPATH.
>Thanking you.
>--raaja g
>View this message in context:
>Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.

Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel

View raw message