Beispiel #1
0
  private void dropClassIndexes(final OClass cls) {
    final ODatabaseDocument database = getDatabase();
    final OIndexManager indexManager = database.getMetadata().getIndexManager();

    for (final OIndex<?> index : indexManager.getClassIndexes(cls.getName()))
      indexManager.dropIndex(index.getName());
  }
 @Override
 protected OIndex<?> loadInstance() {
   OClass oClass = classModel != null ? classModel.getObject() : null;
   OIndexManager indexManager =
       OrientDbWebSession.get().getDatabase().getMetadata().getIndexManager();
   return oClass != null
       ? indexManager.getClassIndex(oClass.getName(), indexName)
       : indexManager.getIndex(indexName);
 }