OMetadata

Interface used to store database metadata, such as the function library, schema and security.

Using OMetadata

OrientDB stores metadata on the database. You can retrieve it from ODatabaseSession or ODatabaseDocument using the getMetadata() method. In order to use it in your code, you also need to import the class where relevant.

import com.orientechnologies.orient.core.metadata.OMetadata;

Methods

MethodReturn TypeDescription
getFunctionLibrary()OFunctionLibraryRetrieves the database function library
getSchema()OSchemaRetrieves the database schema