Interface CustomizedIncrementalDataFeedEntityUpdateRecordRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
- All Known Subinterfaces:
IncrementalDataFeedEntityUpdateRecordRepository<D>
,JpaIncrementalDataFeedEntityUpdateRecordRepository<D>
- All Known Implementing Classes:
JpaCustomizedIncrementalDataFeedEntityUpdateRecordRepository
public interface CustomizedIncrementalDataFeedEntityUpdateRecordRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
Advanced repository methods for
IncrementalDataFeedEntityUpdateRecordRepository
.-
Method Summary
Modifier and TypeMethodDescriptionint
hardDeleteAllByProcessExecutionId
(String dataFeedProcessExecutionId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Atomically finds and hard-deletesIncrementalDataFeedEntityUpdateRecord
instances belonging to the givenDataFeedProcessExecution
.int
setExecutionIdForUnackedRecords
(String dataFeedProcessId, String dataFeedProcessExecutionId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Atomically finds and setsIncrementalDataFeedEntityUpdateRecord.getDataFeedProcessExecutionId()
on allIncrementalDataFeedEntityUpdateRecord
entities where it is currentlynull
.
-
Method Details
-
setExecutionIdForUnackedRecords
@Policy(operationTypes=UPDATE) int setExecutionIdForUnackedRecords(String dataFeedProcessId, String dataFeedProcessExecutionId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Atomically finds and setsIncrementalDataFeedEntityUpdateRecord.getDataFeedProcessExecutionId()
on allIncrementalDataFeedEntityUpdateRecord
entities where it is currentlynull
.- Parameters:
dataFeedProcessId
- the value ofIncrementalDataFeedEntityUpdateRecord.getDataFeedProcessId()
to filter results bydataFeedProcessExecutionId
- the new value to set forIncrementalDataFeedEntityUpdateRecord.getDataFeedProcessExecutionId()
contextInfo
- context information around multitenant state- Returns:
- the number of records that were updated
-
hardDeleteAllByProcessExecutionId
@Policy(operationTypes=DELETE) int hardDeleteAllByProcessExecutionId(String dataFeedProcessExecutionId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Atomically finds and hard-deletesIncrementalDataFeedEntityUpdateRecord
instances belonging to the givenDataFeedProcessExecution
.- Parameters:
dataFeedProcessExecutionId
- the value ofIncrementalDataFeedEntityUpdateRecord.getDataFeedProcessExecutionId()
to matchcontextInfo
- context information around multitenant state- Returns:
- the number of records that were deleted
-