Hi !
Can I implement paging in entity bean by passing the start pk value as the parameter to the finder method that returns enumeration. Because, the system I develop retrieves multiple records almost around 500 records. So if I implement paging in JSP, when the user clicks "Next" or "Previous", then the bean fetches the full 500 records again for each click and in the JSP I show the next or previous 10 records. By any way, can the database fetch itself be reduced to 10 and a pointer kind of a flag that points the next or previous start pk. Please give me a solution as it needs urgently.
Thanx
AJP
-
URGENT !!! - Paging implementation in entity bean (5 messages)
- Posted by: A JP
- Posted on: January 23 2001 21:06 EST
Threaded Messages (5)
- URGENT !!! - Paging implementation in entity bean by Dave Wolf on January 23 2001 21:36 EST
- URGENT !!! - Paging implementation in entity bean by A JP on January 24 2001 12:19 EST
- URGENT !!! - Paging implementation in entity bean by Balaji K M on January 24 2001 14:51 EST
- URGENT !!! - Paging implementation in entity bean by raghu tss rao on January 25 2001 13:05 EST
- URGENT !!! - Paging implementation in entity bean by Ajeet Koru on February 01 2001 02:24 EST
- URGENT !!! - Paging implementation in entity bean by raghu tss rao on January 25 2001 13:05 EST
-
URGENT !!! - Paging implementation in entity bean[ Go to top ]
- Posted by: Dave Wolf
- Posted on: January 23 2001 21:36 EST
- in response to A JP
I would think that is a resonable solution.
Dave Wolf
Internet Applications Division
Sybase
-
URGENT !!! - Paging implementation in entity bean[ Go to top ]
- Posted by: A JP
- Posted on: January 24 2001 12:19 EST
- in response to Dave Wolf
Hi !
Can u give me a sample query (in Oracle) that fetches just 10 records at any point of time but it should move to the next 10 or previous 10 records dynamically by keeping some pointer kind of a variable.
Thanx
AJP -
URGENT !!! - Paging implementation in entity bean[ Go to top ]
- Posted by: Balaji K M
- Posted on: January 24 2001 14:51 EST
- in response to A JP
I have an alternate solution for this. If you are planning to use Entity bean then you have another stateful bean which collect the value and populate it in the vector as a object and also maintain the index so that it will be very easy you no need to go to backend and you can easily pick it up from vector
Balaji -
URGENT !!! - Paging implementation in entity bean[ Go to top ]
- Posted by: raghu tss rao
- Posted on: January 25 2001 13:05 EST
- in response to Balaji K M
Could be implemented as a MVC pattern. The controller( session bean) can either have a vector of beans (costly alternative) or a vector of PK. -
URGENT !!! - Paging implementation in entity bean[ Go to top ]
- Posted by: Ajeet Koru
- Posted on: February 01 2001 14:24 EST
- in response to raghu tss rao
It may be advantageous to use Session beans that encapsulates an entity bean.
Windowing Session bean1 calls a Session Bean2 with Primary
Keys. Session Bean2 calls Entity beans as and when required.
Ajeet Koru