/** * @see org.xcmis.search.Visitors.AbstractModelVisitor#visit(org.xcmis.search.model.constraint.PropertyExistence) */ @Override public void visit(PropertyExistence node) throws VisitException { checkTableAndColumnExistance(node.getSelectorName(), node.getPropertyName(), true); }
/** * Define a constraint clause that the node within the named table has at * least one value for the named property. * * @param table * the name of the table; may not be null and must refer to a * valid name or alias of a table appearing in the FROM clause * @param propertyName * the name of the property * @return the constraint builder that was used to create this clause; * never null */ public ConstraintBuilder hasProperty(String table, String propertyName) { return setConstraint(new PropertyExistence(selector(table), propertyName)); }
@Override public void visit(PropertyExistence prop) { symbols.add(prop.getSelectorName()); }
/** * @see org.xcmis.search.QueryObjectModelVisitor#visit(org.xcmis.search.model.constraint.PropertyExistence) */ public void visit(PropertyExistence node) throws VisitException { queryBuilderStack.push(new TermQuery(new Term(FieldNames.PROPERTIES_SET, node.getPropertyName()))); }
throw new TreeWalkerException("There is more than one table. Use selector or table name. IS NULL " + p); res = new Not(new PropertyExistence(selName,p)); selName = getDefaultSelectorName(); res = new PropertyExistence(selName,p);
/** * {@inheritDoc} * * @see QueryObjectModelVisitor#visit(PropertyExistence) */ public void visit(PropertyExistence existence) { append(existence.getSelectorName()).append('.').append(existence.getPropertyName()).append(" IS NOT NULL"); }