@Test public void testContentBodySave() { String identifier = "test_content"; String body = "test_content_body"; contentStore.updateContentBody(identifier, body); ResultSet resultSet = getSession().execute( "SELECT content_id, blobAsText(body) as body FROM " + keyspace + "." + table + " WHERE content_id='" + identifier + "';"); List<Row> rows = resultSet.all(); int count = rows.size(); Assert.assertTrue(count == 1); Row row = rows.get(0); Assert.assertTrue(identifier.equals(row.getString("content_id"))); Assert.assertTrue(body.equals(row.getString("body"))); }
public void updateContentBody(String contentId, String body) { updateContentProperty(contentId, "body", body); }
ContentStore extends CassandraStore { public void updateContentBody(String contentId, String body) { updateContentProperty(contentId, "body", body); } }
ContentStore extends CassandraStore { public void updateContentBody(String contentId, String body) { updateContentProperty(contentId, "body", body); } ContentStore(); }
ContentStore extends CassandraStore { public void updateContentBody(String contentId, String body) { updateContentProperty(contentId, "body", body); } ContentStore(); void updateContentBody(String contentId, String body); void updateContentOldBody(String contentId, String body); String getContentBody(String contentId); String getContentProperty(String contentId, String property); Map<String, Object> getContentProperties(String contentId, List<String> properties); void updateContentProperty(String contentId, String property, String value); void updateContentProperties(String contentId, Map<String, Object> map); }
ContentStore extends CassandraStore { public void updateContentBody(String contentId, String body) { updateContentProperty(contentId, "body", body); } ContentStore(); void updateContentBody(String contentId, String body); void updateContentOldBody(String contentId, String body); String getContentBody(String contentId); String getContentProperty(String contentId, String property); Map<String, Object> getContentProperties(String contentId, List<String> properties); void updateContentProperty(String contentId, String property, String value); void updateContentProperties(String contentId, Map<String, Object> map);  }