Class PathDataRestore<R extends FactoryBase<?,?>,V>
- java.lang.Object
-
- io.github.factoryfx.factory.storage.migration.datamigration.PathDataRestore<R,V>
-
public class PathDataRestore<R extends FactoryBase<?,?>,V> extends java.lang.Objectrestore attribute content from one data class to a new one, based on path
-
-
Constructor Summary
Constructors Constructor Description PathDataRestore(AttributePathTarget<V> previousPath, java.util.function.BiConsumer<R,V> setter, SimpleObjectMapper simpleObjectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanMigrate(DataStorageMetadataDictionary previousDataStorageMetadataDictionary, DataJsonNode root)voidmigrate(DataJsonNode previousRoot, R root)
-
-
-
Constructor Detail
-
PathDataRestore
public PathDataRestore(AttributePathTarget<V> previousPath, java.util.function.BiConsumer<R,V> setter, SimpleObjectMapper simpleObjectMapper)
-
-
Method Detail
-
canMigrate
public boolean canMigrate(DataStorageMetadataDictionary previousDataStorageMetadataDictionary, DataJsonNode root)
-
migrate
public void migrate(DataJsonNode previousRoot, R root)
-
-