程序片断如下
int pagefirst = line * (pageno - 1);
for(int i=0;i<pagefirst;i++)
{
this.mresultset.deleteRow();
}
int ptcount=0;
while (this.mresultset.next()) {
ptcount++;
if (ptcount>=10)
break;
}
for (int i=0;i<5;i++)
this.mresultset.deleteRow();
如果不明白我再把整个BEAN给你看
this function is useful if the rownum of this resultset is very large
you can implement it inside SQL statement (in Oracle, it is very easy)
you can implement it by writing a javabean to manager these
these are many other ways to implement it