We have nuxeo queries which come from a constants file. A
sample query is listed below.

public static final String GET_FILES_BY_PARENT ="SELECT *
FROM File WHERE ecm:parentId = ?"

OR

public static final String GET_FILES_BY_PARENT ="SELECT *
FROM File WHERE ecm:parentId = :parentID"

How can I plugin in the parameters while excuting the query.
We execute the query in the following manner.

Documents docs = (Documents)
session.newRequest("Document.Query").set("query",
GET_FILES_BY_PARENT).execute();

We can have more than one parameter in a query. How can we
parameterize the query without ugly string manipulations.

---
Mailing list: [email protected]
Forum: http://forum.nuxeo.org/f/1/

Reply via email to