docs: public void compareFilter(String elementName, String value,
                                int oper) throws DBException
      {
  
          // Delete the old search criteria
          criteria = new Criteria();
  
          // If this is not a binary operator, throw an exception
          if ((oper & BINARY_OPER_MASK) == 0)
          {
              throw new DBException();
          }
  
          switch (oper)
          {
  
              case LIKE:
                  {
                      criteria.addLike(elementName, value);
  
                      break;
                  }
  
              case EQUAL:
                  {
                      criteria.addEqualTo(elementName, value);
  
                      break;
                  }
  
              case NOT_EQUAL:
                  {
                      criteria.addNotEqualTo(elementName, value);
  
                      break;
                  }
  
              case LESS_THAN:
                  {
                      criteria.addLessThan(elementName, value);
  
                      break;
                  }
  
              case GREATER_THAN:
                  {
                      criteria.addGreaterThan(elementName, value);
  
                      break;
                  }
  
              case GREATER_EQUAL:
                  {
                      criteria.addGreaterOrEqualThan(elementName, value);
  
                      break;
                  }
  
              case LESS_EQUAL:
                  {
                      criteria.addLessOrEqualThan(elementName, value);
  
                      break;
                  }
  
              default:
                  {
                      throw new DBException("Unsupported binary operation in OJBSearchFilter!");
                  }
          }
      }