com.simba.dsi.dataengine.interfaces
Interface IStreamQueryExecutor

All Superinterfaces:
IQueryExecutor

public interface IStreamQueryExecutor
extends IQueryExecutor

Extension of IQueryExecutor that can stream batched parameter data as addBatch is called. All data is then released from memory on the JDBC side. Extension of this class is only supported when using the JDBC.


Method Summary
 void clearBatch()
          Purge the entire batch.
 void execute(com.simba.support.IWarningListener warningListener)
          Execute the batched statements.
 void finalizeParamSet(com.simba.support.IWarningListener warningListener)
          Called when all of the data has been pushed for the current parameter set.
 void startParamSet(java.util.List<ParameterInputValue> parameterList, com.simba.support.IWarningListener warningListener)
          Called when a new parameter set is going to be pushed.
 
Methods inherited from interface com.simba.dsi.dataengine.interfaces.IQueryExecutor
cancelExecute, clearCancel, clearPushedParamData, close, execute, finalizePushedParamData, getMetadataForParameters, getNumParams, getResults, pushMappedParamTypes, pushParamData
 

Method Detail

startParamSet

void startParamSet(java.util.List<ParameterInputValue> parameterList,
                   com.simba.support.IWarningListener warningListener)
                   throws BadDefaultParamException,
                          ParsingException,
                          OperationCanceledException,
                          com.simba.support.exceptions.ErrorException
Called when a new parameter set is going to be pushed.

Parameters:
parameterList - List containing short data.
warningListener - Used for posting warnings about the execution.
Throws:
BadDefaultParamException - If a parameter is used as a "default" parameter where "default" has no meaning.
ParsingException - If an error corresponding to a ParsingErrorKey occurs.
OperationCanceledException - If the execution is cancelled.
com.simba.support.exceptions.ErrorException - If any other error occurs.

finalizeParamSet

void finalizeParamSet(com.simba.support.IWarningListener warningListener)
                      throws BadDefaultParamException,
                             ParsingException,
                             OperationCanceledException,
                             com.simba.support.exceptions.ErrorException
Called when all of the data has been pushed for the current parameter set. All parameter data will be cleared from memory by the time of this call.

Parameters:
warningListener - Used for posting warnings about the execution.
Throws:
BadDefaultParamException - If a parameter is used as a "default" parameter where "default" has no meaning.
ParsingException - If an error corresponding to a ParsingErrorKey occurs.
OperationCanceledException - If the execution is cancelled.
com.simba.support.exceptions.ErrorException - If any other error occurs.

execute

void execute(com.simba.support.IWarningListener warningListener)
             throws BadDefaultParamException,
                    ParsingException,
                    ExecutingException,
                    OperationCanceledException,
                    com.simba.support.exceptions.ErrorException
Execute the batched statements. No input data is passed at this time.

Parameters:
warningListener - Used for posting warnings about the execution.
Throws:
BadDefaultParamException - If a parameter is used as a "default" parameter where "default" has no meaning.
ParsingException - If an error corresponding to a ParsingErrorKey occurs.
ExecutingException - If an error corresponding to an ExecutingErrorKey occurs.
OperationCanceledException - If the execution is cancelled.
com.simba.support.exceptions.ErrorException - If any other error occurs.

clearBatch

void clearBatch()
Purge the entire batch.



Copyright © 2006-2014 Simba Technologies Incorporated. All Rights Reserved.