Skip to content

Instantly share code, notes, and snippets.

@giastfader
Created September 12, 2012 20:23
Show Gist options
  • Select an option

  • Save giastfader/3709615 to your computer and use it in GitHub Desktop.

Select an option

Save giastfader/3709615 to your computer and use it in GitHub Desktop.
OrientDB: obtain the list of defined classes
OGraphDatabase db = OGraphDatabase ((ODatabaseRecordTx)ODatabaseRecordThreadLocal.INSTANCE.get());
Collection<OClass> classes;
classes = db.getMetadata().getSchema().getClasses();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment