Author: doogie
Date: Tue Oct 28 21:24:41 2008
New Revision: 708767
URL:
http://svn.apache.org/viewvc?rev=708767&view=revLog:
Switch ID_FOO to Enum.ordinal().
Modified:
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityFunction.java
Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityFunction.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityFunction.java?rev=708767&r1=708766&r2=708767&view=diff==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityFunction.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityFunction.java Tue Oct 28 21:24:41 2008
@@ -63,10 +63,10 @@
public abstract <T extends Comparable> EntityFunction<T> createFunction(Object value);
}
- public static final int ID_LENGTH = 1;
- public static final int ID_TRIM = 2;
- public static final int ID_UPPER = 3;
- public static final int ID_LOWER = 4;
+ public static final int ID_LENGTH = SQLFunction.LENGTH.ordinal();
+ public static final int ID_TRIM = SQLFunction.TRIM.ordinal();
+ public static final int ID_UPPER = SQLFunction.UPPER.ordinal();
+ public static final int ID_LOWER = SQLFunction.LOWER.ordinal();
public static EntityFunction<Integer> LENGTH(EntityConditionValue nested) { return SQLFunction.LENGTH.createFunction(nested); }
public static EntityFunction<Integer> LENGTH(Object value) { return SQLFunction.LENGTH.createFunction(value); }