T
- type of object as which a success response is representedpublic interface QueryOperation<T>
execute()
.
Specifying a success-handler via the onSuccess(Consumer)
method is optional.
Specifying an error-handler via the onError(Consumer)
method
is also optional, but an error during VQL processing will throw an exception.
Modifier and Type | Method and Description |
---|---|
void |
execute()
Executes this query operation.
|
QueryOperation<T> |
onError(Consumer<QueryOperationError> errorHandler)
Sets the function called when VQL execution fails with a
QueryOperationErrorType . |
QueryOperation<T> |
onSuccess(Consumer<T> successHandler)
Sets the function called when VQL execution completes successfully.
|
QueryOperation<T> onSuccess(Consumer<T> successHandler)
successHandler
- function to call after successful executionQueryOperation<T> onError(Consumer<QueryOperationError> errorHandler)
QueryOperationErrorType
.errorHandler
- function to call after failed executionvoid execute()
Copyright © Veeva Systems 2017–2022. All rights reserved.