code: public OClass setSuperClass(final OClass iSuperClass) {
      getDatabase().checkSecurity(ODatabaseSecurityResources.SCHEMA, ORole.PERMISSION_UPDATE);
      final String cmd = String.format("alter class %s superclass %s", name, iSuperClass.getName());
      getDatabase().command(new OCommandSQL(cmd)).execute();
      setSuperClassInternal(iSuperClass);
      return this;
    }
docs: Set the super class.
  
  @param iSuperClass
  Super class as OClass instance
  @return the object itself.