Examples of UpdateOperation


Examples of org.openengsb.core.edbi.jdbc.operation.UpdateOperation

        testModelB.setTestInteger(43);

        IndexCommit updateCommit = mock(IndexCommit.class);
        when(updateCommit.getTimestamp()).thenReturn(new Date(84));
        engine.execute(new UpdateOperation(updateCommit, testIndex,
            new ArrayList(Arrays.asList(testModelA, testModelB))));

        try (ResultSet rs = connection.createStatement().executeQuery("SELECT * FROM HEAD_TABLE")) {
            assertTrue(rs.next());
            assertEquals("A", rs.getString("TESTID"));
View Full Code Here

Examples of org.openengsb.core.edbi.jdbc.operation.UpdateOperation

                schemaMapper.execute(new InsertOperation(commit, index, inserts));
            }

            List<OpenEngSBModel> updates = commit.getUpdates().get(modelClass);
            if (!isEmpty(updates)) {
                schemaMapper.execute(new UpdateOperation(commit, index, updates));
            }

            List<OpenEngSBModel> deletes = commit.getDeletes().get(modelClass);
            if (!isEmpty(deletes)) {
                schemaMapper.execute(new DeleteOperation(commit, index, deletes));
View Full Code Here

Examples of org.structr.web.diff.UpdateOperation

          case 4// NOT same tree index, NOT same node, same content (4) => different node, content is equal by chance?
            break;

          case 3: // same tree index, same node, NOT same content => node was modified but not moved
            changeSet.add(new UpdateOperation(hashMappedExistingNodes, existingNode, newNode));
            break;

          case 2// NOT same tree index, same node (2), NOT same content => node was moved and changed
            newParent  = newNode.getProperty(DOMNode.parent);
            changeSet.add(new UpdateOperation(hashMappedExistingNodes, existingNode, newNode));
            changeSet.add(new MoveOperation(hashMappedExistingNodes, getHashOrNull(newParent), getSiblingHashes(newNode), newNode, existingNode));
            break;

          case 1// same tree index (1), NOT same node, NOT same content => ignore
            break;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.