
public class OGraphCommandExecutorSQLFactory extends Object implements OCommandExecutorSQLFactory
| Modifier and Type | Class and Description |
|---|---|
static class |
OGraphCommandExecutorSQLFactory.GRAPH_CONSISTENCY_MODE |
static interface |
OGraphCommandExecutorSQLFactory.GraphCallBack<T> |
| Constructor and Description |
|---|
OGraphCommandExecutorSQLFactory() |
public static OrientGraph getGraph(boolean autoStartTx, OModifiableBoolean shouldBeShutDown)
autoStartTx - Whether returned graph will start transaction before each operation till commit automatically or user should do it
explicitly be calling OrientBaseGraph.getRawGraph() method ODatabaseDocumentTx.begin().public static OrientGraphNoTx getGraphNoTx(OModifiableBoolean shouldBeShutDown)
public static OrientBaseGraph getAnyGraph(OModifiableBoolean shouldBeShutDown)
public static <T> T runInTx(OrientGraph graph, OGraphCommandExecutorSQLFactory.GraphCallBack<T> callBack)
public static <T> T runInTx(OGraphCommandExecutorSQLFactory.GraphCallBack<T> callBack)
public static <T> T runWithAnyGraph(OGraphCommandExecutorSQLFactory.GraphCallBack<T> callBack)
public static ODatabaseDocument getDatabase()
public Set<String> getCommandNames()
getCommandNames in interface OCommandExecutorSQLFactorypublic OCommandExecutorSQLAbstract createCommand(String name) throws OCommandExecutionException
createCommand in interface OCommandExecutorSQLFactoryOCommandExecutionException - : when command creation failpublic static <T> T runInConfiguredTxMode(OGraphCommandExecutorSQLFactory.GraphCallBack<T> callBack)
public static boolean isTxRequiredForSQLGraphOperations()
public static OGraphCommandExecutorSQLFactory.GRAPH_CONSISTENCY_MODE getConsistencyMode(OrientBaseGraph graph)
protected static boolean canReuseActiveGraph(ODatabaseDocument iGraphDatabase, ODatabaseDocument iThreadLocalDatabase)
Copyright © 2009–2025 OrientDB. All rights reserved.