public class QueryServiceImpl extends QueryService
settingsBean| Modifier and Type | Method and Description |
|---|---|
static QueryService |
getInstance()
Return the unique service instance.
|
protected org.jahia.services.query.ModificationInfo |
getModificationInfo(javax.jcr.query.qom.Source source,
javax.jcr.query.qom.Constraint constraint,
javax.jcr.query.qom.Ordering[] orderings,
javax.jcr.query.qom.Column[] columns,
javax.jcr.query.qom.QueryObjectModelFactory qomFactory,
JCRSessionWrapper session)
We use a QOMTreeVisitor implementation to traverse through the query object model three times.
|
javax.jcr.ValueFactory |
getValueFactory()
Entry point to request a ValueFactory instance
|
protected void |
makeModifications(javax.jcr.query.qom.Source source,
javax.jcr.query.qom.Constraint constraint,
javax.jcr.query.qom.Ordering[] orderings,
javax.jcr.query.qom.Column[] columns,
org.jahia.services.query.ModificationInfo info,
org.apache.jackrabbit.spi.commons.query.qom.QOMTreeVisitor visitor,
javax.jcr.query.qom.QueryObjectModelFactory qomFactory) |
javax.jcr.query.qom.QueryObjectModel |
modifyAndOptimizeQuery(javax.jcr.query.qom.QueryObjectModel qom,
javax.jcr.query.qom.QueryObjectModelFactory qomFactory,
JCRSessionWrapper session)
Modifies the query to adapt to Jahia's internal datamodel implementation, which creates jnt:translation subnodes per locale (language).
|
javax.jcr.query.qom.QueryObjectModel |
modifyAndOptimizeQuery(javax.jcr.query.qom.Source source,
javax.jcr.query.qom.Constraint constraint,
javax.jcr.query.qom.Ordering[] orderings,
javax.jcr.query.qom.Column[] columns,
javax.jcr.query.qom.QueryObjectModelFactory qomFactory,
JCRSessionWrapper session)
Modifies the query to adapt to Jahia's internal datamodel implementation, which creates jnt:translation subnodes per locale (language).
|
void |
start()
Initializes the service.
|
void |
stop() |
getSettingsBean, setSettingsBeanpublic static QueryService getInstance()
public void start()
start in class JahiaServicepublic void stop()
stop in class JahiaServicepublic javax.jcr.query.qom.QueryObjectModel modifyAndOptimizeQuery(javax.jcr.query.qom.QueryObjectModel qom,
javax.jcr.query.qom.QueryObjectModelFactory qomFactory,
JCRSessionWrapper session)
throws javax.jcr.RepositoryException
QueryServicemodifyAndOptimizeQuery in class QueryServiceqom - the source query object modelqomFactory - query object model factory to usesession - the current JCR session used for the queryjavax.jcr.RepositoryException - if the operation failspublic javax.jcr.query.qom.QueryObjectModel modifyAndOptimizeQuery(javax.jcr.query.qom.Source source,
javax.jcr.query.qom.Constraint constraint,
javax.jcr.query.qom.Ordering[] orderings,
javax.jcr.query.qom.Column[] columns,
javax.jcr.query.qom.QueryObjectModelFactory qomFactory,
JCRSessionWrapper session)
throws javax.jcr.RepositoryException
QueryServicemodifyAndOptimizeQuery in class QueryServicesource - the QOM Source object to useconstraint - the QOM root constraint object to useorderings - the QOM ordering objects to usecolumns - the QOM column objects to useqomFactory - query object model factory to usesession - the current JCR session used for the queryjavax.jcr.RepositoryException - if the operation failsprotected org.jahia.services.query.ModificationInfo getModificationInfo(javax.jcr.query.qom.Source source,
javax.jcr.query.qom.Constraint constraint,
javax.jcr.query.qom.Ordering[] orderings,
javax.jcr.query.qom.Column[] columns,
javax.jcr.query.qom.QueryObjectModelFactory qomFactory,
JCRSessionWrapper session)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionprotected void makeModifications(javax.jcr.query.qom.Source source,
javax.jcr.query.qom.Constraint constraint,
javax.jcr.query.qom.Ordering[] orderings,
javax.jcr.query.qom.Column[] columns,
org.jahia.services.query.ModificationInfo info,
org.apache.jackrabbit.spi.commons.query.qom.QOMTreeVisitor visitor,
javax.jcr.query.qom.QueryObjectModelFactory qomFactory)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic javax.jcr.ValueFactory getValueFactory()
QueryServicegetValueFactory in class QueryServiceCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.