From df4d199072cacd9d7de74f9f0f27763ac83701fd Mon Sep 17 00:00:00 2001 From: hns Date: Thu, 4 Jul 2002 17:33:56 +0000 Subject: [PATCH] added getDbMapping(typename) method that gets the DbMapping for a prototype name. changed sql argument encoding utility method: single quotes are now encoded as '' instead of \' --- src/helma/objectmodel/db/NodeManager.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/helma/objectmodel/db/NodeManager.java b/src/helma/objectmodel/db/NodeManager.java index 4c3e1c0c..c6fd9957 100644 --- a/src/helma/objectmodel/db/NodeManager.java +++ b/src/helma/objectmodel/db/NodeManager.java @@ -16,7 +16,7 @@ import com.workingdogs.village.*; * external data sources, caching them in a least-recently-used Hashtable, * and writing changes back to the databases. */ - + public final class NodeManager { protected Application app; @@ -985,6 +985,14 @@ public final class NodeManager { return node; } + /** + * Get a DbMapping for a given prototype name. This is just a proxy + * method to the app's getDbMapping() method. + */ + public DbMapping getDbMapping (String protoname) { + return app.getDbMapping (protoname); + } + // a utility method to escape single quotes private String escape (String str) { if (str == null) @@ -996,7 +1004,7 @@ public final class NodeManager { for (int i=0; i