Class QueryBasedCreationData.Builder
java.lang.Object
de.hybris.platform.processing.distributed.simple.data.QueryBasedCreationData.Builder
- Enclosing class:
- QueryBasedCreationData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Tells whether thisProcessCreationDataimplementation should use Database level paging or in-memory paging.withBatchSize(int batchSize) Allows to provide custom batch size.withBeforeQueryHook(QueryBasedCreationData.QueryHook beforeQueryHook) Allows to provide logic which will be executed before FlexibleSearchQuery is executed.withFlexibleSearchQuery(FlexibleSearchQuery flexibleSearchQuery) Allows to provide fullFlexibleSearchQueryobject.withHandlerId(String handlerId) Allows to provide Spring Bean ID of a SimpleDistributedProcessHandler.withNodeGroup(String nodeGroup) Allows to provide name of the NodeGroup which will execute process.withNumOfRetries(int numOfRetries) Allows to provide custom number of retries for Batch.withProcessId(String processId) Allows to setup custom processId.withProcessModelClass(Class<? extends SimpleDistributedProcessModel> processModelClass) Allows to provide custom process model class.Allows to provide FlexibleSrarch query String.withQueryParams(Map<String, Object> queryParams) Allows to provide query parameters when String based query is used.withResultClasses(List<Class<?>> resultClasses) Allows to provide result classes when String based query is used.withScriptCode(String scriptCode) Allows to provide Script code which will act as aSimpleBatchProcessorimplementation.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withHandlerId
Allows to provide Spring Bean ID of a SimpleDistributedProcessHandler. -
withProcessId
Allows to setup custom processId. Note that processId must be unique in the whole system. -
withNodeGroup
Allows to provide name of the NodeGroup which will execute process. -
withBatchSize
Allows to provide custom batch size. If not used default 100 will be chosen. -
withNumOfRetries
Allows to provide custom number of retries for Batch. If not used default 3 will be chosen. -
withQuery
Allows to provide FlexibleSrarch query String. -
withQueryParams
Allows to provide query parameters when String based query is used. -
withResultClasses
Allows to provide result classes when String based query is used. -
withScriptCode
Allows to provide Script code which will act as aSimpleBatchProcessorimplementation. When this option is chosenwithHandlerId(String)has no effect. -
withFlexibleSearchQuery
public QueryBasedCreationData.Builder withFlexibleSearchQuery(FlexibleSearchQuery flexibleSearchQuery) Allows to provide fullFlexibleSearchQueryobject. When this option is chosenwithQuery(String),withQueryParams(Map),withResultClasses(List)have no effect. -
withBeforeQueryHook
public QueryBasedCreationData.Builder withBeforeQueryHook(QueryBasedCreationData.QueryHook beforeQueryHook) Allows to provide logic which will be executed before FlexibleSearchQuery is executed. Usually useful to set session settings. -
useDatabasePaging
Tells whether thisProcessCreationDataimplementation 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. -
withProcessModelClass
public QueryBasedCreationData.Builder withProcessModelClass(Class<? extends SimpleDistributedProcessModel> processModelClass) Allows to provide custom process model class. -
build
-