graphdb/src/main/java/com/tinkerpop/blueprints/impls/orient/OrientGraphFactory.java
public boolean exists() {
    final ODatabaseDocument db = getDatabase(false, false);
    try {
      return db.exists();
    } finally {
      db.close();
    }
  }
public boolean exists() {
    final ODatabaseDocument db = getDatabase(false, false);
    try {
      return db.exists();
    } finally {
      db.close();
    }
  }
Check if the database with path given to the factory exists.
<p>
this api can be used only in embedded mode, and has no need of authentication.

@return true if database is exists