47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
package th.co.muangthai.endrprint.util;
|
|
|
|
import java.sql.ResultSet;
|
|
import java.util.List;
|
|
|
|
public interface Pageable extends ResultSet {
|
|
|
|
/** Back to the total number of pages
|
|
*/
|
|
int getPageCount();
|
|
/** Return to the current page of the record number
|
|
*/
|
|
int getPageRowsCount();
|
|
/** Return paging size
|
|
*/
|
|
int getPageSize();
|
|
/** Transferred to the designated page
|
|
*/
|
|
void gotoPage(int page);
|
|
/** Settings page size
|
|
*/
|
|
void setPageSize(int pageSize);
|
|
/** Return to the record number
|
|
*/
|
|
int getRowsCount();
|
|
/**
|
|
* Go to the first page of the current record
|
|
* @ Exception java.sql.SQLException unusual note.
|
|
*/
|
|
void pageFirst() throws java.sql.SQLException;
|
|
/**
|
|
* To present the last page of a record
|
|
* @ Exception java.sql.SQLException unusual note.
|
|
*/
|
|
void pageLast() throws java.sql.SQLException;
|
|
/** Return to the current page,
|
|
*/
|
|
int getCurPage();
|
|
|
|
List getResultList();
|
|
|
|
void setResultList(List resultList);
|
|
|
|
public int getRowsInPage();
|
|
|
|
}
|