Markus,

I am doing something like this and what i do is i sort the data on the
server and put the result in another table.  When the user asks for the next
set of results, i get the data from the alternate table.  Using this
technique, i can add whatever fields to the temporary table i want to manage
the sort.

Thanks
RayM
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 20, 2001 5:35 AM
Subject: Ordering


> I just thought of how to implement sorting. We are programming a client
software that talks to a session bean to get a value object that consists of
a collection of instances of a known class. Now we want to let the user of
the client software to sort that data. Since that data can be huge, we only
retrieve five instances at each call. So the sort needs to run on the
server, since only the server knows all keys. My question is: Does anybody
know of how to manage this? I mean, I do not want to have a server method
that calls the finder, loads all entities, and then to sort it (what would
clearly work, but would be very slow). Also I do not want to use special
finders since then I would need to have one finder for every column the user
can sort (findByXSortByA, findByXSortByB, findByXSortByC...). Does anybody
have an idea or know an API for that? Maybe next generation EJB specs have
something?
>
> Thank you
> Markus
>
> ----
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body of the message "unsubscribe jonas-users".
> For general help, send email to [EMAIL PROTECTED] and
> include in the body of the message "help".
>

----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to