db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/odmg/collections DListImpl.java DSetImpl.java
Date Sun, 27 Mar 2005 09:23:12 GMT
brj         2005/03/27 01:23:12

  Modified:    src/java/org/apache/ojb/odmg/collections DListImpl.java
                        DSetImpl.java
  Log:
  use QueryFactory.newQuery()
  
  Revision  Changes    Path
  1.32      +2 -2      db-ojb/src/java/org/apache/ojb/odmg/collections/DListImpl.java
  
  Index: DListImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/odmg/collections/DListImpl.java,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- DListImpl.java	5 Dec 2004 14:22:30 -0000	1.31
  +++ DListImpl.java	27 Mar 2005 09:23:12 -0000	1.32
  @@ -34,7 +34,7 @@
   import org.apache.ojb.broker.metadata.FieldDescriptor;
   import org.apache.ojb.broker.query.Criteria;
   import org.apache.ojb.broker.query.Query;
  -import org.apache.ojb.broker.query.QueryByCriteria;
  +import org.apache.ojb.broker.query.QueryFactory;
   import org.apache.ojb.broker.util.logging.Logger;
   import org.apache.ojb.broker.util.logging.LoggerFactory;
   import org.apache.ojb.odmg.OJBTxManager;
  @@ -464,7 +464,7 @@
                   throw new ODMGRuntimeException(e.getMessage());
               }
   
  -            Query q = new QueryByCriteria(clazz, allElementsCriteria);
  +            Query q = QueryFactory.newQuery(clazz, allElementsCriteria);
   
               if (getLog().isDebugEnabled())
               {
  
  
  
  1.24      +2 -2      db-ojb/src/java/org/apache/ojb/odmg/collections/DSetImpl.java
  
  Index: DSetImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/odmg/collections/DSetImpl.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- DSetImpl.java	5 Dec 2004 14:22:30 -0000	1.23
  +++ DSetImpl.java	27 Mar 2005 09:23:12 -0000	1.24
  @@ -31,7 +31,7 @@
   import org.apache.ojb.broker.metadata.FieldDescriptor;
   import org.apache.ojb.broker.query.Criteria;
   import org.apache.ojb.broker.query.Query;
  -import org.apache.ojb.broker.query.QueryByCriteria;
  +import org.apache.ojb.broker.query.QueryFactory;
   import org.apache.ojb.broker.util.logging.Logger;
   import org.apache.ojb.broker.util.logging.LoggerFactory;
   import org.apache.ojb.odmg.OJBTxManager;
  @@ -300,7 +300,7 @@
               pCrit.addAndCriteria(allElementsCriteria);
   
               Class clazz = getElementsExtentClass(broker);
  -            Query q     = new QueryByCriteria(clazz, pCrit);
  +            Query q     = QueryFactory.newQuery(clazz, pCrit);
   
               if (log.isDebugEnabled())
               {
  
  
  

---------------------------------------------------------------------
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