Examples of ODatabaseDocumentTx


Examples of com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx

  private ODatabaseDocument  database;

  @Parameters(value = "url")
  public SQLSelectProjectionsTest(String iURL) {
    url = iURL;
    database = new ODatabaseDocumentTx(iURL);
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx

  private ODocument            record;
  private ODocument            account;

  @Parameters(value = "url")
  public CRUDDocumentValidationTest(String iURL) {
    database = new ODatabaseDocumentTx(iURL);
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx

  private ODatabaseDocument  database;
  private ODocument          record;

  @Parameters(value = "url")
  public NativeQueryTest(String iURL) {
    database = new ODatabaseDocumentTx(iURL);
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx

public class SQLCreateLinkTest {
  private ODatabaseDocument  database;

  @Parameters(value = "url")
  public SQLCreateLinkTest(String iURL) {
    database = new ODatabaseDocumentTx(iURL);
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx

  private String            url;

  @Parameters(value = "url")
  public SQLDeleteTest(String iURL) {
    url = iURL;
    database = new ODatabaseDocumentTx(iURL);
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx

    database.close();
  }

  @Test
  public void deleteInPool() {
    ODatabaseDocumentTx db = ODatabaseDocumentPool.global().acquire(url, "admin", "admin");

    final Long total = db.countClass("Profile");

    final List<ODocument> resultset = db.query(new OSQLSynchQuery<Object>(
        "select from Profile where sex = 'male' and salary > 120 and salary <= 133"));

    final Number records = (Number) db.command(
        new OCommandSQL("delete from Profile where sex = 'male' and salary > 120 and salary <= 133")).execute();

    Assert.assertEquals(records.intValue(), resultset.size());

    Assert.assertEquals(db.countClass("Profile"), total - records.intValue());

    db.close();
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx

public class WrongQueryTest {
  private ODatabaseDocument  database;

  @Parameters(value = "url")
  public WrongQueryTest(String iURL) {
    database = new ODatabaseDocumentTx(iURL);
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx

  }

  @Parameters(value = "url")
  public DbListenerTest(String iURL) {
    dbUrl = iURL;
    database = new ODatabaseDocumentTx(iURL);
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx

    testPath = iTestPath;
    OProfiler.getInstance().startRecording();
  }

  public void testDbDelete() throws IOException {
    new ODatabaseDocumentTx("local:" + testPath + "/" + DbImportExportTest.NEW_DB_URL).delete();

    Assert.assertFalse(new File(testPath + "/" + DbImportExportTest.NEW_DB_PATH).exists());
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx

public class SQLInsertTest {
  private ODatabaseDocument  database;

  @Parameters(value = "url")
  public SQLInsertTest(String iURL) {
    database = new ODatabaseDocumentTx(iURL);
  }
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.