Class DefaultIncrementalDataFeedEntityUpdateRecordService<P extends IncrementalDataFeedEntityUpdateRecord>
java.lang.Object
com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P>
com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P>
com.broadleafcommerce.datafeed.service.DefaultIncrementalDataFeedEntityUpdateRecordService<P>
- Type Parameters:
P
- business/projection type ofIncrementalDataFeedEntityUpdateRecord
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
,IncrementalDataFeedEntityUpdateRecordService<P>
public class DefaultIncrementalDataFeedEntityUpdateRecordService<P extends IncrementalDataFeedEntityUpdateRecord>
extends com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P>
implements IncrementalDataFeedEntityUpdateRecordService<P>
Default implementation of
IncrementalDataFeedEntityUpdateRecordService
-
Constructor Summary
ConstructorDescriptionDefaultIncrementalDataFeedEntityUpdateRecordService
(IncrementalDataFeedEntityUpdateRecordRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected IncrementalDataFeedEntityUpdateRecordRepository<com.broadleafcommerce.data.tracking.core.Trackable>
int
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
.Methods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService
getRsqlHelper, readAll, readAll, readAll, readAll
Methods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService
convertFromPersistentDomain, convertToPersistentDomain, create, createAll, createAllAllowingPartialSuccess, delete, getHelper, getSortPositionStrategy, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, setSortPositionStrategy, update, updateAll, updateAllAllowingPartialSuccess, updateSort
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService
create, createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess, updateSort
Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService
readAll, readAll, readAll, readAll
-
Constructor Details
-
DefaultIncrementalDataFeedEntityUpdateRecordService
public DefaultIncrementalDataFeedEntityUpdateRecordService(IncrementalDataFeedEntityUpdateRecordRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper)
-
-
Method Details
-
setExecutionIdForUnackedRecords
public int setExecutionIdForUnackedRecords(String dataFeedProcessId, String dataFeedProcessExecutionId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:IncrementalDataFeedEntityUpdateRecordService
Atomically finds and setsIncrementalDataFeedEntityUpdateRecord.getDataFeedProcessExecutionId()
on allIncrementalDataFeedEntityUpdateRecord
entities where it is currentlynull
.- Specified by:
setExecutionIdForUnackedRecords
in interfaceIncrementalDataFeedEntityUpdateRecordService<P extends IncrementalDataFeedEntityUpdateRecord>
- 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
public int hardDeleteAllByProcessExecutionId(String dataFeedProcessExecutionId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:IncrementalDataFeedEntityUpdateRecordService
Atomically finds and hard-deletesIncrementalDataFeedEntityUpdateRecord
instances belonging to the givenDataFeedProcessExecution
.- Specified by:
hardDeleteAllByProcessExecutionId
in interfaceIncrementalDataFeedEntityUpdateRecordService<P extends IncrementalDataFeedEntityUpdateRecord>
- Parameters:
dataFeedProcessExecutionId
- the value ofIncrementalDataFeedEntityUpdateRecord.getDataFeedProcessExecutionId()
to matchcontextInfo
- context information around multitenant state- Returns:
- the number of records that were deleted
-
getRepository
protected IncrementalDataFeedEntityUpdateRecordRepository<com.broadleafcommerce.data.tracking.core.Trackable> getRepository()- Overrides:
getRepository
in classcom.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends IncrementalDataFeedEntityUpdateRecord>
-