Package com.orientechnologies.orient.core.db.record

Examples of com.orientechnologies.orient.core.db.record.ODatabaseFlat.load()


    ORecordFlat record1 = new ORecordFlat(db1);
    record1.value("This is the first version").save();

    // RE-READ THE RECORD
    record1.reload();
    ORecordFlat record2 = db2.load(record1.getIdentity());

    record2.value("This is the second version").save();
    record2.value("This is the third version").save();

    record1.reload(null, true);
View Full Code Here


    try {
      db1.begin();

      // RE-READ THE RECORD
      record1.load();
      ORecordFlat record2 = db2.load(record1.getIdentity());

      record2.value("This is the second version").save();
      record1.value("This is the third version").save();

      db1.commit();
View Full Code Here

      int v1 = record1.getVersion();
      record1.value("This is the second version").save();

      db1.commit();

      ORecordFlat record2 = db2.load(record1.getIdentity());
      Assert.assertEquals(record2.getVersion(), v1 + 1);
      Assert.assertTrue(record2.value().contains("second"));

    } finally {
View Full Code Here

    ORecordFlat record1 = new ORecordFlat(db1);
    record1.value("This is the first version").save();

    // RE-READ THE RECORD
    record1.load();
    ORecordFlat record2 = db2.load(record1.getIdentity());

    record2.value("This is the second version").save();
    record1.value("This is the third version").save();

    record1 = db1.load(record1.getIdentity());
View Full Code Here

    try {
      db1.begin();

      // RE-READ THE RECORD
      record1.load();
      ORecordFlat record2 = db2.load(record1.getIdentity());

      record2.value("This is the second version").save();
      record1.value("This is the third version").save();

      db1.commit();
View Full Code Here

      int v1 = record1.getVersion();
      record1.value("This is the second version").save();

      db1.commit();

      ORecordFlat record2 = db2.load(record1.getIdentity());
      Assert.assertEquals(record2.getVersion(), v1 + 1);
      Assert.assertTrue(record2.value().contains("second"));

    } finally {
View Full Code Here

    ORecordFlat record1 = new ORecordFlat(db1);
    record1.value("This is the first version").save();

    // RE-READ THE RECORD
    record1.reload();
    ORecordFlat record2 = db2.load(record1.getIdentity());

    record2.value("This is the second version").save();
    record2.value("This is the third version").save();

    record1.reload(null, true);
View Full Code Here

    ORecordFlat record1 = new ORecordFlat(db1);
    record1.value("This is the first version").save();

    // RE-READ THE RECORD
    record1.reload();
    ORecordFlat record2 = db2.load(record1.getIdentity());

    record2.value("This is the second version").save();
    record2.value("This is the third version").save();

    record1.reload(null, 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.