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 ; }
Set the super class .