public interface QueryTransformer
A custom query language string might be translated from:
SELECT page WHERE dc:description LIKE 'foo%' ORDER BY dc:title
into the corresponding valid JCR-SQL2 query:
SELECT page.* FROM [cq:Page] AS page
INNER JOIN [cq:PageContent] AS child ON ISCHILDNODE(child, page)
WHERE child.[jcr:description] LIKE 'foo' AND ISDESCENDANTNODE(page, [/content])
ORDER BY child.[jcr:title]
Modifier and Type | Method and Description |
---|---|
java.lang.String |
transform(Resource resource,
java.lang.String customquery)
Transforms the specified
customquery to a valid JCR-SQL2 query. |
java.lang.String transform(Resource resource, java.lang.String customquery) throws RestException
customquery
to a valid JCR-SQL2 query.
The customquery
is meant to be applied as the specified
resource
as the search path.resource
- Resource to search incustomquery
- Custom query stringRestException
- If an error occurs during transformation"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"