Package org.teiid.translator.ldap
Class LDAPSyncQueryExecution
- java.lang.Object
-
- org.teiid.translator.ldap.LDAPSyncQueryExecution
-
- All Implemented Interfaces:
org.teiid.translator.Execution,org.teiid.translator.ResultSetExecution
- Direct Known Subclasses:
LDAPDirectSearchQueryExecution
public class LDAPSyncQueryExecution extends Object implements org.teiid.translator.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 org.teiid.translator.ExecutionContextexecutionContextprotected LDAPExecutionFactoryexecutionFactoryprotected LdapContextldapConnection
-
Constructor Summary
Constructors Constructor Description LDAPSyncQueryExecution(org.teiid.language.Select query, LDAPExecutionFactory factory, org.teiid.translator.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 org.teiid.translator.ExecutionContext executionContext
-
delegate
protected LDAPQueryExecution delegate
-
-
Constructor Detail
-
LDAPSyncQueryExecution
public LDAPSyncQueryExecution(org.teiid.language.Select query, LDAPExecutionFactory factory, org.teiid.translator.ExecutionContext context, LdapContext connection)Constructor- Parameters:
connection- the LDAP Context
-
-
Method Detail
-
execute
public void execute() throws org.teiid.translator.TranslatorExceptionmethod to execute the supplied query- Specified by:
executein interfaceorg.teiid.translator.Execution- Throws:
org.teiid.translator.TranslatorException
-
createSearchContext
protected LdapContext createSearchContext(String contextName) throws org.teiid.translator.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:
org.teiid.translator.TranslatorException
-
next
public List<?> next() throws org.teiid.translator.TranslatorException, org.teiid.translator.DataNotAvailableException
- Specified by:
nextin interfaceorg.teiid.translator.ResultSetExecution- Throws:
org.teiid.translator.TranslatorExceptionorg.teiid.translator.DataNotAvailableException
-
cancel
public void cancel() throws org.teiid.translator.TranslatorException- Specified by:
cancelin interfaceorg.teiid.translator.Execution- Throws:
org.teiid.translator.TranslatorException
-
close
public void close()
- Specified by:
closein interfaceorg.teiid.translator.Execution
-
-