|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.slawas.paging.Page
public class Page
Page - definicja strony wyników. Implementację zaczerpnąłem z projektu WPLucene.
Field Summary | |
---|---|
static int |
DEFAULT_MAX_PAGES
Domyślna maksymalna liczba stron wyników zapytania SQL |
static int |
DEFAULT_PAGE_NR
Domyślny numer strony stronicowanego wyniku zapytania. |
static int |
DEFAULT_PAGE_SIZE
Domyślny rozmiar storny, czyli liczba wierszy przezentowana w stronicowanym wyniku zapytania |
static int |
MIN_PAGE_NR
Minimalny numer strony stronicowanego wyniku zapytania. |
Constructor Summary | |
---|---|
Page()
|
|
Page(int number)
|
|
Page(int size,
int number)
|
Method Summary | |
---|---|
int |
getFirstRowNumber()
|
int |
getLastRowNumber()
|
int |
getNumber()
|
int |
getNumberOfRowsOnThePage()
Liczba wierszy na stronie |
int |
getSize()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_PAGE_SIZE
public static final int DEFAULT_PAGE_NR
public static final int MIN_PAGE_NR
public static int DEFAULT_MAX_PAGES
Constructor Detail |
---|
public Page()
public Page(int number)
number
- nr stronypublic Page(int size, int number)
size
- rozmiar strony, czyli maksymalna liczba wyników zapytania na
stronienumber
- nr stronyMethod Detail |
---|
public int getSize()
public int getNumber()
public int getFirstRowNumber()
public int getLastRowNumber()
public int getNumberOfRowsOnThePage()
lastRowNumber
oraz firstRowNumber
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |