Class VersionedObjectWithHistory
- java.lang.Object
-
- software.xdev.micromigration.version.VersionedObject
-
- software.xdev.micromigration.version.VersionedObjectWithHistory
-
- All Implemented Interfaces:
Versioned
,VersionedAndKeeperOfHistory
public class VersionedObjectWithHistory extends VersionedObject implements VersionedAndKeeperOfHistory
This class is inserted as the root of the MicroStream datastore and contains only the current version, the actual root object and the history of executed scripts.- Author:
- Johannes Rabauer
-
-
Constructor Summary
Constructors Constructor Description VersionedObjectWithHistory(java.lang.Object actualRoot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addExecutedScript(ScriptExecutionNotificationWithoutScriptReference executedScriptInformation)
Adds the information about the executed script to the history book.java.util.List<ScriptExecutionNotificationWithoutScriptReference>
getMigrationHistory()
-
Methods inherited from class software.xdev.micromigration.version.VersionedObject
getObject, getVersion, setObject, setVersion, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.xdev.micromigration.version.Versioned
getVersion, setVersion
-
-
-
-
Method Detail
-
addExecutedScript
public void addExecutedScript(ScriptExecutionNotificationWithoutScriptReference executedScriptInformation)
Description copied from interface:VersionedAndKeeperOfHistory
Adds the information about the executed script to the history book.- Specified by:
addExecutedScript
in interfaceVersionedAndKeeperOfHistory
- Parameters:
executedScriptInformation
- information about the executed script
-
getMigrationHistory
public java.util.List<ScriptExecutionNotificationWithoutScriptReference> getMigrationHistory()
- Specified by:
getMigrationHistory
in interfaceVersionedAndKeeperOfHistory
- Returns:
- the complete migration history. That means information about every executed script.
-
-