OrientGraph implements OGraph { public void drop() { factory.drop(); } OrientGraph(
      OrientGraphBaseFactory factory,
      final ODatabaseDocument database,
      final Configuration configuration,
      final String user,
      final String password);  OrientGraph(final OrientGraphBaseFactory factory, final Configuration configuration);  OrientGraph(
      final OrientGraphBaseFactory factory,
      final Configuration configuration,
      boolean closeFactory); static OrientGraph open(); static OrientGraph open(String url); static OrientGraph open(String url, String user, String password); static OrientGraph open(final Configuration config); Features features(); ODatabaseDocument database(); void makeActive(); @Override Vertex addVertex(Object... keyValues); OGremlinResultSet executeSql(String sql, Object... params); OGremlinResultSet executeSql(String sql, Map params); OGremlinResultSet querySql(String sql, Object... params); OGremlinResultSet querySql(String sql, Map params); OGremlinResultSet execute(String language, String script, Map params); @Deprecated Object executeCommand(OCommandRequest command); @Override C compute(Class<C> graphComputerClass); @Override GraphComputer compute(); @Override OElementFactory elementFactory(); @Override Iterator<Vertex> vertices(Object... vertexIds); String labelToClassName(String label, String prefix); String classNameToLabel(String className); T executeWithRetry(int nRetries, Function<OrientGraph, T> function); Stream<OrientVertex> getIndexedVertices(OIndex index, Iterator<Object> valueIter); Stream<OrientEdge> getIndexedEdges(OIndex index, Iterator<Object> valueIter); Set<String> getIndexedKeys(String className); Set<String> getIndexedKeys(final Class<? extends Element> elementClass, String label); Set<String> getIndexedKeys(final Class<? extends Element> elementClass); Set<String> getVertexIndexedKeys(final String label); Set<String> getEdgeIndexedKeys(final String label); @Override Iterator<Edge> edges(Object... edgeIds); @Override OrientTransaction tx(); void drop(); boolean isClosed(); void begin(); void commit(); void rollback(); @Override Variables variables(); @Override Configuration configuration(); @Override void close(); String createVertexClass(final String label); String createEdgeClass(final String label); void createClass(final String className, final String superClassName); @Override boolean existClass(String label); void createClass(final String className, final OClass superClass); ODatabaseDocument getRawDatabase(); void createVertexIndex(
      final String key, final String label, final Configuration configuration); void createEdgeIndex(
      final String key, final String label, final Configuration configuration); RET execute(
      final OCallable<RET, OrientGraph> iCallable, final String... iOperationStrings); @Override I io(Io.Builder<I> builder); @Override String toString(); void setElementFactory(OElementFactory elementFactory); static final String CONFIG_URL; static final String CONFIG_DB_NAME; static final String CONFIG_DB_TYPE; static final String CONFIG_USER; static final String CONFIG_PASS; static final String CONFIG_CREATE; static final String CONFIG_OPEN; static final String CONFIG_TRANSACTIONAL; static final String CONFIG_POOL_SIZE; static final String CONFIG_MAX_PARTITION_SIZE; static final String CONFIG_LABEL_AS_CLASSNAME; }
@Test public void checkMemoryDrop() { OrientDB orientDB = new OrientDB("embedded:", OrientDBConfig.defaultConfig()); OrientGraphFactory factory = new OrientGraphFactory(orientDB, "_dropDB", ODatabaseType.MEMORY, "admin", "admin"); factory.getNoTx(); Assert.assertEquals(true, orientDB.exists("_dropDB")); factory.drop(); }