Package com.orientechnologies.orient.core.tx

Examples of com.orientechnologies.orient.core.tx.OTransactionEntry


              + servers.field("owner"));
        }
        break;

      case AFTER_CREATE:
        manager.distributeRequest(new OTransactionEntry((ORecordInternal<?>) iRecord, OTransactionEntry.CREATED, null));
        break;

      case AFTER_UPDATE:
        manager.distributeRequest(new OTransactionEntry((ORecordInternal<?>) iRecord, OTransactionEntry.UPDATED, null));
        break;

      case AFTER_DELETE:
        manager.distributeRequest(new OTransactionEntry((ORecordInternal<?>) iRecord, OTransactionEntry.DELETED, null));
        break;
      }
    } catch (IOException e) {
      throw new ODistributedSynchronizationException("Error on distribution of the record to the configured cluster", e);
    }
View Full Code Here


        bufferedChanges.clear();
        databases.clear();
      } else {
        try {
          // CHECK IF ANOTHER REQUEST FOR THE SAME RECORD ID HAS BEEN ALREADY BUFFERED
          OTransactionEntry entry;
          for (int i = 0; i < bufferedChanges.size(); ++i) {
            entry = bufferedChanges.get(i);

            if (entry.getRecord().getIdentity().equals(iRequest.getRecord().getIdentity())) {
              // FOUND: REPLACE IT
              bufferedChanges.set(i, iRequest);
              return;
            }
          }
View Full Code Here

TOP

Related Classes of com.orientechnologies.orient.core.tx.OTransactionEntry

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.