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 OJBIterator.java RsIterator.java ChainingIterator.java
Date Mon, 08 Dec 2003 17:46:10 GMT
brj         2003/12/08 09:46:10

  Modified:    src/java/org/apache/ojb/broker/accesslayer
                        PagingIterator.java OJBIterator.java
                        RsIterator.java ChainingIterator.java
  Log:
  added method fullSize()
  
  Revision  Changes    Path
  1.6       +9 -1      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.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- PagingIterator.java	26 Nov 2003 17:33:09 -0000	1.5
  +++ PagingIterator.java	8 Dec 2003 17:46:10 -0000	1.6
  @@ -128,6 +128,14 @@
           }
       }
   
  +    /* (non-Javadoc)
  +     * @see org.apache.ojb.broker.accesslayer.OJBIterator#fullSize()
  +     */
  +    public int fullSize() throws PersistenceBrokerException
  +    {
  +        return m_fullSize;
  +    }
  +    
       /*
   	 * (non-Javadoc)
   	 * 
  
  
  
  1.5       +7 -1      db-ojb/src/java/org/apache/ojb/broker/accesslayer/OJBIterator.java
  
  Index: OJBIterator.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/OJBIterator.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- OJBIterator.java	19 Nov 2003 21:12:41 -0000	1.4
  +++ OJBIterator.java	8 Dec 2003 17:46:10 -0000	1.5
  @@ -70,6 +70,12 @@
       int size() throws PersistenceBrokerException;
   
       /**
  +     * @return the unlimited size of the iterator, 
  +     * fullSize() may differ from size() for PagingIterator
  +     */
  +    int fullSize() throws PersistenceBrokerException;
  +    
  +    /**
        * Moves the cursor to the given row number in the iterator.
        * If the row number is positive, the cursor moves to the given row number with
        * respect to the beginning of the iterator. The first row is row 1, the second is
row 2, and so on.
  
  
  
  1.52      +9 -1      db-ojb/src/java/org/apache/ojb/broker/accesslayer/RsIterator.java
  
  Index: RsIterator.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/RsIterator.java,v
  retrieving revision 1.51
  retrieving revision 1.52
  diff -u -r1.51 -r1.52
  --- RsIterator.java	28 Nov 2003 14:40:00 -0000	1.51
  +++ RsIterator.java	8 Dec 2003 17:46:10 -0000	1.52
  @@ -612,6 +612,14 @@
           return retval;
       }
   
  +    /* (non-Javadoc)
  +     * @see org.apache.ojb.broker.accesslayer.OJBIterator#fullSize()
  +     */
  +    public int fullSize() throws PersistenceBrokerException
  +    {
  +        return size();
  +    }
  +
       /**
   	 * Moves the cursor to the given row number in the iterator. If the row
   	 * number is positive, the cursor moves to the given row number with
  
  
  
  1.8       +10 -1     db-ojb/src/java/org/apache/ojb/broker/accesslayer/ChainingIterator.java
  
  Index: ChainingIterator.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/ChainingIterator.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ChainingIterator.java	23 Oct 2003 19:17:28 -0000	1.7
  +++ ChainingIterator.java	8 Dec 2003 17:46:10 -0000	1.8
  @@ -94,6 +94,7 @@
   	private int m_fullSize = -1;
   	private int m_currentCursorPosition =0;
   	
  +
   	/**
   	 * Constructor for ChainingIterator.
   	 */
  @@ -161,6 +162,14 @@
   		return m_fullSize;
   	}
   	
  +    /* (non-Javadoc)
  +     * @see org.apache.ojb.broker.accesslayer.OJBIterator#fullSize()
  +     */
  +    public int fullSize() throws PersistenceBrokerException
  +    {
  +        return size();
  +    }
  +    
   	/**
   	 * the absolute and relative calls are the trickiest parts. We have to
   	 * move across cursor boundaries potentially.
  
  
  

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