JDBC Resultset (Scroll forward and backward)


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: JDBC Resultset (Scroll forward and backward)

Hybrid View

  1. #1
    binggy Guest

    JDBC Resultset (Scroll forward and backward)


    How do I use the JDBC resultset when you want to have scroll forward and backward
    on the web page ? Like when you have 20 lines on the page and the resultset
    is more than 20 rows, how do I do it to scroll forward and backwards ? Do
    I have to put the resultset on an array and play around the array ? What
    if the resultset has more than a million rows ?

    Thanks.

  2. #2
    dssdf Guest

    Re: JDBC Resultset (Scroll forward and backward)


    You can use "fatch" functionality. Which fatches certain amout of rows at
    a time.
    "binggy" <benedict@hotmail.com> wrote:
    >
    >How do I use the JDBC resultset when you want to have scroll forward and

    backward
    >on the web page ? Like when you have 20 lines on the page and the resultset
    >is more than 20 rows, how do I do it to scroll forward and backwards ? Do
    >I have to put the resultset on an array and play around the array ? What
    >if the resultset has more than a million rows ?
    >
    >Thanks.



  3. #3
    Bala Guest

    Re: JDBC Resultset (Scroll forward and backward)


    hello binggy,
    if you use the concept "Scrollable Record Set" which is included in the jdbc2.0
    specifaction its east to move the resultset both forward and backward.

    ...................................
    "binggy" <benedict@hotmail.com> wrote:
    >
    >How do I use the JDBC resultset when you want to have scroll forward and

    backward
    >on the web page ? Like when you have 20 lines on the page and the resultset
    >is more than 20 rows, how do I do it to scroll forward and backwards ? Do
    >I have to put the resultset on an array and play around the array ? What
    >if the resultset has more than a million rows ?
    >
    >Thanks.



  4. #4
    Bala Guest

    Re: JDBC Resultset (Scroll forward and backward)


    hello binggy,
    if you use the concept "Scrollable Record Set" which is included in the jdbc2.0
    specifaction its easy to move the resultset both forward and backward.

    ...................................
    "binggy" <benedict@hotmail.com> wrote:
    >
    >How do I use the JDBC resultset when you want to have scroll forward and

    backward
    >on the web page ? Like when you have 20 lines on the page and the resultset
    >is more than 20 rows, how do I do it to scroll forward and backwards ? Do
    >I have to put the resultset on an array and play around the array ? What
    >if the resultset has more than a million rows ?
    >
    >Thanks.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center