Examples of QOMTreeVisitor


Examples of org.apache.jackrabbit.spi.commons.query.qom.QOMTreeVisitor

    protected ModificationInfo getModificationInfo(Source source, Constraint constraint,
            Ordering[] orderings, Column[] columns, QueryObjectModelFactory qomFactory,
            JCRSessionWrapper session) throws RepositoryException {
        ModificationInfo info = new ModificationInfo(qomFactory);

        QOMTreeVisitor visitor = new QueryModifierAndOptimizerVisitor(info, source, session);

        try {
            info.setMode(INITIALIZE_MODE);
            ((SourceImpl) source).accept(visitor, null);
View Full Code Here

Examples of org.apache.jackrabbit.spi.commons.query.qom.QOMTreeVisitor

    public static Ordering fromQOM(final OrderingImpl ordering,
                                    final SharedFieldComparatorSource scs,
                                    final NamespaceMappings nsMappings)
            throws RepositoryException {
        final Name[] selectorName = new Name[1];
        QOMTreeVisitor visitor = new DefaultTraversingQOMTreeVisitor() {

            public Object visit(LengthImpl node, Object data) throws Exception {
                PropertyValueImpl propValue = (PropertyValueImpl) node.getPropertyValue();
                selectorName[0] = propValue.getSelectorQName();
                return new SortField(propValue.getPropertyQName().toString(),
View Full Code Here

Examples of org.apache.jackrabbit.spi.commons.query.qom.QOMTreeVisitor

    public static Ordering fromQOM(final OrderingImpl ordering,
                                    final SortComparatorSource scs,
                                    final NamespaceMappings nsMappings)
            throws RepositoryException {
        final Name[] selectorName = new Name[1];
        QOMTreeVisitor visitor = new DefaultTraversingQOMTreeVisitor() {

            public Object visit(LengthImpl node, Object data) throws Exception {
                PropertyValueImpl propValue = (PropertyValueImpl) node.getPropertyValue();
                selectorName[0] = propValue.getSelectorQName();
                return new SortField(propValue.getPropertyQName().toString(),
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.