froehlich 01/11/14 16:50:46
Modified: apps/db/src/java/org/apache/avalon/db/basic/actions
BasicSelect.java
Log:
added missing operators
Revision Changes Path
1.25 +16 -2
jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/basic/actions/BasicSelect.java
Index: BasicSelect.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/basic/actions/BasicSelect.java,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- BasicSelect.java 2001/11/14 19:04:51 1.24
+++ BasicSelect.java 2001/11/15 00:50:46 1.25
@@ -28,7 +28,11 @@
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
-import java.util.*;
+import java.util.Hashtable;
+import java.util.Iterator;
+import java.util.Enumeration;
+import java.util.Vector;
+import java.util.StringTokenizer;
/**
* This class represents a the BasicSelect action impl.
@@ -55,6 +59,8 @@
addOperator(">","greater");
addOperator("<","smaller");
addOperator("<>","unequal");
+ addOperator("<=","smallerequal");
+ addOperator(">=","greaterequal");
}
private static void addOperator(String operator, String method) {
mOperators.put(operator,method);
@@ -358,7 +364,7 @@
}
public boolean smaller(String leftexpr,String rightexpr) throws
ActionException {
- throw new ActionException("operation not supported ");
+ throw new ActionException("operation not supported ");
}
public boolean greater(String leftexpr,String rightexpr) throws
ActionException {
@@ -370,6 +376,14 @@
}
public boolean like(String leftexpr,String rightexpr) throws
ActionException {
+ throw new ActionException("operation not supported ");
+ }
+
+ public boolean smallerequal(String leftexpr,String rightexpr) throws
ActionException {
+ throw new ActionException("operation not supported ");
+ }
+
+ public boolean greaterequal(String leftexpr,String rightexpr) throws
ActionException {
throw new ActionException("operation not supported ");
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>