E
- public abstract class AbstractBean<E> extends Object
Constructor and Description |
---|
AbstractBean() |
Modifier and Type | Method and Description |
---|---|
List<E> |
getEntities()
Returns the list of entities.
|
int |
getNumPages()
Returns the total number of pages.
|
int |
getPage()
Returns the current page number.
|
String |
getSort()
Returns the current sort String.
|
void |
setPage(int page)
Sets the current page number.
|
void |
setSort(String sort)
Sets the sort String.
|
public List<E> getEntities()
DataBean.list()
public int getPage()
DataBean.getPage()
public void setPage(int page)
page
- the current page numberDataBean.setPage(int)
public String getSort()
The sort string is actually a query of sorts (pun intended?) where, when DataBean.list()
is called, is
sorted in a way where the string is seperated into a string array by the period (".") character, and then the
query result is sorted by the first element of the string array, then the next element, and so on.
DataBean.getSort()
public void setSort(String sort)
The sort string is actually a query of sorts (pun intended?) where, when DataBean.list()
is called, is
sorted in a way where the string is seperated into a string array by the period (".") character, and then the
query result is sorted by the first element of the string array, then the next element, and so on.
sort
- the sort StringDataBean.setSort(java.lang.String)
public int getNumPages()
DataBean.getNumPages()
Copyright © 2015 Joseph Hendrix