From 2b4dec4e345046715e5a921d715bbc2723d4a949 Mon Sep 17 00:00:00 2001 From: hns Date: Fri, 3 Aug 2001 14:40:30 +0000 Subject: [PATCH] tweaked getStorageName, no special treatment for hopobject is required. --- src/helma/objectmodel/DbMapping.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/helma/objectmodel/DbMapping.java b/src/helma/objectmodel/DbMapping.java index 11daf66f..00d55325 100644 --- a/src/helma/objectmodel/DbMapping.java +++ b/src/helma/objectmodel/DbMapping.java @@ -518,10 +518,15 @@ public class DbMapping implements Updatable { return db2prop; } + /** + * Return the name of the prototype which specifies the storage location + * (dbsource + tablename) for this type, or null if it is stored in the embedded + * db. + */ public String getStorageTypeName () { - if (table == null && parentMapping != null && !"hopobject".equalsIgnoreCase (extendsProto)) + if (table == null && parentMapping != null) return parentMapping.getStorageTypeName (); - return typename; + return sourceName == null ? null : typename; } }