ODatabaseRecordThreadLocal.INSTANCE.set(this);
}
protected void installHooks() {
registerHook(new OClassTrigger(), ORecordHook.HOOK_POSITION.FIRST);
registerHook(new ORestrictedAccessHook(), ORecordHook.HOOK_POSITION.FIRST);
registerHook(new OUserTrigger(), ORecordHook.HOOK_POSITION.EARLY);
registerHook(new OFunctionTrigger(), ORecordHook.HOOK_POSITION.REGULAR);
registerHook(new OClassIndexManager(), ORecordHook.HOOK_POSITION.LAST);
registerHook(new OSchedulerTrigger(), ORecordHook.HOOK_POSITION.LAST);
registerHook(new ORidBagDeleteHook(), ORecordHook.HOOK_POSITION.LAST);