Class RepairReferenceCountServiceImpl
java.lang.Object
ch.tocco.nice2.dms.impl.dbrefactoring.RepairReferenceCountServiceImpl
- All Implemented Interfaces:
RepairReferenceCountService
@Component
public class RepairReferenceCountServiceImpl
extends Object
implements RepairReferenceCountService
On execution the sql function defined in repair_reference_counter.sql is (re)created
and executed for a certain amount of rows.
-
Constructor Summary
ConstructorDescriptionRepairReferenceCountServiceImpl
(DataSource dataSource, org.slf4j.Logger log) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Recalculate the reference counter value of all _nice_binary entries.void
resetReferenceCount
(Set<String> hashes) Set the reference count to -1 for the given hashes.
-
Constructor Details
-
RepairReferenceCountServiceImpl
-
-
Method Details
-
repairReferenceCount
public void repairReferenceCount()Description copied from interface:RepairReferenceCountService
Recalculate the reference counter value of all _nice_binary entries.- Specified by:
repairReferenceCount
in interfaceRepairReferenceCountService
-
resetReferenceCount
Description copied from interface:RepairReferenceCountService
Set the reference count to -1 for the given hashes. They will be repaired by RepairReferenceCountBatchJob- Specified by:
resetReferenceCount
in interfaceRepairReferenceCountService
-