Package org.teiid.jdbc
Class BatchResults
- java.lang.Object
-
- org.teiid.jdbc.BatchResults
-
public class BatchResults extends Object
- Since:
- 4.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
BatchResults.BatchFetcher
-
Constructor Summary
Constructors Constructor Description BatchResults(BatchResults.BatchFetcher batchFetcher, org.teiid.jdbc.BatchResults.Batch batch, int savedBatches)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
absolute(int row)
boolean
absolute(int row, int offset)
List<?>
getCurrentRow()
Moving forward through the results it's expected that the batches are arbitrarily size.int
getCurrentRowNumber()
int
getFinalRowNumber()
int
getHighestRowNumber()
boolean
hasNext()
Boolean
hasNext(int next, boolean wait)
boolean
hasPrevious()
boolean
isTailLast()
boolean
next()
boolean
previous()
void
setBatchFetcher(BatchResults.BatchFetcher batchFetcher)
-
-
-
Constructor Detail
-
BatchResults
public BatchResults(BatchResults.BatchFetcher batchFetcher, org.teiid.jdbc.BatchResults.Batch batch, int savedBatches)
-
-
Method Detail
-
getCurrentRow
public List<?> getCurrentRow() throws SQLException
Moving forward through the results it's expected that the batches are arbitrarily size. Moving backward through the results it's expected that the batches will match the fetch size.- Throws:
SQLException
-
next
public boolean next() throws SQLException
- Throws:
SQLException
-
hasPrevious
public boolean hasPrevious()
-
previous
public boolean previous()
-
setBatchFetcher
public void setBatchFetcher(BatchResults.BatchFetcher batchFetcher)
-
absolute
public boolean absolute(int row) throws SQLException
- Throws:
SQLException
-
absolute
public boolean absolute(int row, int offset) throws SQLException
- Throws:
SQLException
-
getCurrentRowNumber
public int getCurrentRowNumber()
-
hasNext
public boolean hasNext() throws SQLException
- Throws:
SQLException
-
hasNext
public Boolean hasNext(int next, boolean wait) throws SQLException
- Throws:
SQLException
-
getFinalRowNumber
public int getFinalRowNumber()
-
getHighestRowNumber
public int getHighestRowNumber()
-
isTailLast
public boolean isTailLast()
-
-