db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From olegn...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/otm/core BaseConnection.java
Date Sat, 13 Sep 2003 12:08:56 GMT
olegnitz    2003/09/13 05:08:56

  Modified:    src/java/org/apache/ojb/otm OTMConnection.java
               src/java/org/apache/ojb/otm/core BaseConnection.java
  Log:
  Minor API change for convenience
  
  Revision  Changes    Path
  1.12      +3 -2      db-ojb/src/java/org/apache/ojb/otm/OTMConnection.java
  
  Index: OTMConnection.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/otm/OTMConnection.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- OTMConnection.java	10 Aug 2003 21:20:48 -0000	1.11
  +++ OTMConnection.java	13 Sep 2003 12:08:56 -0000	1.12
  @@ -61,6 +61,7 @@
   import org.apache.ojb.broker.query.Query;
   import org.apache.ojb.otm.lock.LockingException;
   import org.apache.ojb.odmg.oql.EnhancedOQLQuery;
  +import org.odmg.OQLQuery;
   
   /**
    *
  @@ -109,7 +110,7 @@
       /**
        *
        *  Get the object with the given Identity from the persistent store. By default, the
fetch is
  -     *  for read. (OTM will automatically lock it for write on transaction commit 
  +     *  for read. (OTM will automatically lock it for write on transaction commit
        * if the object will appear to be modified).
        *
        *  @param oid                  the Identity of the object to fetch
  @@ -165,7 +166,7 @@
        * @return an Iterator that iterates Objects of class c if calling the .next()
        * method. The returned objects are locked for read.
        */
  -    public Iterator getIteratorByOQLQuery(EnhancedOQLQuery query);
  +    public Iterator getIteratorByOQLQuery(OQLQuery query);
   
       /**
        * @param query The query to execute
  
  
  
  1.25      +3 -2      db-ojb/src/java/org/apache/ojb/otm/core/BaseConnection.java
  
  Index: BaseConnection.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/otm/core/BaseConnection.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- BaseConnection.java	12 Aug 2003 21:51:27 -0000	1.24
  +++ BaseConnection.java	13 Sep 2003 12:08:56 -0000	1.25
  @@ -71,6 +71,7 @@
   import org.apache.ojb.otm.lock.LockType;
   import org.apache.ojb.otm.lock.LockingException;
   import org.odmg.ODMGRuntimeException;
  +import org.odmg.OQLQuery;
   
   //#ifdef JDK13
   import java.lang.reflect.Proxy;
  @@ -248,7 +249,7 @@
        * @return an Iterator that iterates Objects.
        * The returned objects are locked for read.
        */
  -    public Iterator getIteratorByOQLQuery(EnhancedOQLQuery query)
  +    public Iterator getIteratorByOQLQuery(OQLQuery query)
       {
           return getIteratorByOQLQuery(query, LockType.READ_LOCK);
       }
  @@ -259,7 +260,7 @@
        * @return an Iterator that iterates Objects.
        * The returned objects are locked for read.
        */
  -    public Iterator getIteratorByOQLQuery(EnhancedOQLQuery query, int lock)
  +    public Iterator getIteratorByOQLQuery(OQLQuery query, int lock)
       {
           if (query instanceof OTMOQLQueryImpl)
           {
  
  
  

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