public class OGraphCommandExecutorSQLFactory extends Object implements OCommandExecutorSQLFactory
| Modifier and Type | Class and Description |
|---|---|
static interface |
OGraphCommandExecutorSQLFactory.GraphCallBack<T> |
| Constructor and Description |
|---|
OGraphCommandExecutorSQLFactory() |
| Modifier and Type | Method and Description |
|---|---|
OCommandExecutorSQLAbstract |
createCommand(String name) |
Set<String> |
getCommandNames() |
static ODatabaseRecord |
getDatabase() |
static OrientGraph |
getGraph(boolean autoStartTx)
Returns a Transactional OrientGraph implementation from the current database in thread local.
|
static OrientBaseGraph |
getNoTxGraph()
Returns a Non Transactional OrientGraph implementation from the current database in thread local.
|
static <T> T |
runInTx(OGraphCommandExecutorSQLFactory.GraphCallBack<T> callBack) |
static <T> T |
runInTx(OrientGraph graph,
OGraphCommandExecutorSQLFactory.GraphCallBack<T> callBack) |
public static OrientGraph getGraph(boolean autoStartTx)
autoStartTx - Whether returned graph will start transaction before each operation till commit automatically or user should do it
explicitly be calling OrientBaseGraph.getRawGraph() method ODatabaseRecordWrapperAbstract.begin().public static OrientBaseGraph getNoTxGraph()
public static <T> T runInTx(OrientGraph graph, OGraphCommandExecutorSQLFactory.GraphCallBack<T> callBack)
public static <T> T runInTx(OGraphCommandExecutorSQLFactory.GraphCallBack<T> callBack)
public static ODatabaseRecord getDatabase()
public Set<String> getCommandNames()
getCommandNames in interface OCommandExecutorSQLFactorypublic OCommandExecutorSQLAbstract createCommand(String name) throws OCommandExecutionException
createCommand in interface OCommandExecutorSQLFactoryOCommandExecutionExceptionCopyright © 2009-2014 Orient Technologies. All Rights Reserved.