use of io.clownfish.clownfish.jdbc.DatatableDeleteValue in project Clownfish by rawdog71.
the class ClownfishUtil method getDatatabledeleteproperties.
/*
getDatatabledeleteproperties
Setzt die Properties für ein DB DELETE Aufruf
*/
public HashMap<String, DatatableDeleteProperties> getDatatabledeleteproperties(List<JsonFormParameter> postmap) {
HashMap<String, DatatableDeleteProperties> datatabledeleteproperties = new HashMap<>();
if (postmap != null) {
postmap.stream().map((jfp) -> {
// Datenbank DELETE Parameter
if (jfp.getName().compareToIgnoreCase("db$tabledelete") == 0) {
DatatableDeleteProperties dtdp = new DatatableDeleteProperties();
dtdp.setTablename(jfp.getValue());
datatabledeleteproperties.put(jfp.getValue(), dtdp);
}
return jfp;
}).filter((jfp) -> (jfp.getName().startsWith("db$tabledelete$"))).forEach((jfp) -> {
String rest = jfp.getName().substring(15);
String[] values = rest.split("\\$");
DatatableDeleteValue dtdv = new DatatableDeleteValue();
dtdv.setField(values[1]);
dtdv.setValue(jfp.getValue());
datatabledeleteproperties.get(values[0]).getValuelist().add(dtdv);
});
}
return datatabledeleteproperties;
}
Aggregations