Teiid 8.3.0.Final

org.teiid.translator.ldap
Class LDAPDirectCreateUpdateDeleteQueryExecution

java.lang.Object
  extended by org.teiid.translator.ldap.LDAPDirectCreateUpdateDeleteQueryExecution
All Implemented Interfaces:
Execution, ProcedureExecution, ResultSetExecution

public class LDAPDirectCreateUpdateDeleteQueryExecution
extends Object
implements ProcedureExecution


Field Summary
protected  ExecutionContext executionContext
           
protected  LDAPExecutionFactory executionFactory
           
protected  LdapContext ldapConnection
           
 
Constructor Summary
LDAPDirectCreateUpdateDeleteQueryExecution(List<Argument> arguments, LDAPExecutionFactory factory, ExecutionContext executionContext, LdapContext connection, String query, boolean returnsArray)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ldapConnection

protected LdapContext ldapConnection

executionFactory

protected LDAPExecutionFactory executionFactory

executionContext

protected ExecutionContext executionContext
Constructor Detail

LDAPDirectCreateUpdateDeleteQueryExecution

public LDAPDirectCreateUpdateDeleteQueryExecution(List<Argument> arguments,
                                                  LDAPExecutionFactory factory,
                                                  ExecutionContext executionContext,
                                                  LdapContext connection,
                                                  String query,
                                                  boolean returnsArray)
Method Detail

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

getOutputParameterValues

public List<?> getOutputParameterValues()
                                 throws TranslatorException
Description copied from interface: ProcedureExecution
Get the output parameter values. Results should place the return parameter first if it is present, then the IN/OUT and OUT parameters should follow in the order they appeared in the command.

Specified by:
getOutputParameterValues in interface ProcedureExecution
Throws:
TranslatorException - If an error occurs while retrieving the output value

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

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

Teiid 8.3.0.Final

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