Class DatabaseIntegrityCheckerService
java.lang.Object
com.avoka.fc.core.service.BaseService
com.avoka.fc.core.service.CayenneService
com.avoka.fc.core.service.databaseIntegrity.DatabaseIntegrityCheckerService
- All Implemented Interfaces:
IDatabaseIntegrityChecker
public class DatabaseIntegrityCheckerService
extends CayenneService
implements IDatabaseIntegrityChecker
Provide a service to check tables for integrity issues(relations and indexes).
- Since:
- 23.04.0
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkAll()
call all Database Integrity Checker validation methodscheck Core global services with no set default.Return forms name with no delivery method configured.check the database Indexes integrity and return nonexistent indexes.check the database relations integrity and return all invalid records.Return Services with debug log enable for prod systemint
Return the fetch limit to limit the maximum number of records need to be processed.static String
Return transaction history index file name based on database.static String
Return index file name based on database.void
setFetchLimit
(int fetchLimit) Set the fetch limit to limit the maximum number of records need to be processed.Methods inherited from class com.avoka.fc.core.service.CayenneService
commitChanges, deleteObject, deleteObjects, findObject, getDataContext, getDataDomain, getObjectForPK, getObjectStore, newObject, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, refetchEntity, refetchObject, registerNewObject, rollbackChanges, toMap, toMap
Methods inherited from class com.avoka.fc.core.service.BaseService
getLogger
-
Field Details
-
DB_PRODUCT
-
-
Constructor Details
-
DatabaseIntegrityCheckerService
public DatabaseIntegrityCheckerService()
-
-
Method Details
-
getFetchLimit
public int getFetchLimit()Return the fetch limit to limit the maximum number of records need to be processed.- Returns:
- the fetch limit to limit the maximum number of records need to be processed
-
setFetchLimit
public void setFetchLimit(int fetchLimit) Set the fetch limit to limit the maximum number of records need to be processed.- Parameters:
fetchLimit
- the fetch limit to limit the maximum number of records need to be processed
-
getIndexFileName
Return index file name based on database.- Returns:
- The index file name
-
getHistoryIndexFileName
Return transaction history index file name based on database.- Returns:
- The transaction history index file name
-
checkRelations
check the database relations integrity and return all invalid records.- Specified by:
checkRelations
in interfaceIDatabaseIntegrityChecker
- Returns:
- Invalid records
-
checkIndexes
check the database Indexes integrity and return nonexistent indexes.- Specified by:
checkIndexes
in interfaceIDatabaseIntegrityChecker
- Returns:
- Nonexistent Indexes
-
checkCoreGlobalServicesWithNoDefault
check Core global services with no set default.- Specified by:
checkCoreGlobalServicesWithNoDefault
in interfaceIDatabaseIntegrityChecker
- Returns:
- Core global services name with no set default
- Since:
- 23.10.0
-
checkFormsWithNoDeliveryMethod
Return forms name with no delivery method configured.- Specified by:
checkFormsWithNoDeliveryMethod
in interfaceIDatabaseIntegrityChecker
- Returns:
- forms name with no delivery method configured.
- Since:
- 23.10.0
-
checkServicesWithDebugLogEnable
Return Services with debug log enable for prod system- Specified by:
checkServicesWithDebugLogEnable
in interfaceIDatabaseIntegrityChecker
- Returns:
- Services name with debug log enable for prod system
- Since:
- 23.10.0
-
checkAll
public void checkAll()Description copied from interface:IDatabaseIntegrityChecker
call all Database Integrity Checker validation methods- Specified by:
checkAll
in interfaceIDatabaseIntegrityChecker
-