diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2008-05-05 01:22:37 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2008-05-05 01:22:37 +0000 |
commit | 0881e0448a861ead9b0415e7992290e6a836c71b (patch) | |
tree | 638024e69164cb00cf515d34d575fea64ec4cc8a | |
parent | da7d1e9c8f3b09b569ce208f8e5bddfe2d20dba3 (diff) |
Added transaction test case.
-rw-r--r-- | src/main/java/com/amazon/carbonado/repo/map/MapTransaction.java | 12 |
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;
+ }
});
}
|