@Test public void testGetSelectedDatasetTransformed() throws Exception { Sender ds = service.getSelectedDatasetTransformed(); assertEquals(first.get("column"), ds.get("column")); service.columnTransformer = new ColumnTransformer( Map.of("column", new StringLiteralFunction("column"))); ds = service.getSelectedDatasetTransformed(); assertEquals("column", ds.get("column")); assertEquals(first.get("column2"), ds.get("column2")); }
Sender getSelectedDatasetTransformed() throws SenderException { if (selectedSender == null) { throw new SenderException("Es ist kein Sender ausgewählt"); } if (columnTransformer == null) { return selectedSender; } return new Sender(columnTransformer.transform(new Dataset() { @Override public String getKey() { return selectedSender.getKey(); } @Override public String get(String columnName) throws ColumnNotFoundException { return selectedSender.get(columnName); } })); }
SenderService implements XPALProvider { Sender getSelectedDatasetTransformed() throws SenderException { if (selectedSender == null) { throw new SenderException("Es ist kein Sender ausgewählt"); } if (columnTransformer == null) { return selectedSender; } return new Sender(columnTransformer.transform(new Dataset() { @Override public String getKey() { return selectedSender.getKey(); } @Override public String get(String columnName) throws ColumnNotFoundException { return selectedSender.get(columnName); } })); } }
SenderService implements XPALProvider { Sender getSelectedDatasetTransformed() throws SenderException { if (selectedSender == null) { throw new SenderException("Es ist kein Sender ausgewählt"); } if (columnTransformer == null) { return selectedSender; } return new Sender(columnTransformer.transform(new Dataset() { @Override public String getKey() { return selectedSender.getKey(); } @Override public String get(String columnName) throws ColumnNotFoundException { return selectedSender.get(columnName); } })); } SenderService(Datasource mainDatasource, ColumnTransformer columnTransformer,
      SenderCache cache, String overrideFragDbSpalte); }
SenderService implements XPALProvider { Sender getSelectedDatasetTransformed() throws SenderException { if (selectedSender == null) { throw new SenderException("Es ist kein Sender ausgewählt"); } if (columnTransformer == null) { return selectedSender; } return new Sender(columnTransformer.transform(new Dataset() { @Override public String getKey() { return selectedSender.getKey(); } @Override public String get(String columnName) throws ColumnNotFoundException { return selectedSender.get(columnName); } })); } SenderService(Datasource mainDatasource, ColumnTransformer columnTransformer,
      SenderCache cache, String overrideFragDbSpalte); static SenderService getInstance(); @SuppressWarnings("java:S2629") long searchDefaultSender(); @Override String getCurrentSender(); void addPALChangeEventListener(XPALChangeEventListener listener); void removePALChangeEventListener(XPALChangeEventListener listener); @Override String[] getPALEntries(); void selectSender(String senderName, int idx); Map<String, String> getCurrentSenderValues(); String getCurrentSenderValue(String column); ConfigThingy getCurrentOverrideFragMap(); void showManageSenderListDialog(); void select(Sender sender); Sender createNewSender(); List<Sender> getSenderListSorted(String column); List<String> getSchema(); CompletableFuture<List<Sender>> find(Map<String, String> searchQuery); }
SenderService implements XPALProvider { Sender getSelectedDatasetTransformed() throws SenderException { if (selectedSender == null) { throw new SenderException("Es ist kein Sender ausgewählt"); } if (columnTransformer == null) { return selectedSender; } return new Sender(columnTransformer.transform(new Dataset() { @Override public String getKey() { return selectedSender.getKey(); } @Override public String get(String columnName) throws ColumnNotFoundException { return selectedSender.get(columnName); } })); } SenderService(Datasource mainDatasource, ColumnTransformer columnTransformer,
      SenderCache cache, String overrideFragDbSpalte); static SenderService getInstance(); @SuppressWarnings("java:S2629") long searchDefaultSender(); @Override String getCurrentSender(); void addPALChangeEventListener(XPALChangeEventListener listener); void removePALChangeEventListener(XPALChangeEventListener listener); @Override String[] getPALEntries(); void selectSender(String senderName, int idx); Map<String, String> getCurrentSenderValues(); String getCurrentSenderValue(String column); ConfigThingy getCurrentOverrideFragMap(); void showManageSenderListDialog(); void select(Sender sender); Sender createNewSender(); List<Sender> getSenderListSorted(String column); List<String> getSchema(); CompletableFuture<List<Sender>> find(Map<String, String> searchQuery); static final String OVERRIDE_FRAG_DB_SPALTE; static final String SENDER_KEY_SEPARATOR; }