basic test run working, next step incorporating into db-layer
[mir.git] / source / mir / storage / store / StoreContainerType.java
index f1535bc..3cb3383 100755 (executable)
@@ -45,7 +45,7 @@ public class StoreContainerType {
 
        public static StoreContainerType valueOf(Class stoc_class, int stoc_type) {
                StoreContainerType returnStocType=null;
-    if (stoc_type>=0 && stoc_type < STOC_TYPE_MAX) {
+    if (stoc_type>=0 && stoc_type <= STOC_TYPE_MAX) {
       HashMap current = uniqueTypes[stoc_type];
       if ( current.containsKey(stoc_class) )
                          returnStocType=(StoreContainerType)current.get(stoc_class);
@@ -57,6 +57,9 @@ public class StoreContainerType {
                return returnStocType;
        }
 
+  public int getStocType() { return stocType; }
+  public Class getStocClass() { return stocClass; }
+
        public String toString() {
                StringBuffer sb = new StringBuffer(this.stocClass.toString());
                sb.append("@").append(stringForStoreType(stocType));