db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb/odmg ScrollableQueryResultsTest.java
Date Sat, 31 Dec 2005 18:28:08 GMT
arminw      2005/12/31 10:28:08

  Modified:    src/java/org/odmg Tag: OJB_1_0_RELEASE Implementation.java
               src/test/org/apache/ojb/odmg Tag: OJB_1_0_RELEASE
                        ScrollableQueryResultsTest.java
  Log:
  fix OJB-86
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.4.2.1   +1 -4      db-ojb/src/java/org/odmg/Implementation.java
  
  Index: Implementation.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/odmg/Implementation.java,v
  retrieving revision 1.4
  retrieving revision 1.4.2.1
  diff -u -r1.4 -r1.4.2.1
  --- Implementation.java	5 Apr 2004 16:47:14 -0000	1.4
  +++ Implementation.java	31 Dec 2005 18:28:08 -0000	1.4.2.1
  @@ -1,9 +1,6 @@
   package org.odmg;
   
   
  -import org.apache.ojb.odmg.oql.EnhancedOQLQuery;
  -
  -
   /**
    * The factory interface for a particular ODMG implementation.
    * Each ODMG implementation will have a class that implements this interface.
  @@ -39,7 +36,7 @@
        * @return The new <code>OQLQuery</code> object.
        * @see org.odmg.OQLQuery
        */
  -    public EnhancedOQLQuery newOQLQuery();
  +    public OQLQuery newOQLQuery();
   
       /**
        * Create a new <code>DList</code> object.
  
  
  
  No                   revision
  No                   revision
  1.18.4.2  +6 -6      db-ojb/src/test/org/apache/ojb/odmg/ScrollableQueryResultsTest.java
  
  Index: ScrollableQueryResultsTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/odmg/ScrollableQueryResultsTest.java,v
  retrieving revision 1.18.4.1
  retrieving revision 1.18.4.2
  diff -u -r1.18.4.1 -r1.18.4.2
  --- ScrollableQueryResultsTest.java	4 Jun 2005 14:48:05 -0000	1.18.4.1
  +++ ScrollableQueryResultsTest.java	31 Dec 2005 18:28:08 -0000	1.18.4.2
  @@ -119,7 +119,7 @@
           // 3. Get a list of some articles
           Transaction tx = odmg.newTransaction();
           tx.begin();
  -        EnhancedOQLQuery query = odmg.newOQLQuery();
  +        EnhancedOQLQuery query = (EnhancedOQLQuery) odmg.newOQLQuery();
           String sql = "select somePersons from " + Person.class.getName();
           query.create(sql, start, end);
           Collection somePersons = (Collection) query.execute();
  @@ -162,7 +162,7 @@
               Transaction tx = odmg.newTransaction();
               tx.begin();
   
  -            EnhancedOQLQuery query = odmg.newOQLQuery();
  +            EnhancedOQLQuery query = (EnhancedOQLQuery) odmg.newOQLQuery();
               String sql = "select somePersons from " + Person.class.getName();
               query.create(sql, start, end);
               Collection somePersons = (Collection) query.execute();
  @@ -221,7 +221,7 @@
               return;
           }
   
  -        EnhancedOQLQuery query = odmg.newOQLQuery();
  +        EnhancedOQLQuery query = (EnhancedOQLQuery) odmg.newOQLQuery();
           String sql = "select somePersons from " + Person.class.getName();
           query.create(sql, start, end);
           Collection somePersons = (Collection) query.execute();
  @@ -256,7 +256,7 @@
           try
           {
               tx.begin();
  -            EnhancedOQLQuery query = odmg.newOQLQuery();
  +            EnhancedOQLQuery query = (EnhancedOQLQuery) odmg.newOQLQuery();
               String sql = "select somePersons from " + Person.class.getName();
               query.create(sql, start, end);
               query.execute();
  @@ -282,7 +282,7 @@
           {
               tx = odmg.newTransaction();
               tx.begin();
  -            EnhancedOQLQuery query = odmg.newOQLQuery();
  +            EnhancedOQLQuery query = (EnhancedOQLQuery) odmg.newOQLQuery();
               String sql = "select somePersons from " + Person.class.getName();
               query.create(sql, start, end);
               query.execute();
  
  
  

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