Package com.orientechnologies.orient.core.record.impl

Examples of com.orientechnologies.orient.core.record.impl.ODocument.save()


      doc.field(fieldNames.get(i), v);
    }

    if (clusterName != null)
      doc.save(clusterName);
    else
      doc.save();

    return doc;
  }
View Full Code Here


    }

    if (clusterName != null)
      doc.save(clusterName);
    else
      doc.save();

    return doc;
  }
}
View Full Code Here

    docs = targetVertex.field(OGraphDatabase.VERTEX_FIELD_IN_EDGES);
    if (docs != null)
      docs.remove(iEdge);

    targetVertex.setDirty();
    targetVertex.save();

    if (iDatabase.existsUserObjectByRID(iEdge.getIdentity())) {
      final OGraphEdge edge = (OGraphEdge) iDatabase.getUserObjectByRecord(iEdge, null);
      iDatabase.unregisterPojo(edge, iEdge);
    }
View Full Code Here

      whiz.field("id", i);
      whiz.field("text", "This is a test");
      whiz.field("account", result.get(0).getRid());

      whiz.save();
    }

    Assert.assertEquals(idx.getSize(), 1);

    List<ODocument> indexedResult = database.getUnderlying()
View Full Code Here

    ODocument whiz = new ODocument(database.getUnderlying(), "Whiz");
    whiz.field("id", 100);
    whiz.field("text", "This is a test!");
    whiz.field("account", new ODocument(database.getUnderlying(), "Company").field("id", 9999));
    whiz.save();

    Assert.assertTrue(((ODocument) whiz.field("account")).getIdentity().isValid());
   
    ((ODocument) whiz.field("account")).delete();
    whiz.delete();
View Full Code Here

    database.open("admin", "admin");

    ODocument doc = new ODocument(database);
    doc.field("binary", "Binary data".getBytes());

    doc.save();
    rid = doc.getIdentity();

    doc = database.load(rid);
    Assert.assertEquals(new String((byte[]) doc.field("binary")), "Binary data");
View Full Code Here

    database.open("admin", "admin");

    ODocument doc = new ODocument(database);
    doc.field("binary", new ORecordBytes(database, "Binary data".getBytes()));

    doc.save();
    rid = doc.getIdentity();

    database.close();
  }
View Full Code Here

      ODocument doc = className != null ? new ODocument(database, className) : new ODocument(database);

      OSQLHelper.bindParameters(doc, fields, iArgs);

      if (clusterName != null)
        doc.save(clusterName);
      else
        doc.save();
      return doc;
    }
  }
View Full Code Here

      OSQLHelper.bindParameters(doc, fields, iArgs);

      if (clusterName != null)
        doc.save(clusterName);
      else
        doc.save();
      return doc;
    }
  }
}
View Full Code Here

      }
    }

    if (recordUpdated) {
      record.setDirty();
      record.save();
      recordCount++;
    }

    return true;
  }
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.