Class OSystemDatabase

java.lang.Object
com.orientechnologies.orient.core.db.OSystemDatabase

public class OSystemDatabase extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getSystemDatabaseName

      public String getSystemDatabaseName()
    • createCluster

      public void createCluster(String className, String clusterName)
      Adds the specified cluster to the class, if it doesn't already exist.
    • openSystemDatabase

      public ODatabaseDocumentInternal openSystemDatabase()
      Opens the System Database and returns an ODatabaseDocumentInternal object. The caller is responsible for retrieving any ThreadLocal-stored database before openSystemDatabase() is called and restoring it after the database is closed.
    • execute

      public Object execute(OCallable<Object,OResultSet> callback, String sql, Object... args)
    • save

      public ODocument save(ODocument document)
    • save

      public ODocument save(ODocument document, String clusterName)
    • init

      public void init()
    • executeInDBScope

      public void executeInDBScope(OCallable<Void,ODatabaseSession> callback)
    • executeWithDB

      public <T> T executeWithDB(OCallable<T,ODatabaseSession> callback)
    • exists

      public boolean exists()
    • getServerId

      public String getServerId()