public class LDAPQueryExecution extends Object implements ResultSetExecution
Constructor and Description |
---|
LDAPQueryExecution(LdapContext ldapContext,
LDAPSearchDetails search,
SearchControls searchControls,
LDAPExecutionFactory factory,
ExecutionContext context)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancels the execution abnormally.
|
void |
close()
Terminates the execution normally.
|
void |
execute()
method to execute the supplied query
|
List<?> |
next()
Fetch the next batch of data from the LDAP searchEnumerationr result.
|
public LDAPQueryExecution(LdapContext ldapContext, LDAPSearchDetails search, SearchControls searchControls, LDAPExecutionFactory factory, ExecutionContext context)
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
public void cancel() throws TranslatorException
Execution
cancel
in interface Execution
TranslatorException
public void close()
Execution
public List<?> next() throws TranslatorException
next
in interface ResultSetExecution
TranslatorException
Copyright © 2016 JBoss by Red Hat. All rights reserved.