public class LDAPSyncQueryExecution extends Object implements org.teiid.translator.ResultSetExecution
| Modifier and Type | Field and Description |
|---|---|
protected LDAPQueryExecution |
delegate |
protected org.teiid.translator.ExecutionContext |
executionContext |
protected LDAPExecutionFactory |
executionFactory |
protected LdapContext |
ldapConnection |
| Constructor and Description |
|---|
LDAPSyncQueryExecution(org.teiid.language.Select query,
LDAPExecutionFactory factory,
org.teiid.translator.ExecutionContext context,
LdapContext connection)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
close() |
protected LdapContext |
createSearchContext(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.
|
void |
execute()
method to execute the supplied query
|
List<?> |
next() |
protected LdapContext ldapConnection
protected LDAPExecutionFactory executionFactory
protected org.teiid.translator.ExecutionContext executionContext
protected LDAPQueryExecution delegate
public LDAPSyncQueryExecution(org.teiid.language.Select query,
LDAPExecutionFactory factory,
org.teiid.translator.ExecutionContext context,
LdapContext connection)
executionMode - the execution mode.ctx - the execution context.logger - the ConnectorLoggerconnection - the LDAP Contextpublic void execute()
throws org.teiid.translator.TranslatorException
execute in interface org.teiid.translator.Executionquery - the query object.maxBatchSize - the max batch size.org.teiid.translator.TranslatorExceptionprotected LdapContext createSearchContext(String contextName) throws org.teiid.translator.TranslatorException
org.teiid.translator.TranslatorExceptionpublic List<?> next() throws org.teiid.translator.TranslatorException, org.teiid.translator.DataNotAvailableException
next in interface org.teiid.translator.ResultSetExecutionorg.teiid.translator.TranslatorExceptionorg.teiid.translator.DataNotAvailableExceptionpublic void cancel()
throws org.teiid.translator.TranslatorException
cancel in interface org.teiid.translator.Executionorg.teiid.translator.TranslatorExceptionpublic void close()
close in interface org.teiid.translator.ExecutionCopyright © 2017 JBoss by Red Hat. All rights reserved.