Class HistoryEntry

java.lang.Object
com.google.refine.history.HistoryEntry

public class HistoryEntry extends Object
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 Details

    • id

      public final long id
    • projectID

      public final long projectID
    • description

      public final String description
    • time

      public final Instant time
    • _manager

      public final HistoryEntryManager _manager
    • operation

      public final AbstractOperation operation
  • Constructor Details

  • Method Details

    • setChange

      public void setChange(Change _change)
    • getChange

      public Change getChange()
    • allocateID

      public static long allocateID()
    • save

      public void save(Writer writer, Properties options)
    • apply

      public void apply(Project project)
      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

      public void revert(Project project)
    • load

      public static HistoryEntry load(Project project, String s) throws IOException
      Throws:
      IOException
    • delete

      public void delete()