Package org.openengsb.core.edbi.jdbc.operation

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(testModelB))));

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


        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

                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

TOP

Related Classes of org.openengsb.core.edbi.jdbc.operation.UpdateOperation

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.