Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-dev] setMaxResults(Integer.MAX_VALUE)

Hi Adrian !

Goerler, Adrian, am 1 Feb 2010 hast Du um 11:34 zum Thema "[eclipselink-dev] setMaxResults(Integer.MAX_VALUE"  geschrieben :

> Hi Gordon, Rainer,
> 
> What's your opinion on this issue:
> 
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=301274

This is a good point where the wording of the spec could be improved 
for the next release :-)

In general, I would expect that, when the return value of 
getMaxResults() of a query is feed into a setMaxResults() call, the 
behaviour of the query with respect to the number of results delivered 
remains unchanged. In particular, this implies that invoking 
setMaxResults(Integer.MAX_VALUE) has the same effect as setMaxResults() 
not having been called at all. Mind that the javadocs of 
getMaxResults() state "if", not "iff".

Best regards
Rainer
---
Rainer Schweigkoffer                      SAP AG Walldorf
Business Solution & Technology            TD Core JS&I
Technology Development                    Dietmar-Hopp-Allee 16
Java Server Core                          D-69190 Walldorf
JEE Implementation Group           phone: +49 6227 7 45305
Building 3, G.3.28                 fax:   +49 6227 7 821177
rainer.schweigkoffer@xxxxxxx

Sitz der Gesellschaft/Registered Office: Walldorf, Germany
Vorstand/SAP Executive Board: Leo Apotheker (Sprecher/CEO), Werner
Brandt, Ernie Gunst, Bill McDermott, Gerhard Oswald,
John Schwarz, Jim Hagemann Snabe
Vorsitzender des Aufsichtsrats/Chairperson of the SAP Supervisory 
Board: Hasso Plattner
Registergericht/Commercial Register Mannheim No HRB 350269

Diese E-Mail kann Betriebs- oder Geschaeftsgeheimnisse oder sonstige
vertrauliche Informationen enthalten. Sollten Sie diese E-Mail 
irrtuemlich erhalten haben, ist Ihnen eine Verwertung des Inhalts, 
eine Vervielfaeltigung oder Weitergabe der E-Mail ausdruecklich 
untersagt. Bitte benachrichtigen Sie uns und vernichten Sie die 
empfangene E-Mail. Vielen Dank.

This e-mail may contain trade secrets or privileged, undisclosed, or
otherwise confidential information. If you have received this e-mail 
in error, you are hereby notified that any review, copying, or 
distribution of it is strictly prohibited. Please inform us 
immediately and destroy the original transmittal. Thank you for your 
cooperation.




Back to the top