public class OSystemDatabase extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SERVER_ID_PROPERTY |
static String |
SERVER_INFO_CLASS |
static String |
SYSTEM_DB_NAME |
Constructor and Description |
---|
OSystemDatabase(OrientDBInternal context) |
Modifier and Type | Method and Description |
---|---|
void |
createCluster(String className,
String clusterName)
Adds the specified cluster to the class, if it doesn't already exist.
|
Object |
execute(OCallable<Object,OResultSet> callback,
String sql,
Object... args) |
void |
executeInDBScope(OCallable<Void,ODatabaseSession> callback) |
<T> T |
executeWithDB(OCallable<T,ODatabaseSession> callback) |
boolean |
exists() |
String |
getServerId() |
String |
getSystemDatabaseName() |
ODatabaseDocumentInternal |
openSystemDatabase()
Opens the System Database and returns an ODatabaseDocumentInternal object.
|
ODocument |
save(ODocument document) |
ODocument |
save(ODocument document,
String clusterName) |
public static final String SYSTEM_DB_NAME
public static final String SERVER_INFO_CLASS
public static final String SERVER_ID_PROPERTY
public OSystemDatabase(OrientDBInternal context)
public String getSystemDatabaseName()
public void createCluster(String className, String clusterName)
public ODatabaseDocumentInternal openSystemDatabase()
public void executeInDBScope(OCallable<Void,ODatabaseSession> callback)
public <T> T executeWithDB(OCallable<T,ODatabaseSession> callback)
public boolean exists()
public String getServerId()
Copyright © 2009–2020 OrientDB. All rights reserved.