public class MongoDBDirectQueryExecution extends MongoDBBaseExecution implements ProcedureExecution
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
returnsArray |
connection, executionContext, metadata, mongoDB| Constructor and Description |
|---|
MongoDBDirectQueryExecution(List<Argument> arguments,
Command cmd,
ExecutionContext executionContext,
RuntimeMetadata metadata,
MongoDBConnection connection,
String nativeQuery,
boolean returnsArray,
MongoDBExecutionFactory ef) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels the execution abnormally.
|
void |
close()
Terminates the execution normally.
|
void |
execute()
Execute the associated command.
|
List<?> |
getOutputParameterValues()
Get the output parameter values.
|
List<?> |
next()
Retrieves the next row of the resultset.
|
com.mongodb.DBObject |
nextRow() |
public MongoDBDirectQueryExecution(List<Argument> arguments, Command cmd, ExecutionContext executionContext, RuntimeMetadata metadata, MongoDBConnection connection, String nativeQuery, boolean returnsArray, MongoDBExecutionFactory ef)
public void execute()
throws TranslatorException
Executionexecute in interface ExecutionTranslatorExceptionpublic List<?> getOutputParameterValues() throws TranslatorException
ProcedureExecutiongetOutputParameterValues in interface ProcedureExecutionTranslatorException - If an error occurs while retrieving the output valuepublic List<?> next() throws TranslatorException, DataNotAvailableException
ResultSetExecutionnext in interface ResultSetExecutionTranslatorExceptionDataNotAvailableExceptionpublic com.mongodb.DBObject nextRow()
throws TranslatorException,
DataNotAvailableException
public void close()
Executionpublic void cancel()
throws TranslatorException
Executioncancel in interface ExecutionTranslatorExceptionCopyright © 2016 JBoss by Red Hat. All rights reserved.