|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.smartlab.web.page.Paginator net.smartlab.web.page.SQLPaginator
public class SQLPaginator
TODO documentation
Field Summary | |
---|---|
protected org.apache.commons.logging.Log |
logger
Logger for this class |
Fields inherited from class net.smartlab.web.page.Paginator |
---|
array, UNDEFINED_PAGE, UNLIMITED_ITEMS, UNLIMITED_PAGES |
Constructor Summary | |
---|---|
SQLPaginator(javax.sql.DataSource pool,
java.lang.String query)
Creates an SQLPaginator instance using an SQL connection pool and a specified query. |
|
SQLPaginator(javax.sql.DataSource pool,
java.lang.String query,
int size)
Creates an SQLPaginator with default isolation level and unlimited page size. |
|
SQLPaginator(javax.sql.DataSource pool,
java.lang.String query,
int size,
int pages)
Creates an SQLPaginator with default isoltaion level. |
|
SQLPaginator(javax.sql.DataSource pool,
java.lang.String query,
int size,
int pages,
int isolation)
Creates an SQLPaginator. |
Method Summary | |
---|---|
protected java.lang.Object[] |
getObject(java.sql.ResultSet rows)
Returns the current row datas. |
protected void |
setArray()
TODO documentation |
Methods inherited from class net.smartlab.web.page.Paginator |
---|
getCount, getNext, getPage, getPageCount, getPages, getPageSize, getPrev, getStart, getStop, hasNext, next, remove, reset, setCount, setPage, setPages, setPageSize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.apache.commons.logging.Log logger
Constructor Detail |
---|
public SQLPaginator(javax.sql.DataSource pool, java.lang.String query) throws java.sql.SQLException
pool
- the SQL connection pool.query
- the selection query for pagination results.
java.sql.SQLException
- if something unexpected occurs while accessing the
database.public SQLPaginator(javax.sql.DataSource pool, java.lang.String query, int size) throws java.sql.SQLException
pool
- the SQL connection pool.query
- the selection query for pagination results.size
- the number of elements composing each page.
java.sql.SQLException
- if something unexpected occurs while accessing the
database.public SQLPaginator(javax.sql.DataSource pool, java.lang.String query, int size, int pages) throws java.sql.SQLException
pool
- the SQL connection pool.query
- the selection query for pagination results.size
- the number of elements composing each page.pages
- the number of pages composing each page block.
java.sql.SQLException
- if something unexpected occurs while accessing the
database.public SQLPaginator(javax.sql.DataSource pool, java.lang.String query, int size, int pages, int isolation) throws java.sql.SQLException
pool
- the SQL connection pool.query
- the selection query for pagination results.size
- the number of elements composing each page.pages
- the number of pages composing each page block.isolation
- the isolation level to be used while accessing the
database.
java.sql.SQLException
- if something unexpected occurs while accessing the
database.Method Detail |
---|
protected void setArray()
Paginator
setArray
in class Paginator
net.smartlab.web.Paginator#setArray()
protected java.lang.Object[] getObject(java.sql.ResultSet rows)
rows
- the paginated results.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |