Package org.modeshape.jcr.api.query.qom

Examples of org.modeshape.jcr.api.query.qom.SetCriteria


                                    Comparison comparison = (Comparison)constraint;
                                    if (isPrimaryTypeConstraint(comparison.getOperand1())) {
                                        addLiteral(comparison.getOperand2(), nodeTypeNames);
                                    }
                                } else if (constraint instanceof SetCriteria) {
                                    SetCriteria criteria = (SetCriteria)constraint;
                                    if (isPrimaryTypeConstraint(criteria.getOperand())) {
                                        // Look for literal values and collect them as the node type names ...
                                        for (StaticOperand operand : criteria.getValues()) {
                                            addLiteral(operand, nodeTypeNames);
                                        }
                                    }
                                }
                            }
View Full Code Here


            if (constraint instanceof PropertyExistence) {
                // Presumably this index only contains values for this property ...
                return this;
            }
            if (constraint instanceof SetCriteria) {
                SetCriteria criteria = (SetCriteria)constraint;
                return apply(criteria, negated);
            }

            // We don't know how to handle any of the other kinds of constraints ...
            LOGGER.debug("Unable to process constraint, so ignoring: {0}", constraint);
View Full Code Here

TOP

Related Classes of org.modeshape.jcr.api.query.qom.SetCriteria

Copyright © 2018 www.massapicom. 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.