protected Node getChildPropertyForWrite(Node node, String name, String typeName) { Node childNode = getChildProperty(node, name, typeName); if (childNode == null) { // create the needed complex property immediately childNode = session.addChildNode(node, name, null, typeName, true); } return childNode; }
protected Document importChild( String uuid, Node parent, String name, Long pos, String typeName, Map<String, Serializable> props) { Serializable id = idFromString(uuid); Node node = session.addChildNode(id, parent, name, pos, typeName, false); for (Entry<String, Serializable> entry : props.entrySet()) { node.setSimpleProperty(entry.getKey(), entry.getValue()); } return newDocument(node, false); // not readonly }
protected Node addChildProperty(Node parent, String name, Long pos, String typeName) { return session.addChildNode(parent, name, pos, typeName, true); }
protected Document addChild(Node parent, String name, Long pos, String typeName) { return newDocument(session.addChildNode(parent, name, pos, typeName, false)); }