java.lang.Object
de.grogra.persistence.LogStore
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Transaction.Key key, Transaction.Data data) void
clear()
get
(Transaction.Key key) boolean
hasFirst()
boolean
hasLast()
void
hideLast
(int count) This do not really remove the last entry.void
Remove the Entry from the chain and all of its next elements.void
removeLast
(int count) void
restoreLast
(int count) This restore the last as the nth (count) next element of the current last.
-
Constructor Details
-
LogStore
public LogStore(boolean keepAll)
-
-
Method Details
-
add
-
removeLast
public void removeLast(int count) -
remove
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
-
getLastEntry
-
clear
public void clear() -
hasFirst
public boolean hasFirst() -
hasLast
public boolean hasLast()
-