public static class QueryBasedCreationData.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
QueryBasedCreationData |
build() |
QueryBasedCreationData.Builder |
useDatabasePaging()
Tells whether this
ProcessCreationData implementation should use Database level paging or in-memory
paging. |
QueryBasedCreationData.Builder |
withBatchSize(int batchSize)
Allows to provide custom batch size.
|
QueryBasedCreationData.Builder |
withBeforeQueryHook(QueryBasedCreationData.QueryHook beforeQueryHook)
Allows to provide logic which will be executed before FlexibleSearchQuery is executed.
|
QueryBasedCreationData.Builder |
withFlexibleSearchQuery(FlexibleSearchQuery flexibleSearchQuery)
Allows to provide full
FlexibleSearchQuery object. |
QueryBasedCreationData.Builder |
withHandlerId(java.lang.String handlerId)
Allows to provide Spring Bean ID of a SimpleDistributedProcessHandler.
|
QueryBasedCreationData.Builder |
withNodeGroup(java.lang.String nodeGroup)
Allows to provide name of the NodeGroup which will execute process.
|
QueryBasedCreationData.Builder |
withNumOfRetries(int numOfRetries)
Allows to provide custom number of retries for Batch.
|
QueryBasedCreationData.Builder |
withProcessId(java.lang.String processId)
Allows to setup custom processId.
|
QueryBasedCreationData.Builder |
withProcessModelClass(java.lang.Class<? extends SimpleDistributedProcessModel> processModelClass)
Allows to provide custom process model class.
|
QueryBasedCreationData.Builder |
withQuery(java.lang.String query)
Allows to provide FlexibleSrarch query String.
|
QueryBasedCreationData.Builder |
withQueryParams(java.util.Map<java.lang.String,java.lang.Object> queryParams)
Allows to provide query parameters when String based query is used.
|
QueryBasedCreationData.Builder |
withResultClasses(java.util.List<java.lang.Class<?>> resultClasses)
Allows to provide result classes when String based query is used.
|
QueryBasedCreationData.Builder |
withScriptCode(java.lang.String scriptCode)
Allows to provide Script code which will act as a
SimpleBatchProcessor implementation. |
public QueryBasedCreationData.Builder withHandlerId(java.lang.String handlerId)
public QueryBasedCreationData.Builder withProcessId(java.lang.String processId)
public QueryBasedCreationData.Builder withNodeGroup(java.lang.String nodeGroup)
public QueryBasedCreationData.Builder withBatchSize(int batchSize)
public QueryBasedCreationData.Builder withNumOfRetries(int numOfRetries)
public QueryBasedCreationData.Builder withQuery(java.lang.String query)
public QueryBasedCreationData.Builder withQueryParams(java.util.Map<java.lang.String,java.lang.Object> queryParams)
public QueryBasedCreationData.Builder withResultClasses(java.util.List<java.lang.Class<?>> resultClasses)
public QueryBasedCreationData.Builder withScriptCode(java.lang.String scriptCode)
SimpleBatchProcessor implementation. When this option
is chosen withHandlerId(String) has no effect.public QueryBasedCreationData.Builder withFlexibleSearchQuery(FlexibleSearchQuery flexibleSearchQuery)
FlexibleSearchQuery object. When this option is chosen
withQuery(String), withQueryParams(Map), withResultClasses(List) have no effect.public QueryBasedCreationData.Builder withBeforeQueryHook(QueryBasedCreationData.QueryHook beforeQueryHook)
public QueryBasedCreationData.Builder useDatabasePaging()
ProcessCreationData implementation should use Database level paging or in-memory
paging. In-memory paging is the default. Please note that if you want to use Database level paging you must
provide query with proper ORDER BY clause.public QueryBasedCreationData.Builder withProcessModelClass(java.lang.Class<? extends SimpleDistributedProcessModel> processModelClass)
public QueryBasedCreationData build()
Copyright © 2018 SAP SE. All Rights Reserved.