Interface Persister
- All Known Implementing Classes:
AttachmentsPersister
,DatabasePersister
public interface Persister
Persister interface
It verifies if the collection of imported objects should be persisted by this persister and then persists them.
- Since:
- 8.2.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
persist
(Map<ExportableEntityInfo, Collection<ImportedObjectV2>> objectsWithDatabaseIdsByClass) Persists some or all given objects.boolean
shouldPersist
(Map<ExportableEntityInfo, Collection<ImportedObjectV2>> objectsWithDatabaseIdsByClass) Checks if should persist any of the given objects.
-
Method Details
-
shouldPersist
boolean shouldPersist(Map<ExportableEntityInfo, Collection<ImportedObjectV2>> objectsWithDatabaseIdsByClass) Checks if should persist any of the given objects.- Parameters:
objectsWithDatabaseIdsByClass
- - objects to persist.- Returns:
- true if there are objects that this persister can persist. Otherwise, false.
-
persist
void persist(Map<ExportableEntityInfo, Collection<ImportedObjectV2>> objectsWithDatabaseIdsByClass) throws BackupRestoreExceptionPersists some or all given objects.- Parameters:
objectsWithDatabaseIdsByClass
- - objects to persist.- Throws:
BackupRestoreException
- - throws if cannot persist.
-