public class OrientGraphFactoryV2 extends Object
Constructor and Description |
---|
OrientGraphFactoryV2(OrientDB orientDB,
String dbName,
String username,
String password) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes all pooled databases and clear the pool.
|
void |
drop()
Drops current database if such one exists.
|
boolean |
exists()
Check if the database with path given to the factory exists.
|
OrientGraphNoTx |
getNoTx()
Gets non transactional graph with the database from pool if pool is configured.
|
OrientGraph |
getTx()
Gets transactional graph with the database from pool if pool is configured.
|
public void close()
public void drop()
public OrientGraph getTx()
public OrientGraphNoTx getNoTx()
public boolean exists()
this api can be used only in embedded mode, and has no need of authentication.
Copyright © 2009–2020 OrientDB. All rights reserved.