ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Meadors <lmead...@apache.org>
Subject Re: Paginated List Problem in Ibatis
Date Tue, 25 Oct 2005 05:07:34 GMT
Why do you "have to use only one object of Paginated List"?

You can use as many as you want. It sounds like your dao is storing
the paginated list..that would be a really bad idea.

Maybe you can explain what you are trying to do in more detail...

Larry

On 10/24/05, Sabyasachi Biswas <biswas.sabyasachi@gmail.com> wrote:
> Hi all,
>
> I am having a problem using paginated List in my Project.
>
> I am using the same Paginated List object for various purposes(I have to use
> only one object of Paginated List). The problem arises when there are
> concurrent users ,  the Paginated List Object returned should be different
> for different criteria as requested by the user.
>
> But, this does not happen as, Ibatis uses the same DAO Implementation
> object.
>
> For eg:
>  I have a search page which searches the number of user on the basis of
> roles.
>
>
>  I have another search page which searches the number of user on the basis
> of departments.
>
> When User1 searches on the basis of roles he gets a paginated list.
>
> When User2 searches on the basis of departments he gets a paginated list .
>
> Now when User 1 iterates over the paginated list he gets the results of User
> 2.
>
> Please help me with your suggestions.
>
> Thanks in advance,
>
> Regards,
>
> Sabyasachi Biswas.

Mime
View raw message