Class RecursiveHibernateBulkAction<CONTEXT extends BulkExecutionContext,TARGET>
- java.lang.Object
-
- com.atlassian.confluence.impl.hibernate.bulk.RecursiveHibernateBulkAction<CONTEXT,TARGET>
-
- Type Parameters:
CONTEXT
- execution contextTARGET
- The class of the item that needs to be processed
public class RecursiveHibernateBulkAction<CONTEXT extends BulkExecutionContext,TARGET> extends Object
Abstract bulk recursive action. This class will scan all items by using recursion and commit a transaction when the batch size is reached.- Since:
- 6.0
-
-
Constructor Summary
Constructors Constructor Description RecursiveHibernateBulkAction(BulkTransaction bulkTransaction, com.atlassian.core.util.ProgressMeter progressMeter, int batchSize, int maximumAllowedProcessedEntries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
execute(CONTEXT context, TARGET processingObject, BulkAction<CONTEXT,TARGET> processingAction)
int
getNumEntriesProcessed()
-
-
-
Constructor Detail
-
RecursiveHibernateBulkAction
public RecursiveHibernateBulkAction(BulkTransaction bulkTransaction, com.atlassian.core.util.ProgressMeter progressMeter, int batchSize, int maximumAllowedProcessedEntries)
-
-
Method Detail
-
getNumEntriesProcessed
public int getNumEntriesProcessed()
-
execute
public int execute(CONTEXT context, TARGET processingObject, BulkAction<CONTEXT,TARGET> processingAction)
-
-