@Test public void testUpdate() throws Exception { mv.create(context); mv.update(context); }
public void update(Context context) throws SQLException, AuthorizeException { row.setColumn("item_id", itemId); row.setColumn("metadata_field_id", fieldId); row.setColumn("text_value", value); row.setColumn("text_lang", language); row.setColumn("place", place); row.setColumn("authority", authority); row.setColumn("confidence", confidence); DatabaseManager.update(context, row); log.info(LogManager.getHeader(context, "update_metadatavalue", "metadata_value_id=" + getValueId())); }
MetadataValue { public void update(Context context) throws SQLException, AuthorizeException { row.setColumn("item_id", itemId); row.setColumn("metadata_field_id", fieldId); row.setColumn("text_value", value); row.setColumn("text_lang", language); row.setColumn("place", place); row.setColumn("authority", authority); row.setColumn("confidence", confidence); DatabaseManager.update(context, row); log.info(LogManager.getHeader(context, "update_metadatavalue", "metadata_value_id=" + getValueId())); } }
MetadataValue { public void update(Context context) throws SQLException, AuthorizeException { row.setColumn("item_id", itemId); row.setColumn("metadata_field_id", fieldId); row.setColumn("text_value", value); row.setColumn("text_lang", language); row.setColumn("place", place); row.setColumn("authority", authority); row.setColumn("confidence", confidence); DatabaseManager.update(context, row); log.info(LogManager.getHeader(context, "update_metadatavalue", "metadata_value_id=" + getValueId())); } MetadataValue(TableRow row);  MetadataValue();  MetadataValue(MetadataField field); }
MetadataValue { public void update(Context context) throws SQLException, AuthorizeException { row.setColumn("item_id", itemId); row.setColumn("metadata_field_id", fieldId); row.setColumn("text_value", value); row.setColumn("text_lang", language); row.setColumn("place", place); row.setColumn("authority", authority); row.setColumn("confidence", confidence); DatabaseManager.update(context, row); log.info(LogManager.getHeader(context, "update_metadatavalue", "metadata_value_id=" + getValueId())); } MetadataValue(TableRow row);  MetadataValue();  MetadataValue(MetadataField field); int getFieldId(); void setFieldId(int fieldId); int getItemId(); void setItemId(int itemId); String getLanguage(); void setLanguage(String language); int getPlace(); void setPlace(int place); int getValueId(); String getValue(); void setValue(String value); String getAuthority(); void setAuthority(String value); int getConfidence(); void setConfidence(int value); void create(Context context); static MetadataValue find(Context context, int valueId); static List<MetadataValue> findByField(Context context, int fieldId); void update(Context context); void delete(Context context); @Override boolean equals(Object obj); @Override int hashCode(); }
MetadataValue { public void update(Context context) throws SQLException, AuthorizeException { row.setColumn("item_id", itemId); row.setColumn("metadata_field_id", fieldId); row.setColumn("text_value", value); row.setColumn("text_lang", language); row.setColumn("place", place); row.setColumn("authority", authority); row.setColumn("confidence", confidence); DatabaseManager.update(context, row); log.info(LogManager.getHeader(context, "update_metadatavalue", "metadata_value_id=" + getValueId())); } MetadataValue(TableRow row);  MetadataValue();  MetadataValue(MetadataField field); int getFieldId(); void setFieldId(int fieldId); int getItemId(); void setItemId(int itemId); String getLanguage(); void setLanguage(String language); int getPlace(); void setPlace(int place); int getValueId(); String getValue(); void setValue(String value); String getAuthority(); void setAuthority(String value); int getConfidence(); void setConfidence(int value); void create(Context context); static MetadataValue find(Context context, int valueId); static List<MetadataValue> findByField(Context context, int fieldId); void update(Context context); void delete(Context context); @Override boolean equals(Object obj); @Override int hashCode(); public String value; public String language; public int place; public String authority; public int confidence; }