@Override public String getComponentNameById(int id) { LinePipe linePipe = m_linePipeService.findByPK(id); if (linePipe != null) { return linePipe.getName(); } else { return Modules.s_deleted; } }
private List<Item> queryItems(int tunnelId, int tunnelSectionId) { List<LinePipe> linePipes = m_linePipeService.queryLimitedLinePipes(tunnelId, tunnelSectionId, 0, Integer.MAX_VALUE); List<Item> items = new ArrayList<Item>(); for (LinePipe channel : linePipes) { Item item = new Item(); item.setId(channel.getId()); item.setName(channel.getName()); items.add(item); } return items; }