SQLFire 1.0.2

com.vmware.sqlfire.procedure
Interface ProcedureResultProcessor


public interface ProcedureResultProcessor


Method Summary
 void close()
          Called by SQLFire when this statement is closed.
 List<Object> getNextResultRow(int resultSetNumber)
          Provide the next row for result set number resultSetNumber.
 Object[] getOutParameters()
          Provide the out parameters for this procedure to the client as an Object[].
 void init(ProcedureProcessorContext context)
          Initialize this processor.
 

Method Detail

init

void init(ProcedureProcessorContext context)
Initialize this processor.


getOutParameters

Object[] getOutParameters()
                          throws InterruptedException
Provide the out parameters for this procedure to the client as an Object[].

Throws:
InterruptedException - if interrupted while waiting to receive data.

getNextResultRow

List<Object> getNextResultRow(int resultSetNumber)
                              throws InterruptedException
Provide the next row for result set number resultSetNumber. The processor should do whatever processing is required on the incoming data to provide the next row. Return the next row of the result set specified by resultSetNumber, or null if there are no more rows in this result set.

Parameters:
resultSetNumber - the 1-based result set number for the row being requested
Throws:
InterruptedException - if interrupted while waiting to receive data.
InterruptedException - if interrupted while waiting to receive data.

close

void close()
Called by SQLFire when this statement is closed.


SQLFire 1.0.2

Copyright © 2010-2012 VMware, Inc. All rights reserved.