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 TypeMethodDescriptioncheck the database Indexes integrity and return nonexistent indexes.check the database relations integrity and return all invalid records.int
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
-