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 Execution
query
- the query object.maxBatchSize
- the max batch size.TranslatorException
protected LdapContext createSearchContext(String contextName) throws TranslatorException
TranslatorException
public List<?> next() throws TranslatorException, DataNotAvailableException
ResultSetExecution
next
in interface ResultSetExecution
TranslatorException
DataNotAvailableException
public void cancel() throws TranslatorException
Execution
cancel
in interface Execution
TranslatorException
Copyright © 2019. All rights reserved.