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/query AbstractQueryImpl.java
Date Thu, 20 Nov 2003 19:30:23 GMT
brj         2003/11/20 11:30:23

  Modified:    src/java/org/apache/ojb/broker/query AbstractQueryImpl.java
  Log:
  both indices startAt and endAt must be > 0 to indicate paging
  
  Revision  Changes    Path
  1.10      +8 -3      db-ojb/src/java/org/apache/ojb/broker/query/AbstractQueryImpl.java
  
  Index: AbstractQueryImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/query/AbstractQueryImpl.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- AbstractQueryImpl.java	16 Nov 2003 17:23:40 -0000	1.9
  +++ AbstractQueryImpl.java	20 Nov 2003 19:30:23 -0000	1.10
  @@ -96,22 +96,27 @@
       {
           return m_endAtIndex;
       }
  +    
       public void setEndAtIndex(int endAtIndex)
       {
           m_endAtIndex = endAtIndex;
       }
  +    
       public void fullSize(int size)
       {
           m_fullSize = size;
       }
  +    
       public int fullSize()
       {
           return m_fullSize;
       }
  +    
       public void setWithExtents(boolean withExtents)
       {
           m_withExtents = withExtents;
       }
  +    
       public boolean getWithExtents()
       {
           return m_withExtents;
  @@ -193,8 +198,8 @@
   
       public boolean usePaging()
       {
  -        return getEndAtIndex() != NO_END_AT_INDEX
  -        || getStartAtIndex() != NO_START_AT_INDEX;
  +        return getEndAtIndex() > NO_END_AT_INDEX
  +            && getStartAtIndex() > NO_START_AT_INDEX;
       }
       
   }
  
  
  

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