Only return property-to-db mapping as properties enumeration if the node

is stored in a relational database. Otherwise, the actual properties are
returned.
This commit is contained in:
hns 2002-07-18 20:19:52 +00:00
parent 8f75b2183c
commit bfa99996c8

View file

@ -1245,7 +1245,7 @@ public final class Node implements INode, Serializable {
*/ */
public Enumeration properties () { public Enumeration properties () {
if (dbmap != null && dbmap.getProp2DB ().size() > 0) if (dbmap != null && dbmap.isRelational() && dbmap.getProp2DB ().size() > 0)
// return the properties defined in type.properties, if there are any // return the properties defined in type.properties, if there are any
return new Enumeration () { return new Enumeration () {
Iterator i = dbmap.getProp2DB().keySet().iterator(); Iterator i = dbmap.getProp2DB().keySet().iterator();