db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/jdo/jdoql QueryParsingHelper.java
Date Sun, 23 May 2004 17:40:27 GMT
tomdz       2004/05/23 10:40:27

  Modified:    src/java/org/apache/ojb/jdo/jdoql QueryParsingHelper.java
  Log:
  Fixed error
  
  Revision  Changes    Path
  1.2       +6 -6      db-ojb/src/java/org/apache/ojb/jdo/jdoql/QueryParsingHelper.java
  
  Index: QueryParsingHelper.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/jdo/jdoql/QueryParsingHelper.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- QueryParsingHelper.java	23 May 2004 12:02:29 -0000	1.1
  +++ QueryParsingHelper.java	23 May 2004 17:40:27 -0000	1.2
  @@ -189,20 +189,20 @@
           }
           else if ("parameters".equals(args[0]))
           {
  -            List params = helper.parseParameters(args[1]);
  +            Map params = helper.parseParameters(args[1]);
   
  -            for (int idx = 0; idx < params.size(); idx++)
  +            for (Iterator it = params.values().iterator(); it.hasNext();)
               {
  -                System.out.println("("+idx+"): "+params.get(idx).toString());
  +                System.out.println(it.toString());
               }
           }
           else if ("variables".equals(args[0]))
           {
  -            List vars = helper.parseVariables(args[1]);
  +            Map vars = helper.parseVariables(args[1]);
   
  -            for (int idx = 0; idx < vars.size(); idx++)
  +            for (Iterator it = vars.values().iterator(); it.hasNext();)
               {
  -                System.out.println("("+idx+"): "+vars.get(idx).toString());
  +                System.out.println(it.toString());
               }
           }
           else if ("orderings".equals(args[0]))
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message