// Path: driver/src/main/java/org/apache/tinkerpop/gremlin/orientdb/OrientGraph.java
// public static final String CONFIG_PASS = "orient-pass";
// 
// Path: driver/src/main/java/org/apache/tinkerpop/gremlin/orientdb/OrientGraph.java
// public static final String CONFIG_URL = "orient-url";
// 
// Path: driver/src/main/java/org/apache/tinkerpop/gremlin/orientdb/OrientGraph.java
// public static final String CONFIG_USER = "orient-user";


import static org.apache.tinkerpop.gremlin.orientdb.OrientGraph.CONFIG_PASS;
import static org.apache.tinkerpop.gremlin.orientdb.OrientGraph.CONFIG_URL;
import static org.apache.tinkerpop.gremlin.orientdb.OrientGraph.CONFIG_USER;
import org.apache.commons.configuration.BaseConfiguration;
import org.apache.commons.configuration.Configuration;
package org.apache.tinkerpop.gremlin.orientdb;



/** OrientFactory is used to open a new OrientStandardGraph */
public class OrientFactory {

  /**
   * Opens a {@link OGraph} in-memory database
   *
   * @return OGraph database
   */
  public static OrientStandardGraph open() {
    return open("memory:orientdb-" + Math.random(), "admin", "admin");
  }

  /**
   * Opens a {@link OGraph}
   *
   * @param url URL for the specific database
   * @return OGraph database
   */
  public static OrientStandardGraph open(String url) {
    return open(url, "admin", "admin");
  }

  /**
   * Opens a {@link OGraph}
   *
   * @param url URL for the specific database
   * @param user username of a database user or a server user allowed to open the database
   * @param password related to the specified username
   * @return OGraph database
   */
  public static OrientStandardGraph open(String url, String user, String password) {
    BaseConfiguration configuration = new BaseConfiguration();
    configuration.setProperty(CONFIG_URL, url);
// Path: driver/src/main/java/org/apache/tinkerpop/gremlin/orientdb/OrientGraph.java
// public static final String CONFIG_PASS = "orient-pass";
// 
// Path: driver/src/main/java/org/apache/tinkerpop/gremlin/orientdb/OrientGraph.java
// public static final String CONFIG_URL = "orient-url";
// 
// Path: driver/src/main/java/org/apache/tinkerpop/gremlin/orientdb/OrientGraph.java
// public static final String CONFIG_USER = "orient-user";


// Path: driver/src/main/java/org/apache/tinkerpop/gremlin/orientdb/OrientFactory.java
import static org.apache.tinkerpop.gremlin.orientdb.OrientGraph.CONFIG_PASS;
import static org.apache.tinkerpop.gremlin.orientdb.OrientGraph.CONFIG_URL;
import static org.apache.tinkerpop.gremlin.orientdb.OrientGraph.CONFIG_USER;
import org.apache.commons.configuration.BaseConfiguration;
import org.apache.commons.configuration.Configuration;

package org.apache.tinkerpop.gremlin.orientdb;



/** OrientFactory is used to open a new OrientStandardGraph */
public class OrientFactory {

  /**
   * Opens a {@link OGraph} in-memory database
   *
   * @return OGraph database
   */
  public static OrientStandardGraph open() {
    return open("memory:orientdb-" + Math.random(), "admin", "admin");
  }

  /**
   * Opens a {@link OGraph}
   *
   * @param url URL for the specific database
   * @return OGraph database
   */
  public static OrientStandardGraph open(String url) {
    return open(url, "admin", "admin");
  }

  /**
   * Opens a {@link OGraph}
   *
   * @param url URL for the specific database
   * @param user username of a database user or a server user allowed to open the database
   * @param password related to the specified username
   * @return OGraph database
   */
  public static OrientStandardGraph open(String url, String user, String password) {
    BaseConfiguration configuration = new BaseConfiguration();
    configuration.setProperty(CONFIG_URL, url);
    configuration.setProperty(CONFIG_USER, user);