summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado/repo
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2008-05-05 01:22:37 +0000
committerBrian S. O'Neill <bronee@gmail.com>2008-05-05 01:22:37 +0000
commit0881e0448a861ead9b0415e7992290e6a836c71b (patch)
tree638024e69164cb00cf515d34d575fea64ec4cc8a /src/main/java/com/amazon/carbonado/repo
parentda7d1e9c8f3b09b569ce208f8e5bddfe2d20dba3 (diff)
Added transaction test case.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/repo')
-rw-r--r--src/main/java/com/amazon/carbonado/repo/map/MapTransaction.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/com/amazon/carbonado/repo/map/MapTransaction.java b/src/main/java/com/amazon/carbonado/repo/map/MapTransaction.java
index d2cfe87..93bcbdc 100644
--- a/src/main/java/com/amazon/carbonado/repo/map/MapTransaction.java
+++ b/src/main/java/com/amazon/carbonado/repo/map/MapTransaction.java
@@ -126,6 +126,10 @@ class MapTransaction {
public void undo() {
storage.mapRemove(key);
}
+
+ public String toString() {
+ return "undo insert by remove: " + key;
+ }
});
}
@@ -137,6 +141,10 @@ class MapTransaction {
public void undo() {
storage.mapPut(old);
}
+
+ public String toString() {
+ return "undo update by put: " + old;
+ }
});
}
@@ -148,6 +156,10 @@ class MapTransaction {
public void undo() {
storage.mapPut(old);
}
+
+ public String toString() {
+ return "undo delete by put: " + old;
+ }
});
}