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
ConstructorsConstructorDescriptionRepairReferenceCountServiceImpl(DataSource dataSource, org.slf4j.Logger log) -
Method Summary
Modifier and TypeMethodDescriptionvoidRecalculate the reference counter value of all _nice_binary entries.voidresetReferenceCount(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:RepairReferenceCountServiceRecalculate the reference counter value of all _nice_binary entries.- Specified by:
repairReferenceCountin interfaceRepairReferenceCountService
-
resetReferenceCount
Description copied from interface:RepairReferenceCountServiceSet the reference count to -1 for the given hashes. They will be repaired by RepairReferenceCountBatchJob- Specified by:
resetReferenceCountin interfaceRepairReferenceCountService
-