public class CursorDelegate extends java.lang.Object implements PageDelegate<CursorData>
| Modifier and Type | Field and Description |
|---|---|
static int |
PAGESIZE |
| Constructor and Description |
|---|
CursorDelegate(java.sql.ResultSet rs,
java.sql.PreparedStatement stmt,
SqlCursor cursor) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
void |
close() |
protected void |
finalize() |
int |
getPageSize() |
boolean |
hasNextPage() |
java.util.concurrent.Callable |
loadPage() |
int |
loadPageFor(int index) |
java.util.List<CursorData> |
nextPage() |
int |
pageRange(int fromIdx,
int toIndex) |
void |
setSize(int size) |
int |
size() |
int |
treshHold() |
public static final int PAGESIZE
public CursorDelegate(java.sql.ResultSet rs,
java.sql.PreparedStatement stmt,
SqlCursor cursor)
public int size()
size in interface PageDelegate<CursorData>public boolean hasNextPage()
hasNextPage in interface PageDelegate<CursorData>public java.util.List<CursorData> nextPage()
nextPage in interface PageDelegate<CursorData>public int treshHold()
treshHold in interface PageDelegate<CursorData>public java.util.concurrent.Callable loadPage()
loadPage in interface PageDelegate<CursorData>public int loadPageFor(int index)
loadPageFor in interface PageDelegate<CursorData>public int pageRange(int fromIdx,
int toIndex)
pageRange in interface PageDelegate<CursorData>public void setSize(int size)
setSize in interface PageDelegate<CursorData>public int getPageSize()
getPageSize in interface PageDelegate<CursorData>public java.lang.Object clone()
clone in interface PageDelegate<CursorData>clone in class java.lang.Objectpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface PageDelegate<CursorData>protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable