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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
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 Detail
-
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 BackupRestoreException
Persists some or all given objects.- Parameters:
objectsWithDatabaseIdsByClass
- - objects to persist.- Throws:
BackupRestoreException
- - throws if cannot persist.
-
-