com.metamatrix.jdbc
Class BatchResults

java.lang.Object
  extended by com.metamatrix.jdbc.BatchResults

public class BatchResults
extends java.lang.Object

Since:
4.3

Constructor Summary
BatchResults(BatchFetcher batchFetcher, com.metamatrix.jdbc.BatchResults.Batch batch, int savedBatches)
           
BatchResults(java.util.List[] batch, int beginRow, int endRow, boolean isLast)
           
 
Method Summary
 boolean absolute(int row)
           
 boolean absolute(int row, int offset)
           
 java.util.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 hasPrevious()
           
 boolean next()
           
 boolean previous()
           
 void setBatchFetcher(BatchFetcher batchFetcher)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchResults

public BatchResults(java.util.List[] batch,
                    int beginRow,
                    int endRow,
                    boolean isLast)

BatchResults

public BatchResults(BatchFetcher batchFetcher,
                    com.metamatrix.jdbc.BatchResults.Batch batch,
                    int savedBatches)
Method Detail

getCurrentRow

public java.util.List getCurrentRow()
                             throws java.sql.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:
java.sql.SQLException

next

public boolean next()
             throws java.sql.SQLException
Throws:
java.sql.SQLException

hasPrevious

public boolean hasPrevious()

previous

public boolean previous()

setBatchFetcher

public void setBatchFetcher(BatchFetcher batchFetcher)

absolute

public boolean absolute(int row)
                 throws java.sql.SQLException
Throws:
java.sql.SQLException

absolute

public boolean absolute(int row,
                        int offset)
                 throws java.sql.SQLException
Throws:
java.sql.SQLException

getCurrentRowNumber

public int getCurrentRowNumber()

hasNext

public boolean hasNext()
                throws java.sql.SQLException
Throws:
java.sql.SQLException

hasNext

public boolean hasNext(int next)
                throws java.sql.SQLException
Throws:
java.sql.SQLException

getFinalRowNumber

public int getFinalRowNumber()

getHighestRowNumber

public int getHighestRowNumber()


Copyright © 2009. All Rights Reserved.