core/src/main/java/com/orientechnologies/orient/core/db/document/ODatabaseDocumentAbstract.java
public <DB extends ODatabase<?>> DB unregisterHook(final ORecordHook iHookImpl) {
    checkIfActive();
    if (iHookImpl != null) {
      iHookImpl.onUnregister();
      hooks.remove(iHookImpl);
      compileHooks();
    }

    return (DB) this;
  }
public <DB extends ODatabase<?>> DB unregisterHook(final ORecordHook iHookImpl) {
    checkIfActive();
    if (iHookImpl != null) {
      iHookImpl.onUnregister();
      hooks.remove(iHookImpl);
      compileHooks();
    }

    return (DB) this;
  }
public < DB extends ODatabase < ? > > DB unregisterHook ( final ORecordHook iHookImpl ) { checkIfActive ( ) ; if ( iHookImpl != null ) { iHookImpl . onUnregister ( ) ; hooks . remove ( iHookImpl ) ; compileHooks ( ) ; } return ( DB ) this ; }
{@inheritDoc}
{