Package org.teiid.translator.ldap
Class LDAPSyncQueryExecution
- java.lang.Object
-
- org.teiid.translator.ldap.LDAPSyncQueryExecution
-
- All Implemented Interfaces:
Execution,ResultSetExecution
- Direct Known Subclasses:
LDAPDirectSearchQueryExecution
public class LDAPSyncQueryExecution extends Object implements ResultSetExecution
LDAPSyncQueryExecution is responsible for executing an LDAP search corresponding to a read-only "select" query from Teiid.
-
-
Field Summary
Fields Modifier and Type Field Description protected LDAPQueryExecutiondelegateprotected ExecutionContextexecutionContextprotected LDAPExecutionFactoryexecutionFactoryprotected LdapContextldapConnection
-
Constructor Summary
Constructors Constructor Description LDAPSyncQueryExecution(Select query, LDAPExecutionFactory factory, ExecutionContext context, LdapContext connection)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()voidclose()protected LdapContextcreateSearchContext(String contextName)Perform a lookup against the initial LDAP context, which sets the context to something appropriate for the search that is about to occur.voidexecute()method to execute the supplied queryList<?>next()
-
-
-
Field Detail
-
ldapConnection
protected LdapContext ldapConnection
-
executionFactory
protected LDAPExecutionFactory executionFactory
-
executionContext
protected ExecutionContext executionContext
-
delegate
protected LDAPQueryExecution delegate
-
-
Constructor Detail
-
LDAPSyncQueryExecution
public LDAPSyncQueryExecution(Select query, LDAPExecutionFactory factory, ExecutionContext context, LdapContext connection)
Constructor- Parameters:
connection- the LDAP Context
-
-
Method Detail
-
execute
public void execute() throws TranslatorExceptionmethod to execute the supplied query- Specified by:
executein interfaceExecution- Throws:
TranslatorException
-
createSearchContext
protected LdapContext createSearchContext(String contextName) throws TranslatorException
Perform a lookup against the initial LDAP context, which sets the context to something appropriate for the search that is about to occur.- Throws:
TranslatorException
-
next
public List<?> next() throws TranslatorException, DataNotAvailableException
- Specified by:
nextin interfaceResultSetExecution- Throws:
TranslatorExceptionDataNotAvailableException
-
cancel
public void cancel() throws TranslatorException- Specified by:
cancelin interfaceExecution- Throws:
TranslatorException
-
-