What row set is suitable for pagination approach?

What row set is suitable for pagination approach?

Postby Kishan » Mon Feb 04, 2013 3:56 am

What row set is suitable for pagination approach?
Kishan
 
Posts: 191
Joined: Tue Jan 29, 2013 4:21 am

Re: What row set is suitable for pagination approach?

Postby javalatte » Tue Mar 05, 2013 3:16 am

CachedRowSets are suitable for pagination approach, since a CachedRowSet object can retrieve data from a ResultSet object in chunks of data, called pages. An application sets the number of rows to be included in a page using the method setPageSize. For example, if the page size is set to five, a chunk of five rows of data will be fetched from the data source at one time.

CachedRowSet cachedRS = RowSetProvider.newFactory().createCachedRowSet();
cachedRS.setPageSize(5);
javalatte
 
Posts: 55
Joined: Tue Jan 29, 2013 2:31 pm


Return to JDBC

Who is online

Users browsing this forum: No registered users and 1 guest

cron