Module graph

Class LogStore

java.lang.Object
de.grogra.persistence.LogStore

public final class LogStore extends Object
  • Constructor Details

    • LogStore

      public LogStore(boolean keepAll)
  • Method Details

    • add

      public void add(Transaction.Key key, Transaction.Data data)
    • removeLast

      public void removeLast(int count)
    • remove

      public void remove(LogStore.Entry e)
      Remove the Entry from the chain and all of its next elements.
    • hideLast

      public void hideLast(int count)
      This do not really remove the last entry. It only point the cursor at the nth (=count) last as last. The "floating" logs (the next after the last), can be used to redo transaction. They are deleted when the last get a new next however.
    • restoreLast

      public void restoreLast(int count)
      This restore the last as the nth (count) next element of the current last.
    • get

    • getFirstEntry

      public LogStore.Entry getFirstEntry()
    • getLastEntry

      public LogStore.Entry getLastEntry()
    • clear

      public void clear()
    • hasFirst

      public boolean hasFirst()
    • hasLast

      public boolean hasLast()