Search in sources :

Example 1 with DirectQueryExecution

use of org.teiid.translator.salesforce.execution.DirectQueryExecution in project teiid by teiid.

the class SalesForceExecutionFactory method createProcedureExecution.

@Override
public ProcedureExecution createProcedureExecution(Call command, ExecutionContext executionContext, RuntimeMetadata metadata, SalesforceConnection connection) throws TranslatorException {
    Procedure metadataObject = command.getMetadataObject();
    String nativeQuery = metadataObject.getProperty(SQLStringVisitor.TEIID_NATIVE_QUERY, false);
    if (nativeQuery != null) {
        return new DirectQueryExecution(command.getArguments(), command, connection, metadata, executionContext, nativeQuery, false);
    }
    return new ProcedureExecutionParentImpl(command, connection, metadata, executionContext);
}
Also used : DirectQueryExecution(org.teiid.translator.salesforce.execution.DirectQueryExecution) ProcedureExecutionParentImpl(org.teiid.translator.salesforce.execution.ProcedureExecutionParentImpl) Procedure(org.teiid.metadata.Procedure)

Aggregations

Procedure (org.teiid.metadata.Procedure)1 DirectQueryExecution (org.teiid.translator.salesforce.execution.DirectQueryExecution)1 ProcedureExecutionParentImpl (org.teiid.translator.salesforce.execution.ProcedureExecutionParentImpl)1