@Override public Collection<String> getIndexElementBaseNames(Namesyn_083 namesyn_083) { Sdr_042 sdr_042 = namesyn_083.getSdr_042(); final List<String> list = new ArrayList<>(); for (Sdes_044 sdes_044 : sdr_042.getSdes_044s()) { // CMT-ID-044 == -11: INDEXED BY (SDES-044 and NAMEDES-186 only) if (sdes_044.getCmtId_044() == -11) { // the index name appears to be in the ASF-FIELD-NAME-044 field (position 5) list.add(JdbcTools.removeTrailingSpaces(sdes_044.getAsfFieldName_044())); } } return list; }
@Override public String getValue(Namesyn_083 namesyn_083) { Sdr_042 sdr_042 = namesyn_083.getSdr_042(); for (Sdes_044 sdes_044 : sdr_042.getSdes_044s()) { // CMT-ID-044 == -3: VALUES (ELEMCMT-082 and SDES-044 only) if (sdes_044.getCmtId_044() == -3) { StringBuilder p = new StringBuilder(); p.append(sdes_044.getVal1_044()); String val2_044 = sdes_044.getVal2_044(); if (!val2_044.equals("")) { p.append(" THRU "); p.append(val2_044); } return p.toString(); } } return null; }