Exemple #1
0
 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;
 }
Exemple #2
0
 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
 }
Exemple #3
0
 protected Node addChildProperty(Node parent, String name, Long pos, String typeName) {
   return session.addChildNode(parent, name, pos, typeName, true);
 }
Exemple #4
0
 protected Document addChild(Node parent, String name, Long pos, String typeName) {
   return newDocument(session.addChildNode(parent, name, pos, typeName, false));
 }