ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Chien <john.ch...@ncmail.net>
Subject Re: queryForList()
Date Thu, 20 Dec 2007 20:15:19 GMT
Yes. That's the reason I am asking the question.
It seems not give me what I expect as mentioned in the question.


Larry Meadors wrote:
> Did you try it?
>
> Larry
>
>
> On Dec 20, 2007 1:09 PM, John Chien <john.chien@ncmail.net> wrote:
>   
>> Question about :
>>
>> public List queryForList(String statementName, Object parameterObject,
>> int skipResults, int maxResults) throws SQLException
>>
>> Suppose I have a list of 1625 elements.
>>
>> The first time I call using               queryForList(statementName,
>> parameterObject, 0, 500) will give me the first 500 elements,
>> The second time I call using          queryForList(statementName,
>> parameterObject, 500, 500) will give me the next 500 elements, (501 - 1000)
>> The third time I call using              queryForList(statementName,
>> parameterObject, 1000, 500) will give me the next 500 elements, (1001 -
>> 1500)
>> The fourth time I call using            queryForList(statementName,
>> parameterObject, 1500, 500) will give me the next 125 elements, (1501 -
>> 1625)
>>
>>
>> Am I correct about the use of it ?
>>
>> Thanks,
>>
>> John Chien
>>
>>     

Mime
View raw message