Examples of ODatabaseDocumentTx


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

@SuppressWarnings("unchecked")
public class OServerCommandPostStudio extends OServerCommandAuthenticatedDbAbstract {
  private static final String[]  NAMES  = { "POST|studio/*" };

  public boolean execute(final OHttpRequest iRequest) throws Exception {
    ODatabaseDocumentTx db = null;

    try {
      final String[] urlParts = checkSyntax(iRequest.url, 3, "Syntax error: studio/<database>/<context>");

      db = getProfiledDatabaseInstance(iRequest);
View Full Code Here

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

  protected ODatabaseDocumentTx openDatabase(final String iDbUrl, final String iUser, final String iPassword)
      throws InterruptedException {
    final String path = OServerMain.server().getStoragePath(iDbUrl);

    connection.database = new ODatabaseDocumentTx(path);

    if (connection.database.isClosed())
      if (connection.database.getStorage() instanceof OStorageMemory)
        connection.database.create();
      else
View Full Code Here

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

    } else if (iStorageMode.equals(OEngineMemory.NAME)) {
      path = iStorageMode + ":" + iDbName;
    } else
      throw new IllegalArgumentException("Can't create database: storage mode '" + iStorageMode + "' is not supported.");

    return new ODatabaseDocumentTx(path);
  }
View Full Code Here

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

        type = stg.path.substring(0, stg.path.indexOf(':'));

        ODatabaseDocument db = null;
        try {
          db = new ODatabaseDocumentTx(stg.path);

          if (db.exists())
            db.open(stg.userName, stg.userPassword);
          else
            db.create();
View Full Code Here

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

public class SecurityTest {
  private ODatabaseDocumentTx  database;

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

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

  @Parameters(value = "url")
  public FullTextIndexTest(String iURL) {
    Orient.instance().registerEngine(new OEngineRemote());

    database = new ODatabaseDocumentTx(iURL);
    words = TEXT.split(" ");
  }
View Full Code Here

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

  @Override
  public void init() {
    OProfiler.getInstance().startRecording();

    database = new ODatabaseDocumentTx(System.getProperty("url")).open("admin", "admin");
    record = database.newInstance();

    database.declareIntent(new OIntentMassiveInsert());
    database.begin(TXTYPE.NOTX);
  }
View Full Code Here

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

    TestUtils.createDatabase(new ODatabaseObjectTx(url), url);
  }

  @Test(dependsOnMethods = { "testDbCreationDefault" })
  public void testDbExists() throws IOException {
    Assert.assertTrue(TestUtils.existsDatabase(new ODatabaseDocumentTx(url)));
  }
View Full Code Here

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

  protected int                resultCount  = 0;
  private ODatabaseDocumentTx  database;

  public SQLAsynchQuerySpeedTest(String iURL) {
    super(1);
    database = new ODatabaseDocumentTx(iURL);
  }
View Full Code Here

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

public class GEOTest {
  private ODatabaseDocument  database;

  @Parameters(value = "url")
  public GEOTest(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.