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/broker/accesslayer PagingIterator.java
Date Thu, 18 Dec 2003 18:55:30 GMT
brj         2003/12/18 10:55:30

  Modified:    src/java/org/apache/ojb/broker/accesslayer Tag:
                        OJB_BRANCH_1_0 PagingIterator.java
  Log:
  fixed relative()
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.6.2.2   +3 -3      db-ojb/src/java/org/apache/ojb/broker/accesslayer/PagingIterator.java
  
  Index: PagingIterator.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/PagingIterator.java,v
  retrieving revision 1.6.2.1
  retrieving revision 1.6.2.2
  diff -u -r1.6.2.1 -r1.6.2.2
  --- PagingIterator.java	17 Dec 2003 20:36:22 -0000	1.6.2.1
  +++ PagingIterator.java	18 Dec 2003 18:55:30 -0000	1.6.2.2
  @@ -65,7 +65,7 @@
       private int m_endAt;
       private int m_rowLimit;
       private int m_fullSize;
  -    private int m_currentCursorPosition;
  +    private int m_currentCursorPosition; // position of the wrapped iterator
   
       /**
        * Constructor 
  @@ -164,7 +164,7 @@
        */
       public boolean relative(int row) throws PersistenceBrokerException
       {
  -        return absolute(m_currentCursorPosition + row);
  +        return absolute(m_currentCursorPosition - (m_startAt - 1) + row);
       }
       
       /*
  
  
  

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