DependencyWrapper dw = new DependencyWrapper(); dw.setSourceuri(rs.getString("sourceurl")); dw.setSourceaction(rs.getString("sourcesoapaction")); dw.setDestinationaction(rs.getString("destinationaction")); dw.setDestinationuri(rs.getString("destinationurl"));