Package com.google.refine.history
Class HistoryEntry
java.lang.Object
com.google.refine.history.HistoryEntry
This is the metadata of a Change. It's small, so we can load it in order to
obtain information about a change without actually loading the change.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal HistoryEntryManagerfinal Stringfinal longfinal AbstractOperationfinal longfinal OffsetDateTime -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHistoryEntry(long id, long projectID, String description, AbstractOperation operation) protectedHistoryEntry(long id, long projectID, String description, AbstractOperation operation, OffsetDateTime time) HistoryEntry(long id, Project project, String description, AbstractOperation operation, Change change) -
Method Summary
Modifier and TypeMethodDescriptionstatic longvoidApply a change to a project.voiddelete()static HistoryEntryvoidvoidsave(Writer writer, Properties options) void
-
Field Details
-
id
public final long id -
projectID
public final long projectID -
description
-
time
-
_manager
-
operation
-
-
Constructor Details
-
HistoryEntry
-
HistoryEntry
public HistoryEntry(long id, Project project, String description, AbstractOperation operation, Change change) -
HistoryEntry
protected HistoryEntry(long id, long projectID, String description, AbstractOperation operation, OffsetDateTime time)
-
-
Method Details
-
setChange
-
getChange
-
allocateID
public static long allocateID() -
save
-
apply
Apply a change to a project. In most cases you should already hold the Project lock before calling this method to prevent deadlocks.- Parameters:
project- the project the change should be applied to
-
revert
-
load
- Throws:
IOException
-
delete
public void delete()
-