@Test public void testDatasetGetValue() throws ColumnNotFoundException { assertEquals("override1", sender.get("Rolle")); assertEquals("value2", sender.get("Vorname")); assertEquals("value3", sender.get("Nachname")); assertEquals(null, sender.get("unknown")); sender.dataset = null; assertNull(sender.get("unknown")); }
public String get(String columnName) { String res = overridenValues.get(columnName); if (res != null) { return res; } return getFromDatabase(columnName); }
Sender { public String get(String columnName) { String res = overridenValues.get(columnName); if (res != null) { return res; } return getFromDatabase(columnName); } }
Sender { public String get(String columnName) { String res = overridenValues.get(columnName); if (res != null) { return res; } return getFromDatabase(columnName); } Sender(Dataset dataset);  Sender(Map<String, String> dsoverride);  Sender(String key, Dataset dataset, Map<String, String> dsoverride);  Sender(Sender copy); }
Sender { public String get(String columnName) { String res = overridenValues.get(columnName); if (res != null) { return res; } return getFromDatabase(columnName); } Sender(Dataset dataset);  Sender(Map<String, String> dsoverride);  Sender(String key, Dataset dataset, Map<String, String> dsoverride);  Sender(Sender copy); String getKey(); Dataset getDataset(); Map<String, String> getOverridenValues(); boolean isSelected(); void setSelected(boolean selected); String get(String columnName); String getFromDatabase(String columnName); void overrideValue(String columnName, String newValue); boolean isFromDatabase(); String getDisplayString(); void drop(String columnName); boolean isOverriden(); static Comparator<Sender> comparatorByColumn(String column); @Override int hashCode(); @Override boolean equals(Object obj); }
Sender { public String get(String columnName) { String res = overridenValues.get(columnName); if (res != null) { return res; } return getFromDatabase(columnName); } Sender(Dataset dataset);  Sender(Map<String, String> dsoverride);  Sender(String key, Dataset dataset, Map<String, String> dsoverride);  Sender(Sender copy); String getKey(); Dataset getDataset(); Map<String, String> getOverridenValues(); boolean isSelected(); void setSelected(boolean selected); String get(String columnName); String getFromDatabase(String columnName); void overrideValue(String columnName, String newValue); boolean isFromDatabase(); String getDisplayString(); void drop(String columnName); boolean isOverriden(); static Comparator<Sender> comparatorByColumn(String column); @Override int hashCode(); @Override boolean equals(Object obj); static final String NACHNAME; static final String VORNAME; static final String ROLLE; }