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()
Cancels the execution abnormally.
|
void |
close()
Terminates the execution normally.
|
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()
Retrieves the next row of the resultset.
|
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
ResultSetExecutionnext in interface ResultSetExecutionTranslatorExceptionDataNotAvailableExceptionpublic void cancel()
throws TranslatorException
Executioncancel in interface ExecutionTranslatorExceptionCopyright © 2019. All rights reserved.