Package com.tinkerpop.blueprints.impls.orient

Examples of com.tinkerpop.blueprints.impls.orient.OrientEdge.save()


      OrientVertex v4 = graph.addVertex("class:TestVertex");

      Map<String, Object> p1 = new HashMap<String, Object>();
      p1.put("based_on", "0001");
      OrientEdge e1 = v1.addEdge(null, v2, "TestEdge", null, p1);
      e1.save();

      Map<String, Object> p2 = new HashMap<String, Object>();
      p2.put("based_on", "0002");
      OrientEdge e2 = v3.addEdge(null, v4, "TestEdge", null, p2);
      e2.save();
View Full Code Here


      e1.save();

      Map<String, Object> p2 = new HashMap<String, Object>();
      p2.put("based_on", "0002");
      OrientEdge e2 = v3.addEdge(null, v4, "TestEdge", null, p2);
      e2.save();

      graph.commit();

      graph.command(new OCommandSQL("delete edge TestEdge where based_on = '0001'")).execute();
View Full Code Here

      UUID token = UUID.randomUUID();
      edge = (OrientEdge)sourceVertex.addEdge(edgeName, destVertex);
      edge.getRecord().field(BaasBoxPrivateFields.ID.toString(),token.toString());
      edge.getRecord().field(BaasBoxPrivateFields.AUTHOR.toString(),DbHelper.currentUsername());
      edge.getRecord().field(BaasBoxPrivateFields.CREATION_DATE.toString(),new Date());
      edge.save();
      DbHelper.commitTransaction();
    }catch (DocumentNotFoundException e){
      DbHelper.rollbackTransaction();
      throw e;
    }
View Full Code Here

                    // LIGHTWEIGHT EDGE, TRANSFORM IT BEFORE
                    edge.convertToDocument();
                  edge.getRecord().merge(content, true, false);
                }

                edge.save(clusterName);

                // OK
                break;

              } catch (OConcurrentModificationException e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.