svn commit: r814511 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityOperator.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r814511 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityOperator.java

doogie-3
Author: doogie
Date: Mon Sep 14 07:49:59 2009
New Revision: 814511

URL: http://svn.apache.org/viewvc?rev=814511&view=rev
Log:
Bother, that'll teach for me fix this late night, with my glasses off.

Modified:
    ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityOperator.java

Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityOperator.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityOperator.java?rev=814511&r1=814510&r2=814511&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityOperator.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityOperator.java Mon Sep 14 07:49:59 2009
@@ -135,14 +135,14 @@
     static { register("greater-equals", GREATER_THAN_EQUAL_TO); }
     static { register("greater-than-equal-to", GREATER_THAN_EQUAL_TO); }
     static { register("greaterThanEqualTo", GREATER_THAN_EQUAL_TO); }
-    public static final EntityComparisonOperator IN = new ComparableEntityComparisonOperator(ID_IN, "IN") {
+    public static final EntityComparisonOperator IN = new CollectionEntityComparisonOperator(ID_IN, "IN") {
         @Override
         public <T> boolean compare(Comparable<T> lhs, T rhs) { return EntityComparisonOperator.compareIn(lhs, rhs); }
         @Override
         protected void makeRHSWhereStringValue(ModelEntity entity, List<EntityConditionParam> entityConditionParams, StringBuilder sb, ModelField field, Object rhs, DatasourceInfo datasourceInfo) { appendRHSList(entityConditionParams, sb, field, rhs); }
     };
     static { register("in", IN); }
-    public static final EntityComparisonOperator BETWEEN = new ComparableEntityComparisonOperator(ID_BETWEEN, "BETWEEN") {
+    public static final EntityComparisonOperator BETWEEN = new CollectionEntityComparisonOperator(ID_BETWEEN, "BETWEEN") {
         @Override
         public <T> boolean compare(Comparable<T> lhs, T rhs) { return EntityComparisonOperator.compareIn(lhs, rhs); }
         @Override
@@ -165,7 +165,7 @@
         public <T> boolean compare(Comparable<T> lhs, T rhs) { return !EntityComparisonOperator.compareLike(lhs, rhs); }
     };
     static { register("not-like", NOT_LIKE); }
-    public static final EntityComparisonOperator NOT_IN = new ComparableEntityComparisonOperator(ID_NOT_IN, "NOT IN") {
+    public static final EntityComparisonOperator NOT_IN = new CollectionEntityComparisonOperator(ID_NOT_IN, "NOT IN") {
         @Override
         public <T> boolean compare(Comparable<T> lhs, T rhs) { return !EntityComparisonOperator.compareIn(lhs, rhs); }
         @Override
@@ -278,8 +278,8 @@
         }
     };
 
-    public static abstract class ComparableEntityComparisonOperator extends EntityComparisonOperator<Comparable, Collection<Comparable>> {
-        public ComparableEntityComparisonOperator(int id, String code) {
+    public static abstract class CollectionEntityComparisonOperator extends EntityComparisonOperator<Comparable, Collection<Comparable>> {
+        public CollectionEntityComparisonOperator(int id, String code) {
             super(id, code);
         }
     }