|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.flow.source.SpreadSheetDbReader.ChunkReader
public static class SpreadSheetDbReader.ChunkReader
For reading data from the database in chunks.
| Field Summary | |
|---|---|
protected int |
m_ChunkSize
the chunk size. |
protected SpreadSheet |
m_Header
the header. |
protected SpreadSheetDbReader |
m_Owner
the owner. |
protected ResultSet |
m_ResultSet
the resultset in use. |
protected int[] |
m_Type
the column types. |
| Constructor Summary | |
|---|---|
SpreadSheetDbReader.ChunkReader(SpreadSheetDbReader owner)
Initializes the reader. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Returns whether there is more data to be read. |
SpreadSheet |
next()
Reads the next chunk. |
SpreadSheet |
read(ResultSet rs,
int chunkSize)
Reads the first chunk. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SpreadSheetDbReader m_Owner
protected int m_ChunkSize
protected ResultSet m_ResultSet
protected SpreadSheet m_Header
protected int[] m_Type
| Constructor Detail |
|---|
public SpreadSheetDbReader.ChunkReader(SpreadSheetDbReader owner)
owner - the owning DB reader| Method Detail |
|---|
public SpreadSheet read(ResultSet rs,
int chunkSize)
rs - the resultset to read fromchunkSize - the size of the chunks, -1 for infinity
public boolean hasNext()
public SpreadSheet next()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||