Teiid 8.3.0.Final

org.teiid.translator.google.execution
Class SpreadsheetQueryExecution

java.lang.Object
  extended by org.teiid.translator.google.execution.SpreadsheetQueryExecution
All Implemented Interfaces:
Execution, ResultSetExecution

public class SpreadsheetQueryExecution
extends Object
implements ResultSetExecution


Constructor Summary
SpreadsheetQueryExecution(Select query, org.teiid.resource.adapter.google.GoogleSpreadsheetConnection connection, ExecutionContext executionContext)
           
 
Method Summary
 void cancel()
          Cancels the execution abnormally.
 void close()
          Terminates the execution normally.
 void execute()
          Execute the associated command.
 List<?> next()
          Retrieves the next row of the resultset.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpreadsheetQueryExecution

public SpreadsheetQueryExecution(Select query,
                                 org.teiid.resource.adapter.google.GoogleSpreadsheetConnection connection,
                                 ExecutionContext executionContext)
Method Detail

close

public void close()
Description copied from interface: Execution
Terminates the execution normally.

Specified by:
close in interface Execution

cancel

public void cancel()
            throws TranslatorException
Description copied from interface: Execution
Cancels the execution abnormally. This will happen via a different thread from the one performing the execution, so should be expected to happen in a multi-threaded scenario.

Specified by:
cancel in interface Execution
Throws:
TranslatorException

execute

public void execute()
             throws TranslatorException
Description copied from interface: Execution
Execute the associated command. Results will be retrieved through a specific sub-interface call.

Specified by:
execute in interface Execution
Throws:
TranslatorException

next

public List<?> next()
             throws TranslatorException,
                    DataNotAvailableException
Description copied from interface: ResultSetExecution
Retrieves the next row of the resultset.

Specified by:
next in interface ResultSetExecution
Returns:
the next row or null indicating that there are no more results
Throws:
TranslatorException
DataNotAvailableException

Teiid 8.3.0.Final

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.