jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexparvule...@apache.org
Subject svn commit: r1157200 - /jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/query/qom/OperandEvaluator.java
Date Fri, 12 Aug 2011 18:08:39 GMT
Author: alexparvulescu
Date: Fri Aug 12 18:08:39 2011
New Revision: 1157200

URL: http://svn.apache.org/viewvc?rev=1157200&view=rev
Log:
JCR-3047 OperandEvaluator should be able to handle Nodes as well, not just Rows
 - removed getAffectedPropertyName

Modified:
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/query/qom/OperandEvaluator.java

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/query/qom/OperandEvaluator.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/query/qom/OperandEvaluator.java?rev=1157200&r1=1157199&r2=1157200&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/query/qom/OperandEvaluator.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/query/qom/OperandEvaluator.java
Fri Aug 12 18:08:39 2011
@@ -251,43 +251,6 @@ public class OperandEvaluator {
     }
 
     /**
-     * Evaluates the operand and extracts the node property that is supposed to
-     * be used for evaluation.
-     * 
-     * Can be <code>null</code> if there is no possible value
-     * 
-     * @param operand
-     * @return the node's property name
-     */
-    public String getAffectedPropertyName(Operand operand) {
-        if (operand instanceof StaticOperand) {
-            return null;
-        }
-        if (operand instanceof FullTextSearchScore) {
-            return null;
-        }
-        if (operand instanceof NodeName) {
-            return null;
-        }
-        if (operand instanceof Length) {
-            return ((Length) operand).getPropertyValue().getPropertyName();
-        }
-        if (operand instanceof LowerCase) {
-            return getAffectedPropertyName(((LowerCase) operand).getOperand());
-        }
-        if (operand instanceof UpperCase) {
-            return getAffectedPropertyName(((UpperCase) operand).getOperand());
-        }
-        if (operand instanceof NodeLocalName) {
-            return null;
-        }
-        if (operand instanceof PropertyValue) {
-            return ((PropertyValue) operand).getPropertyName();
-        }
-        return null;
-    }
-
-    /**
      * Returns the values of the given value length operand at the given row.
      *
      * @see #getProperty(PropertyValue, Row)



Mime
View raw message