/** * {@inheritDoc} * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { return getPropertyValue().hashCode(); }
@Override public void visit(Length length) { symbols.add(length.getSelectorName()); }
/** * Get the selector symbol upon which this operand applies. * * @return the one selector names used by this operand; never null */ public SelectorName getSelectorName() { return getSelectorNames().iterator().next(); }
/** * {@inheritDoc} * * @see org.modeshape.graph.query.QueryBuilder.OrderByOperandBuilder#length(java.lang.String, * java.lang.String) */ public OrderByBuilder length(String table, String property) { return addOrdering(new Length(new PropertyValue(selector(table), property))); }
/** * {@inheritDoc} * * @see org.modeshape.graph.query.QueryBuilder.DynamicOperandBuilder#length(java.lang.String, * java.lang.String) */ public ComparisonBuilder length(String table, String property) { return comparisonBuilder(new Length(new PropertyValue(selector(table), property))); }
/** * {@inheritDoc} * @throws VisitException if exception occurs * * @see QueryObjectModelVisitor#visit(Length) */ public void visit(Length length) throws VisitException { append("LENGTH("); length.getPropertyValue().accept(this); append(')'); }
/** * @see org.xcmis.search.Visitors.AbstractModelVisitor#visit(org.xcmis.search.model.operand.Length) */ @Override public void visit(Length node) throws VisitException { checkSelectorExistance(node.getSelectorName()); }
String propertyField = FieldNames.createFieldLengthName(node.getPropertyValue().getPropertyName()); booleanQuery.add(new TermQuery(new Term(FieldNames.PROPERTIES_SET, node.getPropertyValue() .getPropertyName())), BooleanClause.Occur.SHOULD);