Package com.orientechnologies.orient.core.hook.ORecordHook

Examples of com.orientechnologies.orient.core.hook.ORecordHook.RESULT


        if (stream != null && stream.length > 0) {
          if (iCallTriggers) {
            final TYPE triggerType = wasNew ? TYPE.BEFORE_CREATE : TYPE.BEFORE_UPDATE;

            final RESULT hookResult = callbackHooks(triggerType, record);
            if (hookResult == RESULT.RECORD_CHANGED)
              stream = updateStream(record);
            else if (hookResult == RESULT.SKIP_IO)
              return (RET) record;
            else if (hookResult == RESULT.RECORD_REPLACED)
View Full Code Here


        case RUNNING_DISTRIBUTED:
          if (hook.getDistributedExecutionMode() == DISTRIBUTED_EXECUTION_MODE.SOURCE_NODE)
            continue;
        }

        final RESULT res = hook.onTrigger(iType, rec);

        if (res == RESULT.RECORD_CHANGED)
          recordChanged = true;
        else if (res == RESULT.SKIP_IO)
          // SKIP IO OPERATION
View Full Code Here

TOP

Related Classes of com.orientechnologies.orient.core.hook.ORecordHook.RESULT

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.