From bbfab140a6483943531497731316758d6357fc80 Mon Sep 17 00:00:00 2001 From: hns Date: Fri, 10 Aug 2001 18:12:39 +0000 Subject: [PATCH] notify dbmappings of data change when switching prototypes --- src/helma/objectmodel/db/Node.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/helma/objectmodel/db/Node.java b/src/helma/objectmodel/db/Node.java index 811558e9..ac7be799 100644 --- a/src/helma/objectmodel/db/Node.java +++ b/src/helma/objectmodel/db/Node.java @@ -49,7 +49,7 @@ public final class Node implements INode, Serializable { private void readObject (ObjectInputStream in) throws IOException { try { - // as a general rule of thumb, if a string can bu null use read/writeObject, + // as a general rule of thumb, if a string can be null use read/writeObject, // if not it's save to use read/writeUTF. // version indicates the serialization version version = in.readShort (); @@ -1429,6 +1429,8 @@ public final class Node implements INode, Serializable { String newStorage = newmap.getStorageTypeName (); if ((oldStorage == null && newStorage == null) || (oldStorage != null && oldStorage.equals (newStorage))) { + dbmap.notifyDataChange (); + newmap.notifyDataChange (); this.dbmap = newmap; this.prototype = value; }