/** * {@inheritDoc} * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { return getOperand().hashCode(); }
/** * {@inheritDoc} * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { return getPropertyValue().hashCode(); }
/** * {@inheritDoc} * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { return operand.hashCode(); }
/** * @see org.xcmis.search.Visitors.AbstractModelVisitor#visit(org.xcmis.search.model.operand.PropertyValue) */ @Override public void visit(PropertyValue node) throws VisitException { checkTableAndColumnExistance(node.getSelectorName(), node.getPropertyName(), true); }
/** * {@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} * @throws VisitException if exception occurs * * @see QueryObjectModelVisitor#visit(LowerCase) */ public void visit(LowerCase lowerCase) throws VisitException { append("LOWER("); lowerCase.getOperand().accept(this); append(')'); }
/** * {@inheritDoc} * @throws VisitException if exception occurs * * @see QueryObjectModelVisitor#visit(Length) */ public void visit(Length length) throws VisitException { append("LENGTH("); length.getPropertyValue().accept(this); append(')'); }
/** * {@inheritDoc} * @throws VisitException if exception occurs * * @see QueryObjectModelVisitor#visit(UpperCase) */ public void visit(UpperCase upperCase) throws VisitException { append("UPPER("); upperCase.getOperand().accept(this); append(')'); }
@Override public void visit(NodeDepth depth) { symbols.add(depth.getSelectorName()); }
/** * @see org.xcmis.search.Visitors.AbstractModelVisitor#visit(org.xcmis.search.model.operand.NodeName) */ @Override public void visit(NodeName node) throws VisitException { checkSelectorExistance(node.getSelectorName()); }
/** * @see org.xcmis.search.Visitors.AbstractModelVisitor#visit(org.xcmis.search.model.operand.Length) */ @Override public void visit(Length node) throws VisitException { checkSelectorExistance(node.getSelectorName()); }
/** * Create a arithmetic dynamic operand that operates upon the selector names * given by the supplied dynamic operand(s). * * @param operand * the operand defining the selector names */ protected DynamicOperand(DynamicOperand operand) { this(operand.getSelectorNames()); }
/** * {@inheritDoc} * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { return getSelectorNames().hashCode(); }
/** * {@inheritDoc} * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { return getSelectorNames().hashCode(); }
/** * {@inheritDoc} * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { return getSelectorNames().hashCode(); }
/** * {@inheritDoc} * * @see org.modeshape.graph.query.QueryBuilder.SingleOrderByOperandBuilder#addOrdering(org.modeshape.graph.query.model.DynamicOperand) */ @Override protected OrderByBuilder addOrdering(DynamicOperand operand) { return super.addOrdering(new UpperCase(operand)); } };
/** * @see org.xcmis.search.Visitors.AbstractModelVisitor#visit(org.xcmis.search.model.operand.LowerCase) */ @Override public void visit(LowerCase node) throws VisitException { checkSelectorExistance(node.getSelectorName()); }
/** * {@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))); }
/** * @see org.xcmis.search.Visitors.AbstractModelVisitor#visit(org.xcmis.search.model.operand.NodeDepth) */ @Override public void visit(NodeDepth depth) throws VisitException { checkSelectorExistance(depth.getSelectorName()); }
/** * {@inheritDoc} * * @see QueryObjectModelVisitor#visit(NodeDepth) */ public void visit(NodeDepth depth) { append("DEPTH(").append(depth.getSelectorName()).append(')'); }