<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: parameterized NXQL queries in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/parameterized-nxql-queries/m-p/326781#M13782</link>
    <description>&lt;P&gt;It seems you're using Nuxeo Client and not coding server-side code.&lt;/P&gt;
&lt;P&gt;I'm not aware of any helper to build parametrized queries for Nuxeo Client. On the server side there's &lt;A href="http://community.nuxeo.com/api/nuxeo/5.5/javadoc/org/nuxeo/ecm/platform/query/nxql/NXQLQueryBuilder.html"&gt;NXQLQueryBuilder&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 10 May 2012 14:24:36 GMT</pubDate>
    <dc:creator>Florent_Guillau</dc:creator>
    <dc:date>2012-05-10T14:24:36Z</dc:date>
    <item>
      <title>parameterized NXQL queries</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/parameterized-nxql-queries/m-p/326780#M13781</link>
      <description>&lt;P&gt;We have nuxeo queries which come from a constants file. A sample query is listed below.&lt;/P&gt;
&lt;P&gt;public static final String GET_FILES_BY_PARENT ="SELECT * FROM File WHERE ecm:parentId = ?"&lt;/P&gt;
&lt;P&gt;OR&lt;/P&gt;
&lt;P&gt;public static final String GET_FILES_BY_PARENT ="SELECT * FROM File WHERE ecm:parentId = :parentID"&lt;/P&gt;
&lt;P&gt;How can I plugin in the parameters while excuting the query. We execute the query in the following manner.&lt;/P&gt;
&lt;P&gt;Documents docs = (Documents) session.newRequest("Document.Query").set("query", GET_FILES_BY_PARENT).execute();&lt;/P&gt;
&lt;P&gt;We can have more than one parameter in a query. How can we parameterize the query without ugly string manipulations.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2012 13:03:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/parameterized-nxql-queries/m-p/326780#M13781</guid>
      <dc:creator>nuxeonovice_</dc:creator>
      <dc:date>2012-05-08T13:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: parameterized NXQL queries</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/parameterized-nxql-queries/m-p/326781#M13782</link>
      <description>&lt;P&gt;It seems you're using Nuxeo Client and not coding server-side code.&lt;/P&gt;
&lt;P&gt;I'm not aware of any helper to build parametrized queries for Nuxeo Client. On the server side there's &lt;A href="http://community.nuxeo.com/api/nuxeo/5.5/javadoc/org/nuxeo/ecm/platform/query/nxql/NXQLQueryBuilder.html"&gt;NXQLQueryBuilder&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2012 14:24:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/parameterized-nxql-queries/m-p/326781#M13782</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2012-05-10T14:24:36Z</dc:date>
    </item>
  </channel>
</rss>

