
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(OServer server) |
| 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(com.orientechnologies.common.util.OCallable<Object,Object> callback,
String sql,
Object... args) |
void |
executeInDBScope(com.orientechnologies.common.util.OCallable<Void,ODatabase> callback) |
<T> T |
executeWithDB(com.orientechnologies.common.util.OCallable<T,ODatabase> callback) |
boolean |
exists() |
String |
getServerId() |
String |
getSystemDatabaseName() |
String |
getSystemDatabasePath() |
ODatabaseDocumentInternal |
openSystemDatabase()
Opens the System Database and returns an ODatabaseDocumentInternal object.
|
com.orientechnologies.orient.core.record.impl.ODocument |
save(com.orientechnologies.orient.core.record.impl.ODocument document) |
com.orientechnologies.orient.core.record.impl.ODocument |
save(com.orientechnologies.orient.core.record.impl.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(OServer server)
public String getSystemDatabaseName()
public String getSystemDatabasePath()
public void createCluster(String className, String clusterName)
public ODatabaseDocumentInternal openSystemDatabase()
public Object execute(com.orientechnologies.common.util.OCallable<Object,Object> callback, String sql, Object... args)
public com.orientechnologies.orient.core.record.impl.ODocument save(com.orientechnologies.orient.core.record.impl.ODocument document)
public com.orientechnologies.orient.core.record.impl.ODocument save(com.orientechnologies.orient.core.record.impl.ODocument document,
String clusterName)
public void executeInDBScope(com.orientechnologies.common.util.OCallable<Void,ODatabase> callback)
public <T> T executeWithDB(com.orientechnologies.common.util.OCallable<T,ODatabase> callback)
public boolean exists()
public String getServerId()
Copyright © 2009–2018 OrientDB. All rights reserved.