From f416ca6e7d71fc67ad71b086331e1b567a5f326a Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Thu, 10 Apr 2008 15:23:41 +0000 Subject: Add propertyMap feature to Storable. --- src/main/java/com/amazon/carbonado/gen/StorableGenerator.java | 3 +-- src/main/java/com/amazon/carbonado/gen/StorablePropertyMap.java | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'src/main/java/com/amazon/carbonado/gen') diff --git a/src/main/java/com/amazon/carbonado/gen/StorableGenerator.java b/src/main/java/com/amazon/carbonado/gen/StorableGenerator.java index 9d3b4b4..cb60349 100644 --- a/src/main/java/com/amazon/carbonado/gen/StorableGenerator.java +++ b/src/main/java/com/amazon/carbonado/gen/StorableGenerator.java @@ -1629,8 +1629,7 @@ public final class StorableGenerator { // Define reflection-like methods for manipulating properties by name. addGetPropertyValueMethod(); addSetPropertyValueMethod(); - // Keep hidden until it is decided that this feature is useful. - //addPropertyMapMethod(); + addPropertyMapMethod(); // Define serialization methods. addWriteToMethod(); diff --git a/src/main/java/com/amazon/carbonado/gen/StorablePropertyMap.java b/src/main/java/com/amazon/carbonado/gen/StorablePropertyMap.java index e17dd01..cbf0d0b 100644 --- a/src/main/java/com/amazon/carbonado/gen/StorablePropertyMap.java +++ b/src/main/java/com/amazon/carbonado/gen/StorablePropertyMap.java @@ -41,8 +41,7 @@ import com.amazon.carbonado.info.StorableProperty; * * @author Brian S O'Neill */ -// Keep hidden until it is decided that this feature is useful. -class StorablePropertyMap extends AbstractMap { +public class StorablePropertyMap extends AbstractMap { private static final Map> cPropertyNamesForType = new SoftValuedHashMap(); -- cgit v1.2.3