Examples of DeleteOperation


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

        engine.execute(new InsertOperation(commit, testIndex, new ArrayList(Arrays.asList(testModelA, testModelB))));

        IndexCommit deleteCommit = mock(IndexCommit.class);
        when(deleteCommit.getTimestamp()).thenReturn(new Date(84));

        engine.execute(new DeleteOperation(deleteCommit, testIndex, new ArrayList(Arrays.asList(testModelB))));

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

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

                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.DeleteOperation

      final String existingHash                      = existingNode.getIdHash();

      // check for deleted nodes ignoring Page nodes
      if (!hashMappedNewNodes.containsKey(existingHash) && !(existingNode instanceof Page)) {

        changeSet.add(new DeleteOperation(hashMappedExistingNodes, existingNode));
      }
    }

    // iterate over new nodes and try to find new ones
    for (final Iterator<Map.Entry<String, DOMNode>> it = indexMappedNewNodes.entrySet().iterator(); it.hasNext();) {
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.