Package org.javers.core.snapshot
Class ChangedCdoSnapshotsFactory
java.lang.Object
org.javers.core.snapshot.ChangedCdoSnapshotsFactory
Builds snapshots for provided live objects.
Result contains only snapshots of objects that were newly created or
changed (comparing to provided collection of latest snapshots).
Result can be easily serialized and persisted.
-
Method Summary
Modifier and TypeMethodDescriptioncreate(LiveGraph liveGraph, Set<CdoSnapshot> latestSnapshots, CommitMetadata commitMetadata)
-
Method Details
-
create
public List<CdoSnapshot> create(LiveGraph liveGraph, Set<CdoSnapshot> latestSnapshots, CommitMetadata commitMetadata) - Parameters:
liveGraph- wrapped CDOs for which snapshots should be created if they differ from latest snapshotslatestSnapshots- CDO snapshots used to check which of liveObjects have been created or changedcommitMetadata- commit metadata used to create new snapshots
-