@Test public void testService_Update() throws Exception { createDatabase(); populateDatabase(); UpsertProperties service = configureForTests(createService()).withRowsAffectedMetadataKey("rowsUpdated"); service.setIdField(ID_ELEMENT_VALUE); AdaptrisMessage msg = AdaptrisMessageFactory.getDefaultInstance().newMessage(CONTENT); ExampleServiceCase.execute(service, msg); assertTrue(msg.headersContainsKey("rowsUpdated")); assertEquals("1", msg.getMetadataValue("rowsUpdated")); doAssert(1); checkDob(ALICE, DOB); }
public void setIdField(String elem) { this.idField = elem; }
JdbcMapUpsert extends JdbcMapInsert { public void setIdField(String elem) { this.idField = elem; } }
JdbcMapUpsert extends JdbcMapInsert { public void setIdField(String elem) { this.idField = elem; } JdbcMapUpsert(); }
JdbcMapUpsert extends JdbcMapInsert { public void setIdField(String elem) { this.idField = elem; } JdbcMapUpsert(); String getIdField(); void setIdField(String elem); T withId(String elem); }
JdbcMapUpsert extends JdbcMapInsert { public void setIdField(String elem) { this.idField = elem; } JdbcMapUpsert(); String getIdField(); void setIdField(String elem); T withId(String elem); static final String DEFAULT_ID_FIELD; }