public class LDAPSyncQueryExecution extends Object implements ResultSetExecution
| Modifier and Type | Field and Description |
|---|---|
protected LDAPQueryExecution |
delegate |
protected ExecutionContext |
executionContext |
protected LDAPExecutionFactory |
executionFactory |
protected LdapContext |
ldapConnection |
| Constructor and Description |
|---|
LDAPSyncQueryExecution(Select query,
LDAPExecutionFactory factory,
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 ExecutionContext executionContext
protected LDAPQueryExecution delegate
public LDAPSyncQueryExecution(Select query, LDAPExecutionFactory factory, ExecutionContext context, LdapContext connection)
executionMode - the execution mode.ctx - the execution context.logger - the ConnectorLoggerconnection - the LDAP Contextpublic void execute()
throws TranslatorException
execute in interface Executionquery - the query object.maxBatchSize - the max batch size.TranslatorExceptionprotected LdapContext createSearchContext(String contextName) throws TranslatorException
TranslatorExceptionpublic List<?> next() throws TranslatorException, DataNotAvailableException
next in interface ResultSetExecutionTranslatorExceptionDataNotAvailableExceptionpublic void cancel()
throws TranslatorException
cancel in interface ExecutionTranslatorExceptionCopyright © 2019. All rights reserved.