|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.smartlab.web.page.Paginator
net.smartlab.web.BusinessObjectFactory.Paginator
public class BusinessObjectFactory.Paginator
TODO documentation
| Field Summary |
|---|
| Fields inherited from class net.smartlab.web.page.Paginator |
|---|
array, UNDEFINED_PAGE, UNLIMITED_ITEMS, UNLIMITED_PAGES |
| Constructor Summary | |
|---|---|
BusinessObjectFactory.Paginator(org.hibernate.Criteria criteria)
Constructs an instance on an Hibernate criteria with an unlimited number of items per page and an unlimited number of pages displayed. |
|
BusinessObjectFactory.Paginator(org.hibernate.Criteria criteria,
int size,
int pages)
Constructs an instance on an Hibernate criteria with the specified number of elements per page and the specified number of pages displayed. |
|
BusinessObjectFactory.Paginator(Query query)
Constructs an instance on an Hibernate query with an unlimited number of items per page and an unlimited number of pages displayed. |
|
BusinessObjectFactory.Paginator(Query query,
int size,
int pages)
Constructs an instance on an Hibernate query with the specified number of elements per page and the specified number of pages displayed. |
|
| Method Summary | |
|---|---|
boolean |
add(java.lang.Object obj)
|
boolean |
addAll(java.util.Collection collection)
|
void |
clear()
|
boolean |
contains(java.lang.Object item)
|
boolean |
containsAll(java.util.Collection item)
|
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
boolean |
remove(java.lang.Object obj)
|
boolean |
removeAll(java.util.Collection collection)
|
boolean |
retainAll(java.util.Collection collection)
|
protected void |
setArray()
TODO documentation |
void |
setPage(int page)
TODO documentation |
void |
setSize(int size)
TODO documentation |
int |
size()
|
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] array)
|
| Methods inherited from class net.smartlab.web.page.Paginator |
|---|
getCount, getNext, getPage, getPageCount, getPages, getPageSize, getPrev, getStart, getStop, hasNext, next, remove, reset, setCount, setPages, setPageSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public BusinessObjectFactory.Paginator(org.hibernate.Criteria criteria)
throws org.hibernate.HibernateException
criteria - the Hibernate criteria whose results must be
paginated.
org.hibernate.HibernateException - if something wrong occurs accessing the
database.
public BusinessObjectFactory.Paginator(org.hibernate.Criteria criteria,
int size,
int pages)
throws org.hibernate.HibernateException
criteria - the Hibernate criteria whose results must be
paginated.size - the number of elements per page.pages - the number of pages to be displayed for quick
navigation.
org.hibernate.HibernateException - if something wrong occurs accessing the
database.
public BusinessObjectFactory.Paginator(Query query)
throws DAOException,
org.hibernate.HibernateException
query - the Hibernate query whose results must be paginated.
DAOException - if something wrong occurs accessing the
underling data layer.
org.hibernate.HibernateException - if something wrong occurs accessing the
database.
public BusinessObjectFactory.Paginator(Query query,
int size,
int pages)
throws DAOException,
org.hibernate.HibernateException
query - the Hibernate query whose results must be paginated.size - the number of elements per page.pages - the number of pages to be displayed for quick
navigation.
DAOException - if something wrong occurs accessing the
underling data layer.
org.hibernate.HibernateException - if something wrong occurs accessing the
database.| Method Detail |
|---|
public void setPage(int page)
Paginator
setPage in class PaginatorPaginator.setPage(int)public void setSize(int size)
size - protected void setArray()
Paginator
setArray in class PaginatorPaginator.setArray()public boolean add(java.lang.Object obj)
add in interface java.util.CollectionCollection.add(java.lang.Object)public boolean addAll(java.util.Collection collection)
addAll in interface java.util.CollectionCollection.addAll(java.util.Collection)public void clear()
clear in interface java.util.CollectionCollection.clear()public boolean contains(java.lang.Object item)
contains in interface java.util.CollectionCollection.contains(java.lang.Object)public boolean containsAll(java.util.Collection item)
containsAll in interface java.util.CollectionCollection.containsAll(java.util.Collection)public boolean isEmpty()
isEmpty in interface java.util.CollectionCollection.isEmpty()public java.util.Iterator iterator()
iterator in interface java.lang.Iterableiterator in interface java.util.CollectionCollection.iterator()public boolean remove(java.lang.Object obj)
remove in interface java.util.CollectionCollection.remove(java.lang.Object)public boolean removeAll(java.util.Collection collection)
removeAll in interface java.util.CollectionCollection.removeAll(java.util.Collection)public boolean retainAll(java.util.Collection collection)
retainAll in interface java.util.CollectionCollection.retainAll(java.util.Collection)public int size()
size in interface java.util.CollectionCollection.size()public java.lang.Object[] toArray()
toArray in interface java.util.CollectionCollection.toArray()public java.lang.Object[] toArray(java.lang.Object[] array)
toArray in interface java.util.CollectionCollection.toArray(java.lang.Object[])
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||